.res-personal,
.res-personal * { box-sizing: border-box; }
.res-personal {
  --rp-surface: #ebebeb;
  --rp-border: #bab9b9;
  --rp-accent: #7d5454;
  width: 850px;
  max-width: 100%;
  margin: 0 auto;
  background: #dcdcdc;
  color: #191919;
  font: 400 10px/1.3 Inter, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}
.res-personal img { max-width: none; border: 0; display: block; }
.res-personal button, .res-personal input, .res-personal textarea {
  font: inherit;
}
.res-personal button { cursor: pointer; }
.rp-canvas { width: 850px; min-height: 599px; position: relative; }
.rp-hero {
  height: 189px; position: relative; overflow: hidden;
  background: #683a27 center / cover no-repeat;
}
.rp-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.rp-character {
  position: absolute; background: #e7e7e7;
  box-shadow: 0 2px 3.7px rgba(0,0,0,.34);
  color: #111; text-align: center; overflow: hidden; text-decoration: none;
}
.rp-character--main { width: 120px; height: 162px; top: 17px; left: 30px; }
.rp-character--alt { width: 86px; height: 112px; top: 55px; }
.rp-character--alt:nth-of-type(2) { left: 174px; }
.rp-character--alt:nth-of-type(3) { left: 274px; }
.rp-character--alt:nth-of-type(4) { left: 374px; }
.rp-character__name {
  display: block; height: 24px; line-height: 24px; font-size: 12px;
  font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.rp-character--alt .rp-character__name { height: 17px; line-height: 17px; font-size: 10px; }
.rp-character__portrait { width: 110px; height: 110px; margin: 0 auto; object-fit: cover; }
.rp-character--alt .rp-character__portrait { width: 70px; height: 70px; }
.rp-character__icons {
  display: flex; align-items: center; justify-content: space-around;
  padding: 5px 9px 0; height: 27px;
}
.rp-character--alt .rp-character__icons { padding: 2px 5px 0; height: 25px; }
.rp-character__icons img { width: 13px; height: 13px; object-fit: contain; }
.rp-character__icons a, .rp-character__icons span {
  display: grid; place-items: center; width: 18px; height: 18px;
}
.rp-character__icons a:hover { opacity: .65; }
.rp-character__icons span { opacity: .4; }
.rp-tabs {
  display: flex; align-items: flex-end; gap: 5px;
  height: 15px; margin: 6px 0 -7px 20px;
  position: relative; z-index: 2;
}
.rp-tab {
  border: 0; border-radius: 0; min-width: 68px; height: 15px;
  padding: 0 9px; background: #4a4a4a; color: #fff;
  text-transform: lowercase; font: 400 9px/15px Inter, Arial, sans-serif;
  letter-spacing: .18px; text-shadow: .2px .2px rgba(0,0,0,.71);
  box-shadow: 0 2px 2px rgba(0,0,0,.33), inset 0 0 4px rgba(0,0,0,.19);
}
.rp-tab[aria-selected="true"], .rp-tab:hover { background: var(--rp-accent); }
.rp-tab:focus-visible, .res-personal button:focus-visible,
.res-personal a:focus-visible { outline: 2px solid #9d3131; outline-offset: 2px; }
.rp-panel {
  display: none; position: relative;
  width: 834px; height: 369px; margin: 0 8px 0;
  background: var(--rp-surface);
  box-shadow: 0 2px 3px rgba(0,0,0,.28);
}
.rp-panel.is-active { display: block; }
.rp-box {
  position: absolute; overflow: hidden;
  background: #fff; border: 1px solid var(--rp-border);
}
.res-personal .rp-box.rp-scroll-y { overflow-x: hidden; overflow-y: auto; }
.res-personal .rp-box.rp-scroll-x { overflow-x: auto; overflow-y: hidden; }
.res-personal .rp-scroll-x,
.res-personal .rp-scroll-y {
  scrollbar-width: thin;
  scrollbar-color: #b8aaa9 transparent;
}
.res-personal .rp-scroll-x::-webkit-scrollbar { height: 5px; }
.res-personal .rp-scroll-y::-webkit-scrollbar { width: 5px; }
.res-personal .rp-scroll-x::-webkit-scrollbar-thumb,
.res-personal .rp-scroll-y::-webkit-scrollbar-thumb {
  background: #b8aaa9; border-radius: 5px;
}
.res-personal .rp-scroll-x::-webkit-scrollbar-track,
.res-personal .rp-scroll-y::-webkit-scrollbar-track { background: transparent; }
.rp-ribbon {
  position: absolute; z-index: 1; top: -7px; left: 50%;
  transform: translateX(-50%); min-width: 76px; height: 13px;
  padding: 0 7px; background: var(--rp-accent);
  color: #fff; font: 400 9px/13px Inter, Arial, sans-serif;
  letter-spacing: .18px; text-align: center; white-space: nowrap;
  text-transform: lowercase; text-shadow: .2px .2px rgba(0,0,0,.71);
  box-shadow: 0 2px 2px rgba(0,0,0,.33), inset 0 0 4px rgba(0,0,0,.19);
}
.rp-block { position: absolute; }
.rp-block > .rp-ribbon { top: -7px; }
.rp-block > .rp-box { inset: 0; width: 100%; height: 100%; }
.rp-battle {
  position: absolute; top: 16px; left: 32px; display: flex;
  width: 147px; height: 24px; background: #343b38; color: #fff;
  border: 1px solid #7b8080; align-items: center;
  font: 700 11px/1 Georgia, serif; letter-spacing: .4px;
}
.rp-battle span { flex: 1; text-align: center; }
.rp-battle strong {
  width: 52px; height: 18px; margin-right: 8px; background: #fff;
  border: 1px solid #999; color: #474747;
  display: grid; place-items: center; font: 700 12px/1 Georgia, serif;
}
.rp-main-timeline { left: 12px; top: 54px; width: 202px; height: 301px; }
.rp-main-coupons { left: 224px; top: 23px; width: 386px; height: 172px; }
.rp-main-gifts { left: 224px; top: 212px; width: 386px; height: 141px; }
.rp-main-relics { left: 621px; top: 23px; width: 202px; height: 172px; }
.rp-main-chats { left: 621px; top: 211px; width: 202px; height: 143px; }
.rp-main .rp-main-timeline > .rp-ribbon { top: -7px; }
.rp-episodes {
  position: relative; height: 147px; padding: 14px 8px 0;
}
.rp-episodes + .rp-episodes { border-top: 1px solid #c3c3c3; }
.rp-episodes h3, .rp-chats h3 {
  margin: 0 0 7px 7px; font-size: 12px; line-height: 14px;
  font-weight: 700; text-transform: lowercase;
}
.rp-episode {
  height: 37px; padding: 3px 6px; margin: 0 0 3px;
  background: #ebebeb; color: #232323;
}
.rp-episode:last-child { opacity: .35; }
.rp-episode small { font-size: 7px; }
.rp-episode strong { font-size: 11px; font-weight: 400; }
.rp-episode em { display: block; padding-left: 39px; font-size: 9px; font-style: normal; line-height: 10px; }
.rp-coupon-grid {
  display: grid; grid-template-columns: repeat(6, 56px); gap: 6px 5px;
  width: max-content; padding: 10px 6px 10px 9px;
}
.rp-coupon {
  width: 56px; height: 82px; text-align: center;
}
.rp-coupon.is-locked .rp-coupon__image img { filter: grayscale(1); opacity: .45; }
.rp-coupon__image { position: relative; width: 56px; height: 56px; }
.rp-coupon__image img { width: 56px; height: 56px; object-fit: contain; }
.rp-coupon__image b {
  position: absolute; left: 20px; top: 20px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; color: #272727;
  font: 700 9px/16px Inter, Arial, sans-serif;
}
.rp-coupon__caption {
  height: 24px; margin-top: 2px; border: 1px solid #dcdcdc;
  background: #ebebeb; display: grid; place-items: center;
  font-size: 9px; line-height: 8px;
}
.rp-gift-grid {
  display: grid; grid-template-columns: repeat(6, 51px);
  gap: 8px 10px; width: max-content; padding: 19px 8px 8px;
}
.rp-gift {
  width: 51px; height: 51px; background: #eee; border-radius: 2px;
  display: grid; place-items: center; position: relative;
}
.rp-gift img { width: 47px; height: 40px; object-fit: contain; }
.rp-gift--empty, .rp-gift.is-empty { background: #f1f1f1; }
.rp-gift--empty::after, .rp-gift.is-empty::after {
  content: ""; width: 16px; height: 16px; border: 1px solid #cfcfcf;
  border-radius: 50%;
}
.rp-gift.is-empty > span { display: none; }
.rp-gift .rp-tip {
  display: none; position: absolute; z-index: 3;
  left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  width: 135px; padding: 6px; border-radius: 5px;
  background: #37302c; color: #fff; font-size: 9px; text-align: center;
  pointer-events: none; box-shadow: 0 3px 10px #0005;
}
.rp-gift:hover .rp-tip { display: block; }
.rp-relic-grid {
  display: grid; grid-template-columns: repeat(3, 51px);
  gap: 7px 9px; padding: 14px 8px;
}
.rp-relic { height: 51px; background: #ebebeb; border-radius: 3px; }
.rp-relic.is-earned img { width: 51px; height: 51px; object-fit: contain; }
.rp-chats { padding: 18px 4px 0; }
.rp-chat-row { height: 57px; }
.rp-chat-row h3 { margin-left: 8px; margin-bottom: 6px; }
.rp-paper-planes { display: flex; gap: 10px; padding-left: 8px; }
.rp-paper-planes img { width: 20px; height: 20px; object-fit: contain; }
.rp-paper-planes img:last-child { opacity: .3; }
.rp-edit {
  display: block; width: 106px; height: 13px;
  margin: 7px 8px 6px auto; padding: 0;
  border: 0; background: var(--rp-accent); color: #fff;
  font: 400 8px/13px Inter, Arial, sans-serif;
  text-transform: lowercase; text-align: center;
  box-shadow: 0 2px 2px rgba(0,0,0,.3);
}
.rp-edit[hidden] { display: none; }
.rp-profile-icons { left: 12px; top: 35px; width: 202px; height: 321px; }
.rp-profile-frames { left: 224px; top: 35px; width: 386px; height: 172px; }
.rp-profile-plaques { left: 224px; top: 226px; width: 386px; height: 128px; }
.rp-profile-bgs { left: 622px; top: 37px; width: 202px; height: 317px; }
.rp-icon-grid { display: grid; grid-template-columns: repeat(4,35px); column-gap: 11px; row-gap: 7px; padding: 12px 7px; }
.rp-icon-grid img { width: 35px; height: 35px; object-fit: contain; }
.rp-frame-grid { display: flex; gap: 4px; padding: 10px 8px; width: max-content; }
.rp-frame-grid img { width: 56px; height: 146px; flex: 0 0 56px; object-fit: cover; object-position: left top; }
.rp-plaque-grid { display: grid; grid-template-columns: repeat(2,224px); gap: 5px 6px; width: max-content; padding: 16px 9px; }
.rp-plaque-grid span { height: 28px; background: #695546; color: #ddd; font-size: 9px; line-height: 28px; text-align: center; white-space: nowrap; overflow: hidden; }
.rp-bg-grid { display: grid; grid-auto-rows: 51px; gap: 6px; padding: 13px 8px; }
.rp-bg-grid img { width: 183px; height: 51px; object-fit: cover; }
.rp-ach-badges { left: 12px; top: 35px; width: 228px; height: 321px; }
.rp-ach-collection { left: 256px; top: 35px; width: 296px; height: 321px; }
.rp-ach-tasks { left: 568px; top: 36px; width: 254px; height: 321px; }
.rp-collection-title { position: absolute; left: 12px; right: 12px; top: 10px; height: 16px; background: #d7d7d7; color: #736c6c; text-align: center; line-height: 16px; font-size: 9px; text-transform: uppercase; }
.rp-badge-grid { display: grid; grid-template-columns: repeat(3,59px); gap: 8px 10px; padding: 33px 9px 0; }
.rp-badge-grid img { width: 59px; height: 60px; object-fit: contain; }
.rp-collectible { display: block; width: 59px; height: 60px; }
.rp-collectible.is-locked img { filter: grayscale(1); opacity: .5; }
.rp-cat-grid { display: flex; gap: 4px; align-items: center; padding: 32px 12px; }
.rp-cat-grid img { width: 42px; height: 42px; object-fit: contain; }
.rp-cat-item { display: block; width: 42px; height: 42px; flex: 0 0 42px; }
.rp-cat-item:last-child { width: 80px; height: 80px; flex-basis: 80px; margin-top: -14px; }
.rp-cat-item:last-child img { width: 80px; height: 80px; }
.rp-ticket-list { display: grid; gap: 2px; padding: 14px 8px; }
.rp-ticket-list img { width: 232px; height: 77px; object-fit: contain; }
.rp-ticket { display: block; width: 232px; height: 77px; }
.rp-ticket.is-locked img { filter: grayscale(1); opacity: .45; }
.rp-ticket.is-active img, .rp-ticket.is-completed img { filter: none; opacity: 1; }
.rp-tooltip {
  position: fixed; z-index: 2147483600; display: none;
  max-width: 225px; padding: 7px 10px; border: 1px solid #9b7b70;
  border-radius: 7px; background: #332a28; color: #f7f0e9;
  font: 11px/1.4 Inter, Arial, sans-serif; box-shadow: 0 6px 18px #0005;
  pointer-events: none; text-align: left;
}
.res-personal [data-rp-tip]:focus-visible { outline: 2px solid #9d3131; outline-offset: 2px; }
.rp-sign-progress { left: 12px; top: 35px; width: 810px; height: 66px; }
.rp-sign-card { left: 12px; top: 118px; width: 539px; height: 236px; background: #181818; overflow: hidden; color: #c6c6c6; }
.rp-sign-tasks { left: 562px; top: 125px; width: 260px; height: 229px; }
.rp-progress-data { width: 180px; padding: 11px; }
.rp-progress-data strong { position: absolute; left: 134px; top: 9px; font-size: 12px; }
.rp-progress-track { width: 165px; height: 5px; margin-top: 10px; background: #bebebe; }
.rp-progress-track span { display: block; height: 5px; width: 68%; background: linear-gradient(to right,#474747 82%,#b9655d 82%); }
.rp-levels { position: absolute; left: 320px; right: 55px; top: 21px; display: flex; justify-content: space-between; }
.rp-level { width: 63px; display: grid; justify-items: center; text-align: center; color: #746b6b; font: 600 9px/1 Inter, Arial, sans-serif; text-transform: uppercase; }
.rp-level i { width: 18px; height: 18px; margin-bottom: 8px; border-radius: 50%; background: linear-gradient(#b3b3b3,#505050); border: 1px solid #999; }
.rp-level.is-current i { background: radial-gradient(circle at 34% 29%, #d1a2a2,#800000 70%); outline: 1px solid #8a2121; outline-offset: 3px; }
.rp-level.is-next i { background: #fff; border: 1px solid #5c5c5c; }
.rp-sign-card > .rp-box { border: 0; background: #171717; }
.rp-sign-card .rp-box > img { width: 539px; height: 236px; object-fit: cover; }
.rp-sign-card__text { position: absolute; inset: 13px auto auto 23px; width: 310px; color: #c1c1c1; text-transform: uppercase; }
.rp-sign-card__text h2 { margin: 0 0 6px; font: 600 27px/1 Inter, Arial, sans-serif; letter-spacing: -.27px; color: #b9b9b9; }
.rp-sign-card__text b { display: inline-block; border: 1px solid #555; padding: 6px 12px; font: 600 9px/1 Inter, Arial, sans-serif; }
.rp-sign-card__text p { width: 290px; margin: 16px 0 0; font: 600 9px/14px Inter, Arial, sans-serif; }
.rp-sign-card__status { position: absolute; left: 13px; bottom: 25px; font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.rp-task-list { list-style: none; padding: 26px 14px 0; margin: 0; }
.rp-task-list li { display: flex; align-items: flex-start; min-height: 30px; gap: 7px; font-size: 9px; line-height: 11px; }
.rp-task-list .rp-task__mark { width: 15px; height: 15px; flex: 0 0 15px; border: 1px solid #656565; }
.rp-task-list img.rp-task__mark { border: 0; object-fit: contain; }
.rp-task-list .is-done .rp-task__mark { background: #474747; }
.rp-task-list .is-progress .rp-task__mark { border-radius: 50%; background: #800; border: 0; }
.rp-task-list .is-done { color: #aaa; }
.rp-task-list .rp-task__text { flex: 1; }
.rp-task-list small { width: 47px; flex: 0 0 47px; text-align: right; text-transform: uppercase; font: 600 6px/13px Inter, Arial, sans-serif; color: #746b6b; }
.rp-task-list .is-progress small { color: #971414; }
.rp-editor[hidden] { display: none; }
.rp-editor {
  position: absolute; inset: 189px 0 0; z-index: 5; background: rgba(0,0,0,.46);
  display: grid; place-items: center;
}
.rp-editor__box { width: 420px; background: #ebebeb; padding: 18px; box-shadow: 0 6px 30px #0005; }
.rp-editor__box h2 { margin: 0 0 12px; font-size: 14px; }
.rp-editor__box label { display: block; margin: 8px 0; font-size: 11px; }
.rp-editor__box input, .rp-editor__box textarea { display: block; width: 100%; margin-top: 4px; padding: 6px; border: 1px solid #aaa; background: #fff; color: #191919; }
.rp-editor__box textarea { resize: vertical; min-height: 64px; }
.rp-editor__actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 12px; }
.rp-editor__actions button { border: 0; padding: 5px 12px; background: #4a4a4a; color: #fff; }
.rp-editor__actions button[type="submit"] { background: var(--rp-accent); }
@media (max-width: 849px) {
  .res-personal { overflow-x: auto; }
}
/* Рабочее окно 96241.js: центрируем макет 850 px в модальной оболочке. */
.res-ls-modal-shell:has(.res-personal) {
  width: min(900px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 30px) !important;
  overflow: auto;
  border-radius: 16px !important;
}
.res-ls-modal-shell:has(.res-personal) .res-ls-modal-content {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

/* Модальное окно личной страницы */
html.res-ls-modal-open,
html.res-ls-modal-open body {
  overflow: hidden !important;
}

.res-ls-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 15px !important;
  background: rgba(18, 18, 18, .66) !important;
  overflow: auto !important;
}

.res-ls-modal-shell {
  position: relative !important;
  flex: 0 0 auto !important;
  width: min(900px, calc(100vw - 30px)) !important;
  max-width: 900px !important;
  max-height: calc(100vh - 30px) !important;
  margin: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.42) !important;
  overflow: auto !important;
}

.res-ls-modal-content {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.res-ls-modal-content > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

.res-ls-modal-close {
  position: sticky !important;
  top: 8px !important;
  float: right !important;
  z-index: 2147483601 !important;
  width: 30px !important;
  height: 30px !important;
  margin: 8px 8px -38px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #7d5454 !important;
  color: #fff !important;
  font: 700 20px/30px Arial, sans-serif !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.32) !important;
}

.res-ls-modal-loading {
  min-height: 180px !important;
  display: grid !important;
  place-items: center !important;
  background: #ebebeb !important;
  color: #333 !important;
  font: 12px/1.4 Arial, sans-serif !important;
}

.res-ls-modal-shell.is-loaded .res-ls-modal-loading {
  display: none !important;
}

.res-ls-modal-shell:has(.res-personal) {
  width: min(900px, calc(100vw - 30px)) !important;
  max-height: calc(100vh - 30px) !important;
  overflow: auto !important;
  border-radius: 0 !important;
}

.res-ls-modal-shell:has(.res-personal) .res-ls-modal-content {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 900px) {
  .res-ls-modal-overlay {
    align-items: flex-start !important;
    padding: 8px !important;
  }
  .res-ls-modal-shell {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
}
