/* Помощь: открытые тикеты (19.11.2026). Выбор — заливкой, без тонких золотых рамок. */
.hp-page .x-lead { max-width: 760px; }
.hp-head-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.hp-tabs { display: flex; gap: 4px; margin-top: 26px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.hp-tabs::-webkit-scrollbar { display: none; }
.hp-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--dim);
  text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.hp-tabs a:hover { color: var(--text); }
.hp-tabs a[aria-current="page"] { background: var(--glass-hi); color: var(--text); }
.hp-n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgb(255 255 255 / .08); font-size: 12px; text-align: center; }

.hp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass); color: var(--text); text-decoration: none; transition: background .15s; }
.hp-row:hover { background: var(--glass-hi); }
.hp-row.is-hidden { opacity: .6; }
.hp-main { display: grid; gap: 4px; min-width: 0; }
.hp-title { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.hp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--faint); margin: 0; }
.hp-meta-top { margin-top: 14px; align-items: center; font-size: 14px; }
.hp-hero { color: var(--accent-2); }
.hp-hid { color: #e0a060; }
.hp-side { display: grid; justify-items: end; gap: 4px; font-size: 13px; color: var(--faint); white-space: nowrap; }
.hp-msgs { display: inline-flex; align-items: center; gap: 6px; }
.hp-msgs .ico { width: 16px; height: 16px; }
.hp-msgs.is-admin { color: var(--live, #6fcf7f); }

.hp-st { display: inline-flex; justify-content: center; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hp-st-open { background: rgb(111 181 240 / .16); color: #8fc8f5; }
.hp-st-work { background: rgb(240 180 80 / .16); color: #f0c070; }
.hp-st-done { background: rgb(111 207 127 / .16); color: #8ee09a; }
.hp-st-closed { background: rgb(255 255 255 / .08); color: var(--dim); }
.hp-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; color: var(--dim); }

/* форма */
.hp-form { padding: 28px; max-width: 860px; }
.hp-warn { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 14px; background: rgb(240 180 80 / .09);
  color: var(--text); font-size: 14px; line-height: 1.5; }
.hp-warn .ico { flex: none; width: 20px; height: 20px; color: #f0c070; margin-top: 1px; }
.hp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-opt { font-weight: 400; color: var(--faint); font-size: 12.5px; }
.hp-cats { border: 0; padding: 0; margin: 0; min-width: 0; }
.hp-cats legend { font-size: 14px; color: var(--dim); font-weight: 500; margin-bottom: 8px; padding: 0; }
.hp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.hp-cat { position: relative; cursor: pointer; }
.hp-cat input { position: absolute; opacity: 0; pointer-events: none; }
.hp-cat span { display: grid; gap: 3px; height: 100%; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / .04); transition: background .15s; }
.hp-cat b { font-size: 14.5px; font-weight: 600; color: var(--text); }
.hp-cat small { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.hp-cat:hover span { background: rgb(255 255 255 / .08); }
.hp-cat input:checked + span { background: var(--accent); }
.hp-cat input:checked + span small { color: rgb(255 255 255 / .85); }
.hp-cat input:focus-visible + span { box-shadow: 0 0 0 3px rgb(var(--accent-rgb, 227 38 54) / .35); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hp-files { display: grid; gap: 10px; justify-items: start; }
.hp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-thumbs:empty { display: none; }
.hp-thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: rgb(255 255 255 / .05); }
.hp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .7); color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer; }
.hp-thumb.is-loading::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .45); }
.hp-attach { cursor: pointer; }
.hp-attach .ico { width: 18px; height: 18px; }

/* переписка */
.hp-h1 { overflow-wrap: anywhere; }
.hp-thread { display: flex; flex-direction: column; gap: 16px; }
.hp-thread > * { margin: 0; }
.hp-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; background: rgb(240 180 80 / .07); }
.hp-admin-st { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.hp-admin-st select { min-height: 40px; width: auto; }
.hp-msgs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 860px; }
.hp-msg { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.hp-msg.is-admin { background: rgb(var(--accent-rgb, 227 38 54) / .08); border-color: rgb(var(--accent-rgb, 227 38 54) / .25); margin-left: clamp(0px, 4vw, 48px); }
.hp-msg.is-hidden { opacity: .5; }
.hp-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; font-size: 14px; }
.hp-msg-head time { color: var(--faint); font-size: 13px; }
.hp-adm-badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; }
.hp-msg-hide { margin-left: auto; border: 0; background: none; color: var(--faint); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.hp-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: var(--text); font-size: 15px; }
.hp-msg-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hp-msg-imgs img { display: block; max-width: min(260px, 100%); max-height: 200px; border-radius: 10px; object-fit: cover; }
.hp-reply { max-width: 860px; }

@media (max-width: 720px) {
  .hp-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; }
  .hp-row .hp-st { grid-column: 1 / -1; justify-self: start; }
  .hp-grid2 { grid-template-columns: 1fr; }
  .hp-form { padding: 18px; }
  .hp-msg { padding: 14px; }
  .hp-msg.is-admin { margin-left: 0; }
}

/* выпадающие списки в стиле сайта, а не системные (владелец 19.11.2026) */
.v3 .hp-page select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: rgb(255 255 255 / .04) url("data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg width=12 height=8 viewBox=0 0 12 8%3E%3Cpath d=M1 1l5 5 5-5 fill=none stroke=%23a3a6ad stroke-width=1.6/%3E%3C/svg%3E") no-repeat right 16px center; }
.v3 .hp-page select { color-scheme: dark; color: var(--text); }
.v3 .hp-page select option, .v3 .hp-page select optgroup { background: #0e1015; color: #e7e3dc; }
.v3 .hp-admin-st select { min-width: 190px; min-height: 42px; padding-left: 16px; border-radius: 999px; font-size: 14px; }

/* значок администрации в ответах */
.hp-adm-badge { align-items: center; gap: 6px; }
.hp-adm-badge .ico { width: 14px; height: 14px; }
.hp-msg.is-admin .hp-msg-head b { display: inline-flex; align-items: center; gap: 10px; }
.hp-adm-av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(var(--accent-rgb, 227 38 54) / .18); flex: none; }
.hp-adm-av { overflow: hidden; }
.hp-adm-av img { width: 34px; height: 34px; display: block; object-fit: cover; }

/* «Отклонён», «Только для админов», «Ждёт ответа» (19.11.2026) */
.hp-st-rejected { background: rgb(229 72 77 / .16); color: #ff8a8e; }
.hp-st-private { background: rgb(176 140 255 / .16); color: #c4abff; }
.hp-st-new { background: var(--accent); color: #fff; }
.hp-sts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hp-row { grid-template-columns: 150px 1fr auto; }
.hp-row.is-waiting { border-color: rgb(var(--accent-rgb, 227 38 54) / .45); }
.hp-wait { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 40px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; flex: none; }
.hp-wait .ico { width: 16px; height: 16px; }
.hp-private { margin: 0; }
.hp-private b { color: var(--text); }
@media (max-width: 720px) { .hp-row .hp-sts { grid-column: 1 / -1; } }
.hp-admin .x-btn .ico { width: 16px; height: 16px; }
.hp-edited { font-size: 12.5px; color: var(--faint); font-style: italic; }
.hp-msg-edit + .hp-msg-hide { margin-left: 12px; }
.hp-edit { display: grid; gap: 10px; }
.hp-edit .form-msg:empty { display: none; }
