:root {
  --ls-dark: rgba(255, 255, 255, 0.52);
  --ls-light: rgba(255, 255, 255, 0.8);
  --ls-border: 1px solid rgba(255, 255, 255, 0.5);
  --ls-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --ls-radius: 18px;
  --panel: rgba(255, 255, 255, 0.42);
  --panel-soft: rgba(255, 255, 255, 0.3);
  --text: #333;
}

/* overlay */
#pre-wrap {
  position: fixed;
  inset: 0;
  z-index: 29999;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* shell */
.my-tabs {
  position: fixed;
  z-index: 30000;
  width: 700px;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: start;
  outline: var(--ls-border);
  background: #e9e9e9;
  box-shadow: var(--ls-shadow);
}

.my-tabs::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40px;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.my-tabs > span {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  z-index: 2;
  transition: 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.36);
}

.my-tabs > span:hover,
.my-tabs > .close:hover {
  background: rgba(255, 255, 255, 0.62);
}

.my-tabs > span.selected {
  background: rgba(255, 255, 255, 0.88);
  color: #333;
  font-weight: 700;
}

.my-tabs > .tab-a {
  position: absolute;
  left: 0;
  top: 0;
  width: 700px;
  height: 540px;
  display: none;
}

.my-tabs > .tab-a .post-content {
  display: block;
  width: 100%;
  height: 100%;
}

.my-tabs > .tab-a .post-content > p:first-child {
  display: none;
}

