/* VORDA help center: stone panel, pixel tabs and the Кубик mascot. Shared by the site and the launcher. */
.ai-model-control {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--hc-line, var(--line, #31465f));
  border-radius: 12px;
  background: var(--hc-panel, var(--surface, #142235));
  color: var(--hc-text, var(--text, #f2f7fc));
  min-width: 0;
}
.ai-model-top {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px;}
.ai-model-top label {font-weight:650;font-size:14px;}
.ai-model-top span {font-size:12px;color:var(--hc-soft,var(--muted,#b4c7db));}
.ai-model-control select {
  display:block;width:100%;min-height:44px;padding:10px 12px;
  border:1px solid var(--hc-line,var(--line,#31465f));border-radius:8px;
  background:var(--hc-bg,var(--surface,#142235));color:inherit;font:inherit;
}
.ai-model-control select:focus-visible {outline:2px solid var(--hc-acc,var(--accent,#8bd5ff));outline-offset:3px;}
.ai-model-control select:disabled {opacity:.6;cursor:wait;}
.ai-model-caption {display:block;margin-top:8px;font-size:12px;line-height:1.5;color:var(--hc-soft,var(--muted,#b4c7db));}
.help-center {
  --hc-bg: #0f1730;
  --hc-panel: #131c3a;
  --hc-raised: #18234a;
  --hc-line: #2d3d70;
  --hc-text: #eef3ff;
  --hc-soft: #a9b6d8;
  --hc-dim: #7d8bb3;
  --hc-acc: var(--mc-amethyst, #b685ff);
  --hc-acc2: var(--mc-diamond, #5ee2ff);
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 20px;
  color: var(--hc-text);
  font: 14px/1.5 var(--font-body, "Segoe UI", sans-serif);
}
.help-center *, .help-center *::before, .help-center *::after { box-sizing: border-box; }
.help-center button, .help-center input, .help-center textarea, .help-center select { font: inherit; color: inherit; }
.help-center button { cursor: pointer; }
.help-center :is(button, input, textarea, a, summary):focus-visible { outline: 3px solid var(--hc-acc2); outline-offset: 2px; }
.help-center .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Launch button with the mascot. */
.help-launch {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px 13px 12px; margin-left: auto;
  border: 0; text-align: left; background: linear-gradient(180deg, #3a2a72, #2a1d58);
  clip-path: var(--notch-clip); --notch: 5px;
  box-shadow: inset 0 -4px 0 #170f36, inset 0 2px 0 #6b55c4, 0 10px 30px #0007;
  transition: transform 0.18s var(--ease-spring, ease), filter 0.18s;
}
.help-launch:hover { transform: translateY(-2px); filter: brightness(1.12); }
.help-launch:active { transform: translateY(1px); }
.help-launch > span:last-child { font: 700 13px/1.25 var(--font-display, sans-serif); }
.help-launch small { display: block; margin-top: 3px; font: 500 11px var(--font-body, sans-serif); color: #cdbfff; }

/* Кубик: a small block with blinking eyes. */
.help-cube {
  position: relative; display: inline-block; flex: none; width: 34px; height: 34px;
  background: linear-gradient(135deg, #c9b0ff 0 50%, #a37cf5 50%);
  box-shadow: inset -5px -5px 0 #6f3fc4, inset 4px 4px 0 #e6d8ff, 0 3px 0 #0006;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
}
.help-cube i { position: absolute; top: 34%; width: 16%; height: 20%; background: #1b1036; animation: help-blink 4.6s steps(1) infinite; }
.help-cube i:first-child { left: 24%; }
.help-cube i:nth-child(2) { right: 24%; }
.help-cube b { position: absolute; left: 36%; right: 36%; bottom: 22%; height: 8%; background: #1b1036; }
.help-cube.worried b { bottom: 18%; height: 6%; left: 32%; right: 32%; transform: translateY(-2px); box-shadow: 0 -2px 0 #1b1036 inset; }
.help-cube.big { width: 58px; height: 58px; animation: help-bob 3.2s ease-in-out infinite; }
@keyframes help-blink { 0%, 92%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.15); } }
@keyframes help-bob { 50% { transform: translateY(-4px); } }

/* Panel. */
.help-panel {
  position: absolute; right: 0; bottom: 74px; display: flex; flex-direction: column;
  width: min(540px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 120px));
  background: radial-gradient(120% 60% at 100% 0%, #3a2a7255, transparent 60%), linear-gradient(180deg, var(--hc-panel), var(--hc-bg));
  border-radius: 18px; box-shadow: inset 0 0 0 1px #ffffff14, inset 0 3px 0 var(--hc-acc), 0 30px 80px -20px #000c;
  overflow: hidden; animation: help-in 0.24s var(--ease-out-quint, ease-out);
  transform-origin: 100% 100%;
}
.help-panel.dragging { box-shadow: inset 0 0 0 2px var(--hc-acc2), inset 0 3px 0 var(--hc-acc), 0 30px 80px -20px #000c; }
.help-panel.dragging::after { content: "Отпусти файл — журнал или скриншот"; position: absolute; inset: 120px 20px 20px; display: grid; place-items: center; font: 700 16px var(--font-display, sans-serif); color: #fff; background: #0b1228d9; border: 2px dashed var(--hc-acc2); border-radius: 14px; pointer-events: none; }
@keyframes help-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.help-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.help-header strong { display: block; font: 800 17px/1.2 var(--font-display, sans-serif); }
.help-header span { font-size: 12px; color: var(--hc-soft); }
.help-close { margin-left: auto; width: 38px; height: 38px; border: 0; font-size: 22px; line-height: 1; background: #ffffff0d; border-radius: 10px; }
.help-close:hover { background: #ffffff1f; }
.help-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid #ffffff12; }
.help-tabs button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; border: 0; font-size: 12px; font-weight: 650; color: var(--hc-soft); background: #ffffff08; clip-path: var(--notch-clip); --notch: 3px; transition: background 0.15s, color 0.15s; }
.help-tabs button:hover { color: #fff; background: #ffffff14; }
.help-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #4a36909a, #2e2163); box-shadow: inset 0 -3px 0 var(--hc-acc); }
.help-dot { position: absolute; top: 6px; right: 12px; width: 8px; height: 8px; background: var(--mc-emerald, #3ddc6f); box-shadow: 0 0 8px var(--mc-emerald, #3ddc6f); }
.help-content { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; display: grid; align-content: start; gap: 12px; scrollbar-width: thin; scrollbar-color: #3b4b80 transparent; }
.help-content[data-tab="chat"] { grid-template-rows: 1fr auto auto auto auto; align-content: stretch; }
.help-h { margin: 6px 0 0; font: 700 13px var(--font-display, sans-serif); color: #d8defa; }
.help-note { margin: 0; font-size: 13px; color: var(--hc-dim); }
.help-error { margin: 0; padding: 10px 12px; font-size: 13px; color: #ffd0d6; background: #a8213a2e; border-radius: 10px; box-shadow: inset 3px 0 0 var(--mc-redstone, #ff5468); }
.help-status { margin: 0; font-size: 12px; color: var(--hc-dim); text-align: center; }
.help-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; font-size: 13px; font-weight: 650; color: var(--hc-acc2); background: none; text-decoration: none; }
.help-link:hover { text-decoration: underline; }
.help-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.help-center .pixel-button, .help-center .quiet-button { display: inline-flex; align-items: center; gap: 8px; }
body:not(.launcher-app) .help-center .pixel-button { padding: 9px 16px 12px; border: 0; font: 700 14px var(--font-display, sans-serif); color: var(--mc-emerald-ink, #04260f); background: linear-gradient(180deg, var(--mc-emerald-hi, #8ff5ae), var(--mc-emerald, #3ddc6f) 45%, var(--mc-emerald-lo, #1d9447)); clip-path: var(--notch-clip); --notch: 4px; box-shadow: inset 0 -4px 0 #0f5a2a; }
body:not(.launcher-app) .help-center .quiet-button { padding: 8px 12px; border: 0; font-weight: 650; font-size: 13px; background: #ffffff10; border-radius: 8px; box-shadow: inset 0 0 0 1px #ffffff1c; }
.help-center .pixel-button:disabled { filter: grayscale(0.6) brightness(0.8); cursor: wait; }
.help-file { cursor: pointer; }

/* Home. */
.help-hello { display: flex; align-items: center; gap: 14px; }
.help-bubble { position: relative; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: #e3e8ff; background: var(--hc-raised); border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff12; }
.help-bubble::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: var(--hc-raised); transform: translateY(-50%) rotate(45deg); box-shadow: -1px 1px 0 #ffffff12; }
.help-bubble b { color: #fff; }
.help-search { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 46px; background: #0b1228; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hc-line); }
.help-search:focus-within { box-shadow: inset 0 0 0 2px var(--hc-acc); }
.help-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.help-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.help-action { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 12px; text-align: left; border: 0; background: linear-gradient(160deg, #1d2a57, #141d3d); clip-path: var(--notch-clip); --notch: 4px; box-shadow: inset 0 0 0 1px #ffffff12; transition: transform 0.16s var(--ease-spring, ease), background 0.16s; }
.help-action .pixel-icon { grid-row: span 2; width: 30px; height: 30px; }
.help-action strong { font: 700 13px/1.25 var(--font-display, sans-serif); }
.help-action small { font-size: 12px; color: var(--hc-soft); }
.help-action:hover { transform: translateY(-2px); background: linear-gradient(160deg, #2a3a78, #1a2550); }
.help-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.help-topics button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; text-align: left; border: 0; background: #ffffff08; border-radius: 10px; transition: background 0.15s; }
.help-topics button:hover { background: #ffffff14; }
.help-topics span { flex: 1; min-width: 0; }
.help-topics strong { display: block; font-size: 13px; }
.help-topics small { display: block; font-size: 11px; color: var(--hc-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-topics b { font: 400 11px var(--font-digits, monospace); color: var(--hc-acc); }
.help-popular { display: flex; flex-wrap: wrap; gap: 6px; }
.help-popular button, .help-quick button { padding: 7px 11px; border: 0; font-size: 12px; font-weight: 600; color: #dfe5ff; background: #ffffff0d; border-radius: 999px; box-shadow: inset 0 0 0 1px #ffffff17; transition: background 0.15s, transform 0.15s; }
.help-popular button:hover, .help-quick button:hover { background: #b685ff2e; transform: translateY(-1px); }

/* Articles. */
.help-kb, .help-found { display: grid; gap: 6px; }
.help-article { background: #ffffff08; border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff10; }
.help-article[open] { background: #ffffff0f; box-shadow: inset 0 0 0 1px #b685ff55, inset 3px 0 0 var(--hc-acc); }
.help-article summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; list-style: none; cursor: pointer; font-weight: 650; }
.help-article summary::-webkit-details-marker { display: none; }
.help-article summary span { flex: 1; }
.help-article summary small { display: block; font: 400 10px var(--font-pixel, monospace); color: var(--hc-acc); text-transform: uppercase; letter-spacing: 0.04em; }
.help-article summary b { font: 400 18px var(--font-digits, monospace); color: var(--hc-dim); transition: transform 0.2s; }
.help-article[open] summary b { transform: rotate(45deg); color: var(--hc-acc); }
.help-article-body { padding: 0 14px 12px; animation: help-unfold 0.22s var(--ease-out-quint, ease-out); }
@keyframes help-unfold { from { opacity: 0; transform: translateY(-4px); } }
.help-article-body p { margin: 0 0 8px; color: #d5dcf5; }
.help-article-body ol, .help-msg ol { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 6px; }
.help-article-body li, .help-msg ol li { position: relative; padding-left: 30px; color: #c7d0ee; counter-increment: step; }
.help-article-body li::before, .help-msg ol li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px; font: 400 11px var(--font-digits, monospace); color: #1b1036; background: var(--hc-acc); clip-path: var(--notch-clip); --notch: 2px; }
.help-article-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--hc-dim); }
.help-article-foot > button:not(.help-link) { padding: 4px 10px; border: 0; font-size: 12px; background: #ffffff10; border-radius: 6px; }
.help-article-foot > button[aria-pressed="true"] { background: var(--hc-acc); color: #1b1036; }
.help-article-foot .help-link { margin-left: auto; }

/* Chips shared with the catalog wizard and the server builder. */
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 0; font-size: 13px; font-weight: 650; color: #dbe2ff; background: #ffffff0c; clip-path: var(--notch-clip); --notch: 3px; box-shadow: inset 0 0 0 1px #ffffff1a, inset 0 -3px 0 #0005; transition: transform 0.14s var(--ease-spring, ease), background 0.14s; }
@media (hover: hover) { .ai-chip:not([aria-pressed="true"]):hover { background: #ffffff17; transform: translateY(-1px); } }
.ai-chip:active { transform: translateY(1px); }
.ai-chip[aria-pressed="true"] { color: #10081f; background: linear-gradient(180deg, #d8c3ff, var(--chip-acc, var(--mc-amethyst, #b685ff))); box-shadow: inset 0 -3px 0 #0003; }
.ai-chip .pixel-icon { width: 16px; height: 16px; }

/* Crash. */
.help-card { display: grid; gap: 10px; padding: 14px; background: #ffffff07; border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff10; }
.help-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 14px var(--font-display, sans-serif); }
.help-card h3 small { font: 500 11px var(--font-body, sans-serif); color: var(--hc-dim); }
.help-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.help-logs { display: grid; gap: 5px; }
.help-log { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; border: 0; background: #0b1228; border-radius: 10px; box-shadow: inset 0 0 0 1px #ffffff12; transition: background 0.15s, box-shadow 0.15s; }
.help-log:hover { background: #121b3a; }
.help-log.picked { box-shadow: inset 0 0 0 2px var(--hc-acc); }
.help-log strong { display: block; font-size: 13px; }
.help-log small, .help-log time { font-size: 11px; color: var(--hc-dim); }
.log-kind { padding: 3px 7px; font: 400 10px var(--font-pixel, monospace); color: #1b0b10; background: #ffb3bd; clip-path: var(--notch-clip); --notch: 2px; }
.log-kind.jvm { background: var(--mc-gold, #ffcb45); }
.log-kind.log { background: #9fb3e6; }
.help-drop textarea { width: 100%; min-height: 110px; padding: 10px 12px; font: 12px/1.45 Consolas, "Cascadia Mono", monospace; color: #dfe6ff; background: #070c1c; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--hc-line); resize: vertical; }
.ai-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-thumbs figure { position: relative; margin: 0; }
.ai-thumbs img { display: block; width: 96px; height: 64px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px #ffffff26; }
.ai-thumbs button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border: 0; font-size: 14px; line-height: 1; color: #fff; background: #a8213a; border-radius: 50%; }
.help-gameshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.help-gameshots button { display: grid; gap: 4px; padding: 0; border: 0; background: none; text-align: left; }
.help-gameshots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px #ffffff1c; transition: box-shadow 0.15s; }
.help-gameshots button:hover img { box-shadow: 0 0 0 2px var(--hc-acc2); }
.help-gameshots small { font-size: 11px; color: var(--hc-dim); }
.help-report { display: grid; gap: 8px; padding: 14px; background: linear-gradient(180deg, #1c1640, #141b38); border-radius: 14px; box-shadow: inset 0 0 0 1px #b685ff44; animation: help-unfold 0.25s ease-out; }
.help-report h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 15px var(--font-display, sans-serif); }
.help-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.help-meta span { padding: 3px 9px; font-size: 12px; color: var(--hc-soft); background: #ffffff0c; border-radius: 999px; }
.help-meta b { color: #fff; }
.help-finding { padding: 10px 12px; background: #0b1228; border-radius: 10px; box-shadow: inset 3px 0 0 var(--mc-redstone, #ff5468); }
.help-finding.hint { box-shadow: inset 3px 0 0 var(--mc-gold, #ffcb45); }
.help-finding strong { display: block; margin-bottom: 2px; }
.help-finding p { margin: 0 0 4px; font-size: 13px; color: #c7d0ee; }
.help-fix { display: flex; gap: 6px; align-items: flex-start; color: var(--mc-emerald-hi, #8ff5ae) !important; }
.help-fix .pixel-icon { flex: none; margin-top: 2px; }
.help-scan { display: grid; gap: 8px; }
.help-scan-pack { padding: 10px 12px; background: #0b1228; border-radius: 10px; box-shadow: inset 3px 0 0 var(--mc-emerald, #3ddc6f); }
.help-scan-pack.warn { box-shadow: inset 3px 0 0 var(--mc-gold, #ffcb45); }
.help-scan-pack.danger { box-shadow: inset 3px 0 0 var(--mc-redstone, #ff5468); }
.help-scan-pack > small { display: block; font-size: 11px; color: var(--hc-dim); }
.help-issue { margin: 6px 0 0; font-size: 12px; color: #c7d0ee; }
.help-issue b { display: block; font-size: 13px; color: #fff; }
.help-issue.danger b { color: #ffb3bd; }
.help-issue.warn b { color: #ffe28a; }
.help-issue code, .help-note code, .help-msg code { padding: 1px 5px; font-size: 11px; background: #ffffff12; border-radius: 4px; word-break: break-all; }
.help-ok { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12px; color: var(--mc-emerald-hi, #8ff5ae); }

/* Chat. */
.help-thread { display: flex; flex-direction: column; gap: 10px; min-height: 160px; overflow-y: auto; padding-right: 2px; }
.help-thread.compact { min-height: 0; overflow: visible; }
.help-msg { display: flex; gap: 10px; max-width: 94%; animation: help-unfold 0.22s ease-out; }
.help-msg.user { align-self: flex-end; flex-direction: column; align-items: flex-end; }
.help-msg.user p { margin: 0; padding: 9px 13px; color: #10081f; background: linear-gradient(180deg, #dcc8ff, #b685ff); border-radius: 14px 14px 4px 14px; font-weight: 550; }
.help-msg.user small { font-size: 11px; color: var(--hc-dim); }
.help-msg.bot > div { padding: 10px 13px; background: var(--hc-raised); border-radius: 4px 14px 14px 14px; box-shadow: inset 0 0 0 1px #ffffff10; min-width: 0; }
.help-msg.bot.local > div { box-shadow: inset 0 0 0 1px #5ee2ff40; }
.help-msg.bot small { display: block; margin-bottom: 2px; font: 400 10px var(--font-pixel, monospace); color: var(--hc-acc); text-transform: uppercase; }
.help-msg.local small { color: var(--hc-acc2); }
.help-msg.bot p, .help-msg.bot ul { margin: 0 0 8px; color: #dbe2fb; }
.help-msg.bot p:last-child { margin-bottom: 0; }
.help-msg.bot ul { padding-left: 18px; }
.help-msg.bot h4 { margin: 8px 0 4px; font: 700 13px var(--font-display, sans-serif); }
.help-msg .help-cube { width: 28px; height: 28px; }
.help-quick { display: grid; gap: 6px; }
.help-quick > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.help-quick-more summary { cursor: pointer; font-size: 12px; font-weight: 650; color: var(--hc-soft); list-style: none; }
.help-quick-more summary::before { content: "+ "; color: var(--hc-acc); }
.help-quick-more[open] summary::before { content: "− "; }
.help-quick-more[open] { gap: 6px; }
.help-quick small { width: 100%; font: 400 10px var(--font-pixel, monospace); color: var(--hc-dim); text-transform: uppercase; }
.help-composer, .help-ticket { display: grid; gap: 8px; padding: 10px; background: #0b1228; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hc-line); }
.help-composer:focus-within, .help-ticket:focus-within { box-shadow: inset 0 0 0 2px var(--hc-acc); }
.help-composer textarea, .help-ticket textarea { width: 100%; padding: 6px 8px; border: 0; background: none; resize: vertical; outline: none; font-size: 14px; }
/* The composer draws its own frame when focused; the field inside gets no second (blue) one. */
.help-center .help-composer textarea:focus-visible, .help-center .help-ticket textarea:focus-visible { outline: none; }
.help-composer .help-row .pixel-button { margin-left: auto; }
.help-ticket p { margin: 0; font-size: 13px; color: var(--hc-soft); }
.help-ticket-item { padding: 10px 12px; background: #ffffff08; border-radius: 12px; box-shadow: inset 3px 0 0 var(--mc-gold, #ffcb45); }
.help-ticket-item.answered { box-shadow: inset 3px 0 0 var(--mc-emerald, #3ddc6f); }
.help-ticket-item.closed { opacity: 0.7; box-shadow: inset 3px 0 0 #6f7ca0; }
.help-ticket-item > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 12px; color: var(--hc-dim); }
.help-ticket-item > div b { color: #fff; font-size: 13px; }
.help-ticket-status { font: 400 10px var(--font-pixel, monospace); color: var(--mc-gold, #ffcb45); }
.help-ticket-item.answered .help-ticket-status { color: var(--mc-emerald-hi, #8ff5ae); }
.help-ticket-item > div time { margin-left: auto; }
.help-ticket-item > p { margin: 6px 0 0; font-size: 13px; color: #c7d0ee; white-space: pre-wrap; }
.help-ticket-item blockquote { display: flex; gap: 10px; margin: 8px 0 0; padding: 10px; background: #3ddc6f14; border-radius: 10px; font-size: 13px; white-space: pre-wrap; }
.help-ticket-item blockquote small { display: block; font: 400 10px var(--font-pixel, monospace); color: var(--mc-emerald-hi, #8ff5ae); }
.help-center .voxel-loader { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.help-center .voxel-loader i { width: 7px; height: 7px; background: var(--hc-acc); animation: help-load 0.9s ease-in-out infinite; }
.help-center .voxel-loader i:nth-child(2) { animation-delay: 0.15s; }
.help-center .voxel-loader i:nth-child(3) { animation-delay: 0.3s; }
@keyframes help-load { 50% { transform: translateY(-5px); opacity: 0.5; } }
.ai-thinking { display: flex; align-items: center; font-size: 13px; color: var(--hc-soft); }

/* Support conversation. */
.help-tabs.two { grid-template-columns: repeat(2, 1fr); }
.help-launch { position: relative; }
.help-launch .help-dot { top: 8px; right: 8px; }
.sup-hello { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--hc-raised); border-radius: 14px; box-shadow: inset 0 0 0 1px #ffffff12; }
.sup-hello b { display: block; color: #fff; font-size: 14px; }
.sup-hello p { margin: 4px 0 0; font-size: 13px; color: var(--hc-soft); line-height: 1.5; }
.sup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 650; color: var(--hc-soft); }
.sup-faq { padding: 10px 12px; background: #ffffff06; border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff10; }
.sup-faq > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--hc-soft); list-style: none; }
.sup-faq[open] > summary { margin-bottom: 8px; }
.sup-faq .help-article { margin-top: 6px; }
.sup-list-head { display: flex; align-items: center; justify-content: space-between; }
.sup-list-head b { font: 700 15px var(--font-display, sans-serif); }
.sup-list { display: grid; gap: 6px; }
.sup-item { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; text-align: left; border: 0; background: #ffffff08; border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff10; transition: background 0.15s; }
.sup-item:hover { background: #ffffff12; }
.sup-item.unread { box-shadow: inset 0 0 0 1px #3ddc6f66, inset 3px 0 0 var(--mc-emerald, #3ddc6f); }
.sup-item > span:first-child { min-width: 0; }
.sup-item strong { display: block; font-size: 14px; }
.sup-item small { display: block; font-size: 12px; color: var(--hc-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.sup-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.sup-meta time { font-size: 11px; color: var(--hc-dim); }
.sup-item .help-dot { top: 8px; right: 8px; }
.sup-bar { display: flex; align-items: center; gap: 10px; }
.sup-topic { font: 700 14px var(--font-display, sans-serif); margin-left: auto; }
.sup-thread { min-height: 200px; max-height: 46vh; padding: 4px 2px; }
.help-msg.team > div { box-shadow: inset 0 0 0 1px #3ddc6f44; }
.help-msg.team small { color: var(--mc-emerald-hi, #8ff5ae); }
.help-msg.user small { display: block; margin-top: 3px; font-size: 10px; }
.sup-wait { display: flex; align-items: center; gap: 6px; align-self: center; margin: 4px 0 0; font-size: 12px; color: var(--hc-dim); }
.help-ticket-status.open { color: var(--mc-gold, #ffcb45); }
.help-ticket-status.answered { color: var(--mc-emerald-hi, #8ff5ae); }
.help-ticket-status.closed { color: #93a0bf; }

/* Launcher: the sidebar and wardrobe open help, so the drawer uses the window height and the corner button hides. */
.launcher-app .help-center { right: 16px; bottom: 16px; pointer-events: none; }
.launcher-app .help-launch { display: none; }
.launcher-app .help-panel { position: fixed; right: 16px; top: 48px; bottom: 16px; height: auto; width: min(560px, calc(100vw - 32px)); pointer-events: auto; }

@media (max-width: 560px) {
  .help-center { right: 12px; bottom: 12px; }
  .help-panel { bottom: 70px; height: calc(100dvh - 96px); }
  .help-actions, .help-topics { grid-template-columns: 1fr; }
  .help-tabs span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .help-cube.big, .help-cube i, .help-panel, .help-msg, .help-article-body, .help-report { animation: none !important; }
}
html.motion-off .help-center * { animation: none !important; transition: none !important; }

/* ---------- Support v2: compact, bright, friendly ---------- */
.help-center { --hc-panel: #16214a; --hc-bg: #121a3c; --hc-raised: #1f2b5c; --hc-acc: #3ddc6f; }
.help-panel { width: min(400px, calc(100vw - 24px)); height: auto; max-height: min(620px, calc(100dvh - 110px)); border-radius: 22px;
  background: linear-gradient(180deg, #1a2656, #121a3c 160px); box-shadow: inset 0 0 0 1px #ffffff1f, 0 30px 80px -20px #000d, 0 0 0 6px #ffffff08; }
.help-header { position: relative; padding: 16px 16px 14px; background: linear-gradient(120deg, #1d9447 0%, #1d8fb3 100%); border-radius: 22px 22px 0 0; }
.help-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: repeating-linear-gradient(90deg, #1d9447 0 8px, transparent 8px 16px); opacity: 0.6; }
.help-header strong { color: #fff; text-shadow: 0 2px 0 #0003; }
.help-close { background: #ffffff26; color: #fff; }
.help-close:hover { background: #ffffff40; }
.sup-online { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; font-weight: 600; color: #eafff0; }
.sup-online i, .sup-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #8ff5ae; }
.sup-online.off i, .sup-dot.off { background: #c9d2ea; box-shadow: none; animation: none; }
.sup-dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.sup-online i::after, .sup-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: #8ff5ae40; animation: sup-pulse 2s ease-in-out infinite; }
@keyframes sup-pulse { 50% { transform: scale(1.5); opacity: .25; } }
.help-tabs { padding: 12px 12px 10px; border-bottom: 0; }
.help-content { padding: 6px 14px 16px; gap: 10px; }
/* Кубик smiles: raised mouth corners and pink cheeks. */
.help-cube { background: linear-gradient(135deg, #d9c6ff 0 50%, #b38cff 50%); }
.help-cube b { left: 32%; right: 32%; bottom: 22%; height: 9%; }
.help-cube b::before, .help-cube b::after { content: ""; position: absolute; top: -100%; width: 26%; height: 100%; background: #1b1036; }
.help-cube b::before { left: -24%; }
.help-cube b::after { right: -24%; }
.help-cube s { position: absolute; top: 56%; width: 14%; height: 9%; background: #ff8fcf; opacity: 0.8; }
.help-cube s:first-of-type { left: 12%; }
.help-cube s:last-of-type { right: 12%; }
.help-cube.happy, .help-cube.big { animation: help-bob 3.2s ease-in-out infinite; }
.sup-hello { background: linear-gradient(135deg, #24336e, #1b2654); box-shadow: inset 0 0 0 1px #ffffff1a; }
.sup-hello b { font: 700 15px var(--font-display, sans-serif); }
.sup-team { display: flex; margin-top: 8px; }
.sup-team img { width: 28px; height: 28px; margin-right: -6px; image-rendering: pixelated; background: #121a3c; border-radius: 50%; box-shadow: 0 0 0 2px #1f2b5c; }
.help-composer { background: #0f1734; }
.help-composer textarea { min-height: 64px; }
.help-launch { background: linear-gradient(135deg, #1d9447, #1d8fb3); box-shadow: inset 0 -4px 0 #0e5a6f, inset 0 2px 0 #8ff5ae55, 0 12px 30px #0008; }
.help-launch small { color: #e3fff0; }
.help-msg.team > div { background: #1f2b5c; }
.help-msg.user p { background: linear-gradient(180deg, #8ff5ae, #3ddc6f); color: #04260f; }
.launcher-app .help-panel { top: auto; bottom: 16px; height: auto; max-height: calc(100vh - 80px); width: min(420px, calc(100vw - 32px)); }
@media (prefers-reduced-motion: reduce) { .sup-online i, .sup-dot, .sup-online i::after, .sup-dot::after, .help-cube.happy { animation: none; } }

.help-tabs.three { grid-template-columns: repeat(3, 1fr); }
/* «Спросить ИИ» */
.ai-quota { margin: 10px 14px 0; color: var(--hc-soft); font-size: 12.5px; }
.ai-quota b { color: #9ff2b8; }
.ai-quota.off { color: #ffd27a; }
.ai-thread { min-height: 120px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.ai-chip { padding: 7px 11px; border: 0; border-radius: 999px; background: #ffffff10; color: #e6ecff; font: 600 12.5px/1.2 var(--font-body, sans-serif); cursor: pointer; transition: background .15s, transform .15s; }
/* Phones keep :hover after a tap, so hover never repaints a selected chip. */
@media (hover: hover) { .ai-chip:not([aria-pressed="true"]):hover { background: #ffffff1f; } }
.ai-chip[aria-pressed="true"] { color: #10081f; background: linear-gradient(180deg, #d8c3ff, var(--chip-acc, var(--mc-amethyst, #b685ff))); }
.ai-composer textarea { resize: none; }
.ai-new { margin: 0 14px 10px; }

/* Closable blocks in the crash tab. */
.help-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; }
.help-subhead small { color: var(--hc-soft, #9fb0d6); }
.help-card-head .help-link[data-help="hide-scan"] { margin-left: 4px; }

/* What VORDA AI recommends, as cards: the real icon from Modrinth or CurseForge, what it is, why, downloads, a link. */
.ai-cards { margin: 12px 0 2px; }
.ai-cards h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 800 12px var(--font-display, system-ui); letter-spacing: .04em; text-transform: uppercase; color: #b9a8ff; }
.ai-cards ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ai-cards .ai-card { position: relative; display: flex; gap: 10px; align-items: flex-start; min-width: 0; margin: 0; padding: 10px; background: linear-gradient(160deg, #18244f, #0f1733); border-radius: 12px; box-shadow: inset 0 0 0 1px #2a3a72; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s; overflow: hidden; }
.ai-cards .ai-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #6d5bd0, 0 12px 26px -18px #7a4dff; }
.ai-cards .ai-card[data-type="plugin"] { background: linear-gradient(160deg, #10304a, #0d1a33); }
.ai-cards .ai-card[data-type="shader"] { background: linear-gradient(160deg, #2c2150, #121634); }
.ai-cards .ai-card[data-type="modpack"] { background: linear-gradient(160deg, #1f3a2c, #0f1a2e); }
.ai-cards .ai-card-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; background: #0b1128; border-radius: 10px; box-shadow: inset 0 0 0 1px #33468a; overflow: hidden; }
.ai-cards .ai-card-icon img { width: 48px; height: 48px; object-fit: cover; }
.ai-cards .ai-card-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.ai-cards .ai-card-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ai-cards .ai-card b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 14px/1.25 var(--font-display, system-ui); color: #fff; }
.ai-cards .ai-card-kind { flex: none; padding: 1px 6px; font: 700 10px/1.5 var(--font-body, system-ui); font-style: normal; color: #cfe0ff; background: #24346a; border-radius: 6px; }
.ai-cards .ai-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font: 400 12px/1.35 var(--font-body, system-ui); letter-spacing: normal; text-transform: none; color: #a9b6d6; }
.ai-cards .ai-card small.ai-card-why { color: #e6dcff; font-weight: 600; }
.ai-cards .ai-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font: 700 11px var(--font-body, system-ui); color: #8796bd; }
.ai-cards .ai-card-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.ai-cards .ai-card-open { margin-left: auto; padding: 3px 8px; font: 800 11px var(--font-body, system-ui); color: #0b1020; text-decoration: none; background: #b7a6ff; border-radius: 7px; }
.ai-cards .ai-card-open:hover { background: #d6ccff; }
.ai-cards .ai-card.plain .ai-card-open { color: #e6ecff; background: #2a3a72; }
.ai-cards .ai-card-shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(160,140,255,.14) 50%, transparent 70%); background-size: 220% 100%; animation: ai-card-shine 1.2s linear infinite; pointer-events: none; }
@keyframes ai-card-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .ai-cards .ai-card { transition: none; } .ai-cards .ai-card-shine { animation: none; } }

/* VORDA AI answers: a small table when the answer has one. */
.ai-table { overflow-x: auto; margin: 6px 0; }
.ai-table table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.ai-table th, .ai-table td { padding: 5px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid #2a3a70; }
.ai-table th { color: #cfe0ff; font-weight: 800; }

/* Карточки действий VORDA AI (ai\playbooks.json): на сайте — поддержка и разбор, остальное делается в лаунчере. */
.ai-actions { margin: 12px 0 2px; }
.ai-actions h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 800 12px var(--font-display, system-ui); letter-spacing: .04em; text-transform: uppercase; color: #8ff5ae; }
.ai-actions ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ai-action-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(143, 245, 174, .08); border: 1px solid rgba(143, 245, 174, .25); font-size: 13px; }
.ai-action-chip small { opacity: .65; font-size: 11px; }
