/* «Мои услуги» и «Пополнить баланс» — новый дизайн (шаблоны clientareaproducts.tpl, clientareaaddfunds.tpl) */

/* ---------- Шапка раздела (общая) ---------- */
.wh-svc__top, .wh-fund__top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 28px; align-items: center; padding: 30px 32px; border-radius: 24px; overflow: hidden; color: #fff; background: radial-gradient(circle at 92% 0%, rgba(255, 235, 59, .18), transparent 40%), radial-gradient(circle at 0% 100%, rgba(124, 92, 231, .55), transparent 55%), linear-gradient(140deg, #1c1c25 0%, #2b2160 100%); box-shadow: 0 18px 44px rgba(28, 28, 37, .18); }
.wh-svc__kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #e9e3ff; background: rgba(255, 255, 255, .12); }
.wh-svc__kicker i { color: #FFEB3B; }
.wh-svc__hello h2 { margin: 14px 0 6px; font-size: 26px; font-weight: 800; line-height: 1.2; color: #fff !important; }
.wh-svc__hello p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .72); max-width: 520px; }
.wh-svc__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wh-svc__stat { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.wh-svc__stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; color: #fff; }
.wh-svc__stat small { display: block; margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.wh-svc__stat.is-alert { background: rgba(255, 235, 59, .14); border-color: rgba(255, 235, 59, .45); }
.wh-svc__stat.is-alert b { color: #FFEB3B; }
.wh-svc__new { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 22px; border-radius: 14px; font-size: 15px; font-weight: 700; color: #1c1c25 !important; background: #FFEB3B; box-shadow: 0 10px 24px rgba(255, 235, 59, .28); text-decoration: none !important; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.wh-svc__new:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 235, 59, .4); }

/* ---------- Фильтры ---------- */
.wh-svc__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.wh-svc__filters button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid #e2dcfb; background: #fff; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; transition: all .15s ease; }
.wh-svc__filters button span { min-width: 22px; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 700; text-align: center; color: #6c54c7; background: #f1edff; }
.wh-svc__filters button:hover { border-color: #6c54c7; color: #6c54c7; }
.wh-svc__filters button.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c5ce7, #6c54c7); box-shadow: 0 8px 18px rgba(108, 84, 199, .28); }
.wh-svc__filters button.is-active span { color: #6c54c7; background: #fff; }

/* ---------- Карточки услуг ---------- */
.wh-svc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.wh-svc-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid #ece8ff; box-shadow: 0 6px 24px rgba(28, 28, 37, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.wh-svc-card[hidden] { display: none; }
.wh-svc-card:hover { transform: translateY(-4px); border-color: #cfc5f7; box-shadow: 0 20px 44px rgba(108, 84, 199, .16); }
.wh-svc-card__media { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; background: #1c1c25 center / cover no-repeat; text-decoration: none !important; }
.wh-svc-card__media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 14, 38, .1) 30%, rgba(18, 14, 38, .85)); }
.wh-svc-card__media--plain { background: radial-gradient(circle at 80% 10%, rgba(124, 92, 231, .6), transparent 55%), linear-gradient(140deg, #1c1c25, #2b2160); }
.wh-svc-card__media--plain > i { position: relative; z-index: 1; font-size: 44px; color: rgba(255, 255, 255, .85); }
.wh-svc-card__status, .wh-svc-card__game { position: absolute; z-index: 1; }
.wh-svc-card__status { top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(100, 116, 139, .9); backdrop-filter: blur(4px); }
.wh-svc-card__status:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.wh-svc-card__status--active { color: #052e16; background: #4ade80; }
.wh-svc-card__status--pending { color: #422006; background: #FFEB3B; }
.wh-svc-card__status--suspended { color: #fff; background: #f97316; }
.wh-svc-card__status--terminated, .wh-svc-card__status--cancelled, .wh-svc-card__status--fraud { color: #fff; background: #ef4444; }
.wh-svc-card__game { left: 16px; bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .4px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.wh-svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.wh-svc-card__name { margin: 0 0 8px; font-size: 18px !important; font-weight: 800 !important; line-height: 1.3; }
.wh-svc-card__name a { color: #1c1c25 !important; text-decoration: none !important; }
.wh-svc-card__name a:hover { color: #6c54c7 !important; }
.wh-svc-card__addr { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wh-svc-card__addr code { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; font-size: 12.5px; color: #6c54c7; background: #f1edff; border: 0; }
.wh-svc-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.wh-svc-card__price, .wh-svc-card__due { padding: 12px 14px; border-radius: 14px; background: #f7f6fd; }
.wh-svc-card__price b { display: block; font-size: 20px; font-weight: 800; line-height: 1.15; color: #6c54c7; }
.wh-svc-card__price small, .wh-svc-card__due small { display: block; font-size: 12px; color: #7b8496; }
.wh-svc-card__due small { margin-bottom: 3px; }
.wh-svc-card__due b { font-size: 14.5px; font-weight: 700; color: #1c1c25; white-space: nowrap; }
.wh-svc-card__due b i { color: #a48cff; margin-right: 4px; }
.wh-svc-card__left { margin-bottom: 16px; }
.wh-svc-card__bar { height: 7px; border-radius: 6px; background: #eef0f5; overflow: hidden; }
.wh-svc-card__bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #22c55e, #10b981); }
.wh-svc-card__left small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #15803d; }
.wh-svc-card__left--warn .wh-svc-card__bar span { background: linear-gradient(90deg, #facc15, #f59e0b); }
.wh-svc-card__left--warn small { color: #b45309; }
.wh-svc-card__left--urgent .wh-svc-card__bar span, .wh-svc-card__left--overdue .wh-svc-card__bar span { background: linear-gradient(90deg, #f87171, #ef4444); }
.wh-svc-card__left--urgent small, .wh-svc-card__left--overdue small { color: #b91c1c; }
.wh-svc-card__actions { display: flex; gap: 8px; margin-top: auto; }
.wh-svc-card__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 13px; font-size: 14.5px; font-weight: 700; color: #fff !important; background: linear-gradient(135deg, #7c5ce7, #6c54c7); box-shadow: 0 8px 18px rgba(108, 84, 199, .25); text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; }
.wh-svc-card__btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(108, 84, 199, .38); }
.wh-svc-card__btn--ghost { flex: 0 0 48px; padding: 12px 0; color: #6c54c7 !important; background: #f1edff; box-shadow: none; }
.wh-svc-card__btn--ghost:hover { color: #fff !important; background: #6c54c7; box-shadow: none; }
.wh-svc-card--terminated, .wh-svc-card--cancelled { opacity: .78; }
.wh-svc-card--terminated .wh-svc-card__media, .wh-svc-card--cancelled .wh-svc-card__media { filter: grayscale(.8); }

.wh-svc__none, .wh-svc__empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border-radius: 20px; border: 1px dashed #d6cff7; background: #faf9ff; color: #64748b; }
.wh-svc__none[hidden] { display: none; }
.wh-svc__none i { margin-right: 6px; color: #a48cff; }
.wh-svc__empty > span { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; font-size: 26px; color: #fff; background: linear-gradient(135deg, #7c5ce7, #6c54c7); }
.wh-svc__empty h3 { margin: 16px 0 6px; font-size: 20px; font-weight: 800; color: #1c1c25; }
.wh-svc__empty p { margin: 0 0 18px; }
.wh-svc__empty .wh-svc__new { display: inline-flex; }

/* ---------- Пополнение баланса ---------- */
.wh-fund__top { grid-template-columns: minmax(0, 1fr) auto; }
.wh-fund__bal { text-align: right; }
.wh-fund__bal small { display: block; font-size: 13px; color: rgba(255, 255, 255, .65); }
.wh-fund__bal b { display: block; font-size: 38px; font-weight: 800; line-height: 1.1; color: #FFEB3B; white-space: nowrap; }
.wh-fund__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.wh-fund__card { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid #ece8ff; box-shadow: 0 6px 24px rgba(28, 28, 37, .05); }
.wh-fund__step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #1c1c25; }
.wh-fund__step span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; font-size: 13px; color: #fff; background: linear-gradient(135deg, #7c5ce7, #6c54c7); }
.wh-fund__amount { position: relative; }
#main-body .wh-fund__amount input.form-control { height: 64px; padding: 0 56px 0 20px; font-size: 28px; font-weight: 800; color: #1c1c25; }
.wh-fund__amount em { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 24px; font-weight: 800; color: #a48cff; pointer-events: none; }
.wh-fund__hint { margin: 8px 0 0; font-size: 13px; color: #7b8496; }
.wh-fund__quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.wh-fund__quick button { padding: 9px 15px; border-radius: 12px; border: 1px solid #e2dcfb; background: #faf9ff; font-size: 14px; font-weight: 700; color: #475569; cursor: pointer; transition: all .15s ease; }
.wh-fund__quick button:hover, .wh-fund__quick button.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #7c5ce7, #6c54c7); }
.wh-fund__methods { display: grid; gap: 10px; margin-bottom: 24px; }
.wh-fund__method { position: relative; display: flex !important; align-items: center; gap: 14px; margin: 0 !important; padding: 14px 16px; border-radius: 14px; border: 2px solid #ece8ff; background: #fff; font-weight: 600 !important; color: #1c1c25 !important; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wh-fund__method input { position: absolute; opacity: 0; pointer-events: none; }
.wh-fund__method i { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; border-radius: 11px; font-size: 17px; color: #6c54c7; background: #f1edff; }
.wh-fund__method b { flex: 1; font-size: 15px; font-weight: 700; }
.wh-fund__method:after { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #d6cff7; transition: all .15s ease; }
.wh-fund__method:hover { border-color: #c9bff3; }
.wh-fund__method:has(input:checked) { border-color: #6c54c7; background: #faf9ff; }
.wh-fund__method:has(input:checked):after { border: 7px solid #6c54c7; }
.wh-fund__method:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(124, 92, 231, .2); }
.wh-fund__submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 17px 20px; border: 0; border-radius: 15px; font-size: 17px; font-weight: 800; color: #1c1c25; background: #FFEB3B; box-shadow: 0 10px 24px rgba(255, 235, 59, .35); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.wh-fund__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 235, 59, .45); }
.wh-fund__note { display: flex; gap: 8px; margin: 14px 0 0; font-size: 13px; color: #7b8496; }
.wh-fund__note i { margin-top: 2px; color: #a48cff; }
.wh-fund__side { display: grid; gap: 14px; }
.wh-fund__limits { display: grid; gap: 10px; }
.wh-fund__limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 14px; background: #f7f6fd; }
.wh-fund__limit span { font-size: 13.5px; color: #64748b; }
.wh-fund__limit b { font-size: 15px; font-weight: 800; color: #1c1c25; white-space: nowrap; }
.wh-fund__why { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wh-fund__why li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: #475569; }
.wh-fund__why li i { flex: 0 0 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #6c54c7; background: #f1edff; }
.wh-fund__why b { display: block; color: #1c1c25; }

@media (max-width: 991px) {
  .wh-fund__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .wh-svc__top, .wh-fund__top { grid-template-columns: 1fr; padding: 24px 20px; }
  .wh-svc__new { grid-column: auto; grid-row: auto; }
  .wh-svc__stats { grid-template-columns: 1fr 1fr; }
  .wh-svc__stat:last-child { grid-column: 1 / -1; }
  .wh-svc__hello h2 { font-size: 22px; }
  .wh-svc__grid { grid-template-columns: 1fr; }
  .wh-fund__bal { text-align: left; }
  .wh-fund__bal b { font-size: 32px; }
  .wh-fund__card { padding: 20px; }
}

/* Одна услуга — горизонтальная карточка на всю ширину */
@media (min-width: 768px) {
  .wh-svc__grid:has(> .wh-svc-card:only-of-type) { grid-template-columns: 1fr; }
  .wh-svc-card:only-of-type { flex-direction: row; }
  .wh-svc-card:only-of-type .wh-svc-card__media { flex: 0 0 42%; height: auto; min-height: 260px; }
  .wh-svc-card:only-of-type .wh-svc-card__body { padding: 24px 26px; }
  .wh-svc-card:only-of-type .wh-svc-card__name { font-size: 22px !important; }
}
/* На странице услуг фильтр уже есть над карточками — дублирующий блок «Просмотр» в боковой панели скрываем */
body:has(.wh-svc) .panel-sidebar.view-filter-btns { display: none; }
#main-body .wh-fund__card h3.wh-fund__step { margin: 0 0 14px; }
#main-body .wh-fund__card h3.wh-fund__step:not(:first-child) { margin-top: 4px; }

/* =====================================================================
   Общие блоки кабинета: тикеты, профиль, контакты, пароль, безопасность,
   письма, предложения, управление услугой. Шапка — .wh-svc__top (выше).
   ===================================================================== */
.wh-ca { position: relative; }
.wh-ca > * + * { margin-top: 20px; }
body:has(.wh-ca--nofilter) .panel-sidebar.view-filter-btns { display: none; }

/* Шапка: доп. варианты */
.wh-svc__stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wh-svc__stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wh-svc__stat b.is-sm { font-size: 16px; line-height: 1.35; }
.wh-ca-top-acts { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.wh-ca-who { display: flex; align-items: center; gap: 18px; }
.wh-ca-ava { flex: 0 0 72px; height: 72px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; letter-spacing: 1px; color: #1c1c25; background: linear-gradient(135deg, #FFEB3B, #ffd54f); box-shadow: 0 10px 26px rgba(255, 235, 59, .25); text-transform: uppercase; }
.wh-ca-who .wh-svc__hello h2 { margin-top: 10px; }
.wh-ca-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #052e16; background: #4ade80; vertical-align: middle; }
.wh-ca-tag--off { color: #fff; background: rgba(255, 255, 255, .18); }
.wh-ca-tag--warn { color: #422006; background: #FFEB3B; }

/* Шаги (новый тикет) */
.wh-ca-steps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wh-ca-steps li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .07); }
.wh-ca-steps li span { width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .14); }
.wh-ca-steps li.is-done span { color: #052e16; background: #4ade80; }
.wh-ca-steps li.is-on { color: #fff; background: rgba(255, 235, 59, .16); box-shadow: inset 0 0 0 1px rgba(255, 235, 59, .5); }
.wh-ca-steps li.is-on span { color: #1c1c25; background: #FFEB3B; }

/* Кнопки */
.wh-ca-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border: 0; border-radius: 13px; font-size: 15px; font-weight: 700; line-height: 1.2; color: #fff !important; background: linear-gradient(135deg, #7c5ce7, #6c54c7); box-shadow: 0 8px 18px rgba(108, 84, 199, .25); text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.wh-ca-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(108, 84, 199, .36); }
.wh-ca-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.wh-ca-btn--yellow { color: #1c1c25 !important; background: #FFEB3B; box-shadow: 0 10px 24px rgba(255, 235, 59, .3); }
.wh-ca-btn--yellow:hover { box-shadow: 0 14px 30px rgba(255, 235, 59, .45); }
.wh-ca-btn--ghost { color: #6c54c7 !important; background: #f1edff; box-shadow: none; }
.wh-ca-btn--ghost:hover { color: #fff !important; background: #6c54c7; box-shadow: none; }
.wh-ca-btn--glass { color: #fff !important; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.wh-ca-btn--glass:hover { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.wh-ca-btn--danger { color: #dc2626 !important; background: #fff; box-shadow: inset 0 0 0 1px #fecaca; }
.wh-ca-btn--danger:hover { color: #fff !important; background: #ef4444; box-shadow: none; }
.wh-ca-btn--sm { padding: 9px 14px; font-size: 13.5px; border-radius: 11px; }

/* Карточки и сетки */
.wh-ca-card { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid #ece8ff; box-shadow: 0 6px 24px rgba(28, 28, 37, .05); }
.wh-ca-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.wh-ca-card__ico { flex: 0 0 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; background: linear-gradient(135deg, #7c5ce7, #6c54c7); box-shadow: 0 8px 16px rgba(108, 84, 199, .22); }
.wh-ca-card__ico--yellow { color: #1c1c25; background: #FFEB3B; box-shadow: 0 8px 16px rgba(255, 235, 59, .3); }
.wh-ca-card__ico--green { background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 8px 16px rgba(16, 185, 129, .22); }
.wh-ca-card__ico--red { background: linear-gradient(135deg, #f87171, #ef4444); box-shadow: 0 8px 16px rgba(239, 68, 68, .22); }
#main-body .wh-ca-card__head h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; color: #1c1c25 !important; }
#main-body .wh-ca-card__head p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: #7b8496; }
.wh-ca-card__head > .wh-ca-btn, .wh-ca-card__head > .wh-ca-tag { margin-left: auto; }
.wh-ca-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.wh-ca-cols--side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.wh-ca-stack { display: grid; gap: 20px; }

/* Поля форм */
.wh-ca-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.wh-ca-fields--1 { grid-template-columns: 1fr; }
.wh-ca-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wh-ca-field--wide { grid-column: 1 / -1; }
#main-body .wh-ca .form-group { margin: 0; }
#main-body .wh-ca label.control-label, #main-body .wh-ca .wh-ca-label { display: block; margin: 0 0 7px; padding: 0; text-align: left; font-size: 13.5px; font-weight: 700; color: #334155; }
#main-body .wh-ca .form-control[disabled], #main-body .wh-ca .form-control.disabled { color: #64748b; background: #f3f2f8; cursor: not-allowed; }
.wh-ca-help { display: block; margin-top: 6px; font-size: 12.5px; color: #7b8496; }
.wh-ca-inline { display: flex; gap: 10px; align-items: stretch; }
.wh-ca-inline > :first-child { flex: 1; min-width: 0; }
#main-body .wh-ca input[type=file].form-control { height: auto; padding: 14px; border: 2px dashed #d6cff7; background: #faf9ff; font-size: 13.5px; color: #64748b; cursor: pointer; }
#main-body .wh-ca input[type=file].form-control::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 10px; font-weight: 700; color: #6c54c7; background: #f1edff; cursor: pointer; }
#fileUploadsContainer input[type=file] { margin-top: 10px; }

/* Переключатели (уведомления на почту) */
.wh-ca-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
#main-body .wh-ca-toggle { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid #ece8ff; background: #faf9ff; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #334155; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
#main-body .wh-ca-toggle:hover { border-color: #cfc5f7; }
#main-body .wh-ca-toggle:has(input:checked) { border-color: #cfc5f7; background: #f4f0ff; }
#main-body .wh-ca-toggle input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 40px; width: 40px; height: 23px; margin: 0; border-radius: 23px; background: #d9d4ec; cursor: pointer; transition: background .2s ease; }
#main-body .wh-ca-toggle input[type=checkbox]:before { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); transition: transform .2s ease; }
#main-body .wh-ca-toggle input[type=checkbox]:checked { background: #6c54c7; }
#main-body .wh-ca-toggle input[type=checkbox]:checked:before { transform: translateX(17px); }
#main-body .wh-ca-toggle input[type=checkbox]:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(124, 92, 231, .25); }

/* Выбор из вариантов (приоритет тикета) */
.wh-ca-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#main-body .wh-ca-seg label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 10px; border-radius: 13px; border: 2px solid #ece8ff; background: #fff; font-size: 14px; font-weight: 700; color: #475569; cursor: pointer; transition: all .15s ease; }
.wh-ca-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wh-ca-seg label:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #a48cff); }
#main-body .wh-ca-seg label:has(input:checked) { border-color: #6c54c7; color: #1c1c25; background: #faf9ff; }
.wh-ca-seg label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(124, 92, 231, .2); }

/* Нижняя панель сохранения */
.wh-ca-bar { position: sticky; bottom: 14px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 14px 22px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, #1c1c25, #2b2160); box-shadow: 0 16px 40px rgba(28, 28, 37, .25); }
.wh-ca-bar p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.wh-ca-bar p i { margin-right: 6px; color: #FFEB3B; }
.wh-ca-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Инструменты списка: фильтры + поиск */
.wh-ca-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wh-ca-tools .wh-svc__filters { margin: 0; }
.wh-ca-search { position: relative; margin-left: auto; flex: 0 1 280px; }
.wh-ca-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #a48cff; pointer-events: none; }
#main-body .wh-ca-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 13px; border: 1px solid #e2dcfb; background: #fff; font-size: 14px; color: #1c1c25; box-shadow: none; }
#main-body .wh-ca-search input:focus { outline: 0; border-color: #6c54c7; box-shadow: 0 0 0 4px rgba(124, 92, 231, .15); }

/* Строки списков */
.wh-ca-list { display: grid; gap: 10px; }
.wh-ca-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 15px 18px; border-radius: 18px; background: #fff; border: 1px solid #ece8ff; color: inherit !important; text-decoration: none !important; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.wh-ca-row:hover { border-color: #cfc5f7; box-shadow: 0 12px 28px rgba(108, 84, 199, .12); transform: translateY(-2px); }
.wh-ca-row[hidden] { display: none; }
.wh-ca-row__ico { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #6c54c7; background: #f1edff; }
.wh-ca-row__main { min-width: 0; }
.wh-ca-row__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 700; color: #1c1c25; }
.wh-ca-row__title em { font-style: normal; font-weight: 800; color: #a48cff; margin-right: 6px; }
.wh-ca-row__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13px; color: #7b8496; }
.wh-ca-row__meta i { margin-right: 5px; color: #b9abf5; }
.wh-ca-row__side { display: flex; align-items: center; gap: 10px; }
.wh-ca-row__go { color: #c4b8f5; font-size: 14px; transition: transform .15s ease, color .15s ease; }
.wh-ca-row:hover .wh-ca-row__go { color: #6c54c7; transform: translateX(3px); }
.wh-ca-row.is-unread { border-color: #ffe97a; background: linear-gradient(90deg, #fffbe0, #fff 40%); }
.wh-ca-row.is-unread .wh-ca-row__title:after { content: "новый ответ"; display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 800; vertical-align: 2px; color: #422006; background: #FFEB3B; }
.wh-ca-none { padding: 30px 20px; text-align: center; border-radius: 18px; border: 1px dashed #d6cff7; background: #faf9ff; color: #64748b; }
.wh-ca-none[hidden] { display: none; }
.wh-ca-none i { margin-right: 6px; color: #a48cff; }
.wh-ca-more { display: flex; justify-content: center; }

/* Статусы (тикеты, предложения, услуги) */
.wh-ca-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; color: #475569; background: #eef0f5; }
.wh-ca-pill:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wh-ca-pill--open, .wh-ca-pill--active, .wh-ca-pill--accepted { color: #15803d; background: #dcfce7; }
.wh-ca-pill--answered, .wh-ca-pill--delivered { color: #6c54c7; background: #f1edff; }
.wh-ca-pill--customer-reply, .wh-ca-pill--pending, .wh-ca-pill--onhold, .wh-ca-pill--on-hold { color: #a16207; background: #fef9c3; }
.wh-ca-pill--inprogress, .wh-ca-pill--in-progress { color: #1d4ed8; background: #dbeafe; }
.wh-ca-pill--closed, .wh-ca-pill--draft, .wh-ca-pill--dead, .wh-ca-pill--cancelled, .wh-ca-pill--terminated { color: #64748b; background: #eef0f5; }
.wh-ca-pill--lost, .wh-ca-pill--suspended, .wh-ca-pill--overdue { color: #b91c1c; background: #fee2e2; }
.wh-ca-row__ico--open, .wh-ca-row__ico--customer-reply { color: #15803d; background: #dcfce7; }
.wh-ca-row__ico--answered { color: #fff; background: linear-gradient(135deg, #7c5ce7, #6c54c7); }
.wh-ca-row__ico--closed { color: #94a3b8; background: #f1f5f9; }
.wh-ca-row__ico--inprogress { color: #1d4ed8; background: #dbeafe; }
.wh-ca-row__ico--onhold { color: #a16207; background: #fef9c3; }

/* Плитки выбора (отделы поддержки) */
.wh-ca-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.wh-ca-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid #ece8ff; color: inherit !important; text-decoration: none !important; box-shadow: 0 6px 20px rgba(28, 28, 37, .04); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.wh-ca-tile:hover { border-color: #cfc5f7; box-shadow: 0 18px 38px rgba(108, 84, 199, .15); transform: translateY(-3px); }
.wh-ca-tile .wh-ca-card__ico { margin-bottom: 10px; }
.wh-ca-tile b { font-size: 17px; font-weight: 800; color: #1c1c25; }
.wh-ca-tile > span:not(.wh-ca-card__ico) { font-size: 13.5px; line-height: 1.5; color: #7b8496; }
.wh-ca-tile em { margin-top: auto; padding-top: 12px; font-style: normal; font-size: 14px; font-weight: 700; color: #6c54c7; }
.wh-ca-tile em i { margin-left: 6px; transition: transform .15s ease; }
.wh-ca-tile:hover em i { transform: translateX(4px); }

/* Переписка в тикете */
.wh-tk-thread { display: grid; gap: 18px; }
.wh-tk-msg { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; max-width: 88%; }
.wh-tk-msg--me { margin-left: auto; grid-template-columns: minmax(0, 1fr) 46px; }
.wh-tk-msg--me .wh-tk-msg__ava { order: 2; }
.wh-tk-msg__ava { width: 46px; height: 46px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #1c1c25; background: #FFEB3B; }
.wh-tk-msg--staff .wh-tk-msg__ava { color: #fff; background: linear-gradient(135deg, #7c5ce7, #6c54c7); }
.wh-tk-msg__bubble { min-width: 0; padding: 16px 20px; border-radius: 6px 20px 20px 20px; background: #fff; border: 1px solid #ece8ff; box-shadow: 0 6px 20px rgba(28, 28, 37, .04); }
.wh-tk-msg--me .wh-tk-msg__bubble { border-radius: 20px 6px 20px 20px; background: #f6f3ff; border-color: #e2dcfb; }
.wh-tk-msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: 13px; color: #7b8496; }
.wh-tk-msg__head b { font-size: 14.5px; color: #1c1c25; }
.wh-tk-msg__role { padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; color: #6c54c7; background: #f1edff; }
.wh-tk-msg--staff .wh-tk-msg__role { color: #fff; background: #6c54c7; }
.wh-tk-msg__date { margin-left: auto; white-space: nowrap; }
.wh-tk-msg__text { font-size: 14.5px; line-height: 1.7; color: #334155; overflow-wrap: anywhere; }
.wh-tk-msg__text p:last-child { margin-bottom: 0; }
.wh-tk-msg__text img { max-width: 100%; height: auto; border-radius: 10px; }
.wh-tk-msg__text pre { white-space: pre-wrap; border-radius: 10px; }
.wh-tk-msg__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2dcfb; }
.wh-tk-msg__files a, .wh-tk-msg__files span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #6c54c7 !important; background: #fff; border: 1px solid #e2dcfb; text-decoration: none !important; }
.wh-tk-msg__files span { color: #94a3b8 !important; text-decoration: line-through !important; }
.wh-tk-msg .rating, .wh-tk-msg .rating-done { margin-top: 12px; }
.wh-tk-closed { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 18px; background: #f7f6fd; border: 1px dashed #d6cff7; color: #475569; font-size: 14px; }
.wh-tk-closed i { font-size: 22px; color: #a48cff; }

/* Успех (тикет создан) */
.wh-ca-done { text-align: center; padding: 46px 26px; }
.wh-ca-done__ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #fff; background: linear-gradient(135deg, #22c55e, #10b981); box-shadow: 0 16px 34px rgba(16, 185, 129, .3); }
#main-body .wh-ca-done h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #1c1c25 !important; }
.wh-ca-done p { max-width: 520px; margin: 0 auto 22px; color: #64748b; }
.wh-ca-done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Списки пунктов (подсказки, безопасность) */
.wh-ca-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wh-ca-ticks li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: #475569; }
.wh-ca-ticks li > i { flex: 0 0 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #6c54c7; background: #f1edff; }
.wh-ca-ticks b { display: block; color: #1c1c25; }
.wh-ca .progress { height: 8px; margin: 12px 0 0; border-radius: 8px; background: #eef0f5; box-shadow: none; }
.wh-ca .progress-bar { border-radius: 8px; box-shadow: none; }
.wh-ca #passwordStrengthBar + .alert, .wh-ca .pw-tips-hidden { display: none; }
.wh-ca .has-feedback .form-control-feedback { display: none; }
.wh-ca .help-block { margin: 6px 0 0; font-size: 12.5px; color: #dc2626; }

/* Большой статус (2FA) */
.wh-ca-state { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 18px; background: #f7f6fd; }
.wh-ca-state__ico { flex: 0 0 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; color: #94a3b8; background: #fff; border: 1px solid #e2dcfb; }
.wh-ca-state--on .wh-ca-state__ico { color: #fff; border: 0; background: linear-gradient(135deg, #22c55e, #10b981); }
.wh-ca-state b { display: block; font-size: 16px; color: #1c1c25; }
.wh-ca-state small { display: block; margin-top: 2px; font-size: 13.5px; color: #64748b; }
.wh-ca-state .wh-ca-btn { margin-left: auto; }

/* Выбор контакта */
.wh-ca-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-ca-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px; border: 1px solid #e2dcfb; background: #fff; font-size: 14px; font-weight: 600; color: #334155 !important; text-decoration: none !important; cursor: pointer; transition: all .15s ease; }
.wh-ca-chip b { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #6c54c7; background: #f1edff; text-transform: uppercase; }
.wh-ca-chip small { display: block; font-size: 12px; font-weight: 500; color: #94a3b8; }
.wh-ca-chip:hover { border-color: #6c54c7; }
.wh-ca-chip.is-on { border-color: #6c54c7; background: #f6f3ff; box-shadow: 0 0 0 3px rgba(124, 92, 231, .12); }
.wh-ca-chip.is-on b { color: #fff; background: #6c54c7; }
.wh-ca-chip--add b { color: #1c1c25; background: #FFEB3B; }

@media (max-width: 991px) {
  .wh-ca-cols, .wh-ca-cols--side { grid-template-columns: 1fr; }
  .wh-svc__stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wh-ca-top-acts { grid-column: auto; grid-row: auto; justify-content: flex-start; }
  .wh-ca-top-acts .wh-ca-btn { flex: 1; }
  .wh-svc__stats--2 .wh-svc__stat:last-child, .wh-svc__stats--4 .wh-svc__stat:last-child { grid-column: auto; }
  .wh-ca-who { align-items: flex-start; }
  .wh-ca-ava { flex-basis: 56px; height: 56px; font-size: 20px; border-radius: 17px; }
  .wh-ca-card { padding: 20px; }
  .wh-ca-fields, .wh-ca-fields--3 { grid-template-columns: 1fr; }
  .wh-ca-search { flex: 1 1 100%; margin-left: 0; }
  .wh-ca-row { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .wh-ca-row__ico { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
  .wh-ca-row__side { grid-column: 2; flex-wrap: wrap; }
  .wh-ca-row__go { display: none; }
  .wh-ca-row__title { white-space: normal; }
  .wh-ca-bar { flex-direction: column; align-items: stretch; padding: 14px; }
  .wh-ca-bar p { display: none; }
  .wh-ca-bar__btns .wh-ca-btn { flex: 1; }
  .wh-tk-msg { max-width: 100%; grid-template-columns: 38px minmax(0, 1fr); }
  .wh-tk-msg--me { grid-template-columns: minmax(0, 1fr) 38px; }
  .wh-tk-msg__ava { width: 38px; height: 38px; border-radius: 12px; font-size: 14px; }
  .wh-tk-msg__bubble { padding: 14px 15px; }
  .wh-tk-msg__date { margin-left: 0; width: 100%; }
  .wh-ca-seg { grid-template-columns: 1fr; }
  .wh-ca-state { flex-wrap: wrap; }
  .wh-ca-state .wh-ca-btn { margin-left: 0; width: 100%; }
}
.wh-ca #newPassword1 > br { display: none; }
.wh-ca .wh-ca-state.hidden { display: none !important; }
#main-body .wh-ca .marketing-email-optin { margin-top: 20px; }

/* ---------- Управление услугой: шапка ---------- */
.wh-pd-top--art { background: linear-gradient(100deg, rgba(22, 18, 44, .97) 0%, rgba(32, 24, 72, .9) 45%, rgba(43, 33, 96, .55) 100%), var(--art) center / cover no-repeat; }
.wh-pd-top__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.wh-pd-top__line .wh-svc-card__status { position: static; }
.wh-pd-top__line code { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.wh-pd-top__line code i { color: #FFEB3B; }
.wh-pd-top__bar { display: block; height: 6px; margin-top: 10px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.wh-pd-top__bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4ade80, #22c55e); }
.wh-pd-top__bar--warn span { background: linear-gradient(90deg, #fde047, #f59e0b); }
.wh-pd-top__bar--urgent span, .wh-pd-top__bar--overdue span { background: linear-gradient(90deg, #fca5a5, #ef4444); }
.wh-pd-top__warn { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; color: #fff; background: rgba(239, 68, 68, .25); border: 1px solid rgba(239, 68, 68, .5); }
.wh-pd-top__warn i { margin-right: 6px; color: #fca5a5; }
.wh-pd-top + .wh-pd-cancel, .wh-pd-cancel { margin: 10px 4px 22px; text-align: right; font-size: 13px; }
.wh-pd-cancel a { color: #94a3b8 !important; text-decoration: none !important; }
.wh-pd-cancel a:hover { color: #dc2626 !important; }
.wh-pd-top { margin-bottom: 22px; }
.wh-pd-top:has(+ .wh-pd-cancel) { margin-bottom: 0; }
.wh-ca-tiles { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.wh-ca-tile .wh-ca-card__ico { align-self: flex-start; width: 44px; }
.wh-ca-card__ico { flex-shrink: 0; }

/* ---------- Редактор сообщений (bootstrap-markdown) в тикетах ----------
   В all.min.css темы стилей редактора нет, поэтому задаём всё здесь. */
#main-body .md-editor { display: block; overflow: hidden; border: 1px solid #e2dcfb; border-radius: 16px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
#main-body .md-editor.active { border-color: #6c54c7; box-shadow: 0 0 0 4px rgba(124, 92, 231, .14); }
#main-body .md-editor > .md-header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 8px 10px; background: #faf9ff !important; border-bottom: 1px solid #ece8ff; }
#main-body .md-editor > .md-header .btn-group { display: flex; float: none; margin: 0; padding-right: 6px; margin-right: 2px; border-right: 1px solid #e2dcfb; }
#main-body .md-editor > .md-header .btn-group:nth-last-child(2), #main-body .md-editor > .md-header .btn-group:has(> .open-modal) { border-right: 0; }
#main-body .md-editor > .md-header .btn { display: inline-flex; align-items: center; justify-content: center; float: none; width: 34px; height: 34px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 9px !important; font-size: 13px; line-height: 1; color: #64748b !important; background: transparent !important; box-shadow: none !important; transform: none !important; }
#main-body .md-editor > .md-header .btn.hidden { display: none !important; }
#main-body .md-editor > .md-header .btn:hover { color: #6c54c7 !important; background: #f1edff !important; }
#main-body .md-editor > .md-header .btn .glyphicon { top: 0; }
#main-body .md-editor > .md-header .btn-primary { width: auto; gap: 6px; padding: 0 12px !important; font-size: 13px; font-weight: 700; color: #6c54c7 !important; background: #f1edff !important; }
#main-body .md-editor > .md-header .btn-primary:hover, #main-body .md-editor > .md-header .btn-primary.active { color: #fff !important; background: #6c54c7 !important; }
#main-body .md-editor .md-controls { float: none; margin-left: auto; padding: 0; }
#main-body .md-editor .md-controls .md-control { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 9px; font-size: 13px; color: #94a3b8 !important; text-decoration: none !important; }
#main-body .md-editor .md-controls .md-control:hover { color: #6c54c7 !important; background: #f1edff; }
#main-body .md-editor > textarea.md-input, #main-body .md-editor > .md-preview { display: block; width: 100%; min-height: 200px; margin: 0; padding: 16px 18px !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; font-size: 14.5px; line-height: 1.65; color: #1c1c25; }
#main-body .md-editor > .md-preview { overflow: auto; }
#main-body .md-editor > .md-footer { display: flex; align-items: center; padding: 8px 14px; background: #faf9ff; border-top: 1px solid #ece8ff; }
#main-body .md-editor .markdown-editor-status, #main-body .md-editor .small-font { width: 100%; margin: 0; font-size: 12.5px; color: #94a3b8; }
#main-body .md-editor .small-font { display: flex; flex-wrap: wrap; gap: 4px 14px; }
#main-body .md-editor .markdown-save { margin-left: auto; font-weight: 600; color: #22a06b; }
#main-body .md-editor .markdown-save:before { content: "\f00c"; margin-right: 5px; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
#main-body .md-editor .md-fullscreen-controls { display: none; }

/* Полноэкранный режим */
#main-body .md-editor.md-fullscreen-mode { position: fixed; inset: 0; z-index: 100000; width: 100%; height: 100%; padding: 76px 24px 24px; border: 0 !important; border-radius: 0; background: #f6f5fb !important; box-shadow: none; }
#main-body .md-editor.md-fullscreen-mode > .md-header { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: auto; max-width: calc(100% - 100px); border: 1px solid #e2dcfb; border-radius: 14px; background: #fff !important; box-shadow: 0 10px 30px rgba(28, 28, 37, .08); }
#main-body .md-editor.md-fullscreen-mode .md-controls { display: none; }
#main-body .md-editor.md-fullscreen-mode > textarea.md-input, #main-body .md-editor.md-fullscreen-mode > .md-preview { max-width: 900px; height: 100% !important; margin: 0 auto !important; padding: 28px 32px !important; border: 1px solid #e2dcfb !important; border-radius: 18px !important; font-size: 17px; resize: none; }
#main-body .md-editor.md-fullscreen-mode > .md-footer { display: none; }
#main-body .md-editor.md-fullscreen-mode .md-fullscreen-controls { display: block; position: fixed; top: 18px; right: 20px; z-index: 100001; }
#main-body .md-editor.md-fullscreen-mode .md-fullscreen-controls a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #6c54c7 !important; background: #fff; border: 1px solid #e2dcfb; text-decoration: none !important; }
.md-nooverflow { overflow: hidden; position: fixed; width: 100%; }
@media (max-width: 767px) {
  #main-body .md-editor > .md-header .btn-group { padding-right: 4px; }
  #main-body .md-editor > .md-header .btn { width: 32px; height: 32px; }
  #main-body .md-editor.md-fullscreen-mode { padding: 120px 10px 10px; }
  #main-body .md-editor.md-fullscreen-mode > .md-header { max-width: calc(100% - 80px); left: 10px; transform: none; }
}

/* ---------- Подсказки из базы знаний (новый тикет): главный призыв на странице ---------- */
.wh-kb { position: relative; overflow: hidden; padding: 20px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(255, 235, 59, .22), transparent 45%), radial-gradient(circle at 0% 100%, rgba(124, 92, 231, .55), transparent 55%), linear-gradient(140deg, #1c1c25 0%, #2b2160 100%); box-shadow: 0 18px 40px rgba(43, 33, 96, .28); }
.wh-kb[hidden] { display: none; }
.wh-kb.is-new { animation: whKbIn .35s ease; }
@keyframes whKbIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.wh-kb__head { margin-bottom: 14px; }
.wh-kb__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #1c1c25; background: #FFEB3B; }
.wh-kb__head b { display: block; margin-top: 10px; font-size: 19px; font-weight: 800; line-height: 1.25; color: #fff; }
.wh-kb__head small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.wh-kb__main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; padding: 16px 18px; border-radius: 16px; background: #fff; color: #1c1c25 !important; text-decoration: none !important; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); transition: transform .15s ease, box-shadow .15s ease; }
.wh-kb__main:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .25); }
.wh-kb__cat { grid-column: 1; justify-self: start; padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; color: #6c54c7; background: #f1edff; }
.wh-kb__cat[hidden] { display: none; }
.wh-kb__title { grid-column: 1; font-size: 16px; font-weight: 800; line-height: 1.35; }
.wh-kb__snip { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.5; color: #64748b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wh-kb__btn { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 13px; font-size: 14.5px; font-weight: 800; white-space: nowrap; color: #1c1c25; background: #FFEB3B; box-shadow: 0 8px 20px rgba(255, 235, 59, .35); }
.wh-kb__btn i { transition: transform .15s ease; }
.wh-kb__main:hover .wh-kb__btn i { transform: translateX(4px); }
.wh-kb__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.wh-kb__more[hidden] { display: none; }
.wh-kb__more > span { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.wh-kb__more a { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 8px 12px; border-radius: 11px; font-size: 13px; font-weight: 600; color: #fff !important; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); text-decoration: none !important; transition: background .15s ease; }
.wh-kb__more a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-kb__more a i { color: #FFEB3B; }
.wh-kb__more a:hover { background: rgba(255, 255, 255, .2); }
.wh-kb__after { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #dcfce7; background: rgba(34, 197, 94, .16); border: 1px solid rgba(74, 222, 128, .35); }
.wh-kb__after[hidden] { display: none; }
.wh-kb__after i { margin-right: 6px; color: #4ade80; }
@media (max-width: 767px) {
  .wh-kb { padding: 16px; }
  .wh-kb__main { grid-template-columns: 1fr; }
  .wh-kb__btn { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 8px; }
}

/* ---------- Загрузки ---------- */
.wh-dl-top .wh-ca-btn { grid-column: 2; grid-row: 1; align-self: start; }
.wh-dl-search { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.wh-dl-search > i { position: absolute; left: 20px; color: #a48cff; pointer-events: none; }
#main-body .wh-dl-search input { flex: 1; min-width: 0; height: 46px; padding: 0 12px 0 40px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; color: #1c1c25; box-shadow: none; outline: 0; }
.wh-dl-search button { height: 46px; padding: 0 22px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 800; color: #1c1c25; background: #FFEB3B; cursor: pointer; }
.wh-dl-search button:hover { background: #ffe31a; }
.wh-dl-sec > * + * { margin-top: 14px; }
#main-body .wh-dl-h { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 19px; font-weight: 800; color: #1c1c25 !important; }
.wh-dl-h i { color: #a48cff; }
.wh-dl-row__desc { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: #475569; }
.wh-dl-list .wh-ca-row__title { white-space: normal; }
.wh-dl-back { margin: 0; }
.wh-dl-back a { font-weight: 700; color: #6c54c7 !important; }
@media (max-width: 767px) {
  .wh-dl-top .wh-ca-btn { grid-column: auto; grid-row: auto; justify-self: start; }
  .wh-dl-search button { padding: 0 14px; }
}