.my-tabs > .close {
  position: relative;
  height: 40px;
  padding: 0 10px;
  z-index: 4;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.my-tabs > .close::before {
  font-family: var(--icon-font);
  font-size: 22px;
  content: "\F62A";
}

.str1,
.str2,
.str3 {
  position: relative;
  width: 700px;
  height: 540px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 20px;
  background: #e9e9e9;
  color: var(--text);
  font-family: var(--regular-font);
  padding-top: 40px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #555;
  text-transform: uppercase;
}

/* common header styles */
.str1 .str-header {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 14px;
  padding: 14px 14px 10px;
}

.str1 .ls-main-photo {
  width: 178px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.str1 .ls-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}

.str1 .ls-head-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.str1 .ls-twinks {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.str1 .ls-twink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 82px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  color: #555;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.str1 .ls-twink img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(1);
}

.str1 .ls-twink span {
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.str1 .ls-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-left: 6px;
}

.str1 .name.profile_link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.str1 .ls-style-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 22px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(70, 70, 70, 0.85);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.str1 .ls-awards-info,
.str1 .ls-stars-info {
  font-size: 12px;
  color: #555;
}

.str1 .str1-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.str1 .checks-section,
.str1 .activity-section {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  border: var(--ls-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  padding: 12px;
    height: 100px;
    overflow: auto;
}

.str1 .checks-section .section-title,
.str1 .activity-section .section-title {
  margin: 0 0 10px;
}

.str1 .checks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.str1 .awards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  background: transparent;
  outline: none;
  padding: 0;
  height: auto;
}

.str1 .awards::before {
  display: none;
}

.str1 .awards > * {
  position: relative;
  width: 82px;
  height: 88px;
  padding-top: 60px;
  box-sizing: border-box;
  text-align: center;
  font-size: 11px;
  background-position: top center;
  background-repeat: no-repeat;
  color: #666;
}

.str1 .awards > * span {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: #fff;
}

.str1 .awards couple span { background: #ef9bb1; }
.str1 .awards ep span { background: #efc36a; }
.str1 .awards post span { background: #88aeea; }
.str1 .awards quote span { background: #b19cef; }
.str1 .awards flud span { background: #8bd0b7; }
.str1 .awards writer span { background: #d48ca1; }

.str1 .awards couple { background-image: url("https://forumstatic.ru/files/0019/9e/ef/29633.png"); }
.str1 .awards post { background-image: url("https://forumstatic.ru/files/0019/9e/ef/58289.png"); }
.str1 .awards ep { background-image: url("https://forumstatic.ru/files/0019/9e/ef/40796.png"); }
.str1 .awards flud { background-image: url("https://forumstatic.ru/files/0019/9e/ef/10501.png"); }
.str1 .awards quote { background-image: url("https://forumstatic.ru/files/0019/9e/ef/61805.png"); }
.str1 .awards writer { background-image: url("https://forumstatic.ru/files/0019/9e/ef/93434.png"); }

.str1 .awards couple::after { content: "лучшая пара"; }
.str1 .awards ep::after { content: "лучший эпизод"; }
.str1 .awards post::after { content: "лучший пост"; }
.str1 .awards quote::after { content: "лучшая цитата"; }
.str1 .awards flud::after { content: "активист"; }
.str1 .awards writer::after { content: "постописец"; }

/* checks - keep old names, just make them fit the new layout */
:is(
  .chek_nuzhnyy, .chek_vneshnost, .chek_ikonka_plashka, .chek_full_prof,
  .chek_plashki_gr, .chek_plashki, .chek_podarok_3, .chek_podarok_5,
  .chek_ikonki, .chek_fons, .chek_bank_vse, .chek_bank_posty,
  .chek_bank_reklama, .chek_udaleniye, .chek_parnyy, .chek_bez_ankety,
  .chek_twink, .chek_plashki_gr_tr, .chek_bank_posty_utroyeniye,
  .chek_table_cell, .chek_chicago_news
) {
  --chek-card-w: 176px;
  --chek-card-h: 66px;
  --chek-icon-size: 50px;
  --chek-icon-left: 8px;
  --chek-icon-radius: 10px;
  --chek-text-left: 70px;
  --chek-text-top: 10px;
  --chek-text-right: 8px;
  --chek-text-size: 10px;
  --chek-text-line: 1.08;
  --chek-value-left: 70px;
  --chek-value-bottom: 9px;
  --chek-value-h: 14px;
  --chek-value-size: 8px;
  --chek-badge-size: 19px;
  --chek-badge-top: 3px;
  --chek-badge-left: 3px;

  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  vertical-align: top;
  width: var(--chek-card-w);
  height: var(--chek-card-h);
  min-height: var(--chek-card-h);
  margin: 0;
  padding: 0 8px var(--chek-value-bottom) var(--chek-value-left);
  border-radius: 14px;
  outline: 1px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.34) !important;
  background-image: none !important;
  overflow: visible;
  font-family: var(--regular-font);
  font-size: 0;
  line-height: 0;
  color: transparent;
  white-space: nowrap;
}

:is(
  .chek_nuzhnyy, .chek_vneshnost, .chek_ikonka_plashka, .chek_full_prof,
  .chek_plashki_gr, .chek_plashki, .chek_podarok_3, .chek_podarok_5,
  .chek_ikonki, .chek_fons, .chek_bank_vse, .chek_bank_posty,
  .chek_bank_reklama, .chek_udaleniye, .chek_parnyy, .chek_bez_ankety,
  .chek_twink, .chek_plashki_gr_tr, .chek_bank_posty_utroyeniye,
  .chek_table_cell, .chek_chicago_news
)::before {
  content: var(--chek-icon, "");
  position: absolute;
  left: var(--chek-icon-left);
  top: 50%;
  transform: translateY(-50%);
  width: var(--chek-icon-size);
  height: var(--chek-icon-size);
  border-radius: var(--chek-icon-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chek-icon-bg, rgba(255, 255, 255, 0.78));
  color: var(--chek-icon-color, #9fcfe8);
  font-family: var(--icon-font);
  font-size: 32px;
  line-height: 1;
  pointer-events: none;
}

:is(
  .chek_nuzhnyy, .chek_vneshnost, .chek_ikonka_plashka, .chek_full_prof,
  .chek_plashki_gr, .chek_plashki, .chek_podarok_3, .chek_podarok_5,
  .chek_ikonki, .chek_fons, .chek_bank_vse, .chek_bank_posty,
  .chek_bank_reklama, .chek_udaleniye, .chek_parnyy, .chek_bez_ankety,
  .chek_twink, .chek_plashki_gr_tr, .chek_bank_posty_utroyeniye,
  .chek_table_cell, .chek_chicago_news
)::after {
  content: var(--chek-title, "") "\A" var(--chek-sub, "");
  position: absolute;
  left: var(--chek-text-left);
  right: var(--chek-text-right);
  top: var(--chek-text-top);
  display: block;
  white-space: pre-line;
  font-size: var(--chek-text-size);
  line-height: var(--chek-text-line);
  color: #111;
}

:is(
  .chek_plashki_gr, .chek_plashki, .chek_podarok_3, .chek_podarok_5,
  .chek_ikonki, .chek_fons, .chek_udaleniye, .chek_bez_ankety,
  .chek_twink, .chek_plashki_gr_tr, .chek_bank_posty, .chek_bank_posty_utroyeniye
) > n {
  position: absolute;
  left: var(--chek-badge-left);
  top: var(--chek-badge-top);
  width: var(--chek-badge-size);
  height: var(--chek-badge-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #444;
  font-size: 10px;
  font-weight: 700;
  z-index: 6;
}

.chek_nuzhnyy p,
.chek_vneshnost p,
.chek_ikonka_plashka numb_i,
.chek_ikonka_plashka numb_p,
.chek_full_prof numb_i,
.chek_full_prof numb_f,
.chek_full_prof numb_p,
:is(
  .chek_bank_vse, .chek_bank_posty, .chek_bank_reklama, .chek_bank_posty_utroyeniye
) start,
:is(
  .chek_bank_vse, .chek_bank_posty, .chek_bank_reklama, .chek_bank_posty_utroyeniye
) end {
  font-size: 8.5px !important;
}

/* collections page */
.str2 {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 12px;
}

.str2 p:first-child,
.str3 p:first-child {
  display: none;
}

.str2-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0 4px;
}

.str2-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  min-height: 0;
}

.str2-left,
.str2-right {
  min-height: 0;
}

.str2 .col_all_wrp,
.str2 .col_time_wrp {
  height: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
  border: var(--ls-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
  padding: 12px;
}

.str2 .col_all,
.str2 .col_time {
  height: 100%;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.str2 .pcollection {
  width: 100%;
  min-height: 84px;
  padding: 18px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
  border: var(--ls-border);
  box-sizing: border-box;
  position: relative;
  text-align: center;
}

.str2 .pcollection collnm,
.str2 .collection collnm {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: lowercase;
  color: #666;
}

.str2 .pcollection > *:not(collnm) {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin: 4px;
  align-items: center;
  justify-content: center;
}

.str2 .pcollection img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.str2 .collection {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
  border: var(--ls-border);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.str2 .collection > img,
.str2 .collection > n,
.str2 .collection > n > img {
  width: 100%;
  height: 62px;
  object-fit: contain;
  display: block;
}

.str2 .all_count {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 4px;
}

.str2 .all_count > div {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  border: var(--ls-border);
  text-align: center;
}

.str2 .counter_label {
  display: block;
  font-size: 11px;
  color: #666;
}

.str2 .counter_value {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #444;
}

/* style page */
.str3 {
  padding: 12px;
}

.str3-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.72fr 1.1fr;
  gap: 12px;
  height: calc(100% - 44px);
  min-height: 0;
}

.str3 .plash_wrp,
.str3 .ikon_wrp,
.str3 .fons_wrp {
  min-height: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
  border: var(--ls-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  padding: 12px;
  box-sizing: border-box;
}

.str3 .plash,
.str3 .ikon,
.str3 .fons {
  height: 100%;
  overflow: auto;
}

.str3 .plash {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.str3 .plashka {
  min-height: 54px;
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.15;
  cursor: copy;
  background: var(--bg);
}

.str3 .plashka pltwo {
  display: block;
  font-size: 10px;
  opacity: 0.9;
  margin-top: 3px;
}

.str3 .ikon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  justify-content: center;
}

.str3 .ikon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  cursor: copy;
}

.str3 .fons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.str3 .fons img {
  width: 100%;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  cursor: copy;
}

.str3 .all_count {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.str3 .all_count > div {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  border: var(--ls-border);
  text-align: center;
}

/* mobile */
@media screen and (max-width: 540px) {
  .my-tabs {
    width: 100%;
    height: 100%;
    border-radius: 0;
    grid-template-columns: repeat(3, 1fr) auto;
  }

  .my-tabs > .tab-a {
    inset: 40px 0 0 0;
    width: 100%;
    height: calc(100% - 40px);
  }

  .str1,
  .str2,
  .str3 {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: auto;
  }

  .str1 {
    padding-top: 40px;
  }

  .str1 .str-header {
    grid-template-columns: 1fr;
  }

  .str1 .ls-main-photo {
    width: 100%;
    height: 220px;
  }

  .str2-body,
  .str3-grid {
    grid-template-columns: 1fr;
  }

  .str2 .all_count,
  .str3 .all_count {
    grid-template-columns: 1fr;
  }

  .str3-grid {
    height: auto;
  }
}

.ls-copy-hint {
  display: block;
  color: rgba(0, 0, 0, 0.45);
  font-size: 9px;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
  margin: -2px 0 8px;
  pointer-events: none;
}

#ls-copy-notice {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 50000;
  max-width: calc(100vw - 40px);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(40, 40, 40, 0.9);
  color: #fff;
  font: 11px/1.2 var(--regular-font);
  text-align: center;
  box-sizing: border-box;
  display: none;
  pointer-events: none;
}