/* Freenet: old-web look. Fixed 791px page, Tahoma 12px, no frameworks.
   Its colours are the variables of palette.css. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--back-fff);
  color: var(--text-000);
  font: 11px tahoma, verdana, arial, sans-serif;
}

a { color: var(--text-2b587a); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }

h1, h2, h3, p, ul { margin: 0; }
h1.page-title { font-size: inherit; }

.layout { width: 791px; margin: 0 auto; }

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 42px;
  padding-left: 12px;
  /* openvk's header_old.png: light at the bottom, a darker line under it. */
  background: linear-gradient(var(--back-3b3b3b), var(--back-707070));
  border: 1px solid var(--line-333);
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.logo { display: flex; align-items: center; color: var(--text-fff); }
.logo:hover { text-decoration: none; }

/* The name of the site is written as openvk's logo: bold Tahoma, white
   with a dark line under the letters, and "free" on a light plate, as
   the "O" of openvk. */
.logo-word { font: bold 21px/26px tahoma, verdana, arial, sans-serif; letter-spacing: -1px; text-shadow: 0 1px 0 var(--back-0d0d0d); }
.logo-free {
  display: inline-block;
  margin-right: 1px;
  padding: 0 3px 0 2px;
  background: linear-gradient(var(--back-fdfdfd), var(--back-e3e1e3));
  border-radius: 3px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 35%);
  color: var(--text-3a3a3a);
  text-shadow: none;
}

.header-links { display: flex; }

/* The header search stays beside the logo while it has focus. */
.header-search-box { display: flex; align-items: center; gap: 6px; margin: 0 auto 0 14px; }
.header-search-box input[type="search"] {
  box-sizing: border-box;
  width: 140px;
  height: 22px;
  padding: 0 6px 0 22px;
  background: var(--back-fff) url("/static/c/4f8c67de4d13/icons/search-field.png") no-repeat 6px 4px;
  border: 1px solid var(--line-2f2f2f);
  outline: none;
  color: var(--text-222);
  font: 11px tahoma, verdana, arial, sans-serif;
}
.header-search-box input[type="search"]::placeholder { color: var(--text-6b6b6b); opacity: 1; }
.header-search-box input[type="search"]::-webkit-search-cancel-button { display: none; }

/* openvk's search_box_button on the search results page. */
.search-box-button {
  flex: none;
  width: 80px;
  height: 22px;
  padding: 0;
  background: linear-gradient(var(--back-8f8f8f), var(--back-757575));
  border: 1px solid var(--line-616161);
  border-top-color: var(--line-575757);
  border-bottom-color: var(--line-454545);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 1px 0 rgb(0 0 0 / 10%);
  color: var(--text-fff);
  text-shadow: 0 1px 0 var(--text-696969);
  font: bold 11px tahoma, verdana, arial, sans-serif;
  outline: none;
  cursor: pointer;
}
.search-box-button:hover { background: linear-gradient(var(--back-969696), var(--back-7a7a7a)); }
.search-box-button:active { background: linear-gradient(var(--back-a8a8a8), var(--back-868686)); box-shadow: inset 0 1px 2px rgb(0 0 0 / 35%); }

.header .header-links { order: 2; }

/* openvk's header_navigation: grey bold words, a groove between them
   (divider.png), white and underlined under the mouse. */
.header-links a {
  display: flex;
  align-items: center;
  padding: 0 8px 0 9px;
  color: var(--text-d7d7d7);
  font-weight: bold;
  text-transform: lowercase;
  border-left: 1px solid var(--line-2f2f2f);
  box-shadow: inset 1px 0 var(--line-6f6f6f);
}
.header-links a:hover { color: var(--text-fff); text-decoration: underline; }

/* The New Year decoration (newyear.js): a garland under the header, a
   hat on the "f" of the logo, a fir tree with a greeting under the menu
   and a few flakes of snow, the colour of which is the canvas's. */

.festive .header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 6px;
  right: 6px;
  height: 18px;
  background: url("/static/c/1a9d3d67371b/newyear/garland.svg") repeat-x;
  pointer-events: none;
  z-index: 2;
}
.festive .columns { margin-top: 18px; }
.festive .logo { position: relative; }
.festive .logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -7px;
  width: 25px;
  height: 20px;
  background: url("/static/c/7d8f6f492176/newyear/hat.svg") center / contain no-repeat;
  transform: rotate(-18deg);
  pointer-events: none;
}

/* The page stands as a white column on a pale winter sky with flakes,
   as the holiday skins of the late 2000s did. */
.festive body { background: var(--back-f2f5f8) url("/static/c/0cc30967bcf1/newyear/flakes.svg"); }
.festive .layout { position: relative; min-height: var(--view-height, 100vh); }
.festive .layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  right: -10px;
  background: var(--back-fff);
  box-shadow: 0 0 12px rgba(80, 110, 140, 0.18);
  z-index: -1;
}

/* A snowflake before the title of the page. */
.festive .page-title {
  padding-left: 26px;
  background: var(--back-eee5b8) url("/static/c/c4f65e57ce61/newyear/snowflake.svg") no-repeat 8px 50%;
}

/* The bar over a block gets a candy-cane edge and, where nothing stands
   at its right, a sprig of holly. */
.festive .section-title::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(-45deg, var(--back-d23a32) 0 4px, var(--back-fff) 4px 8px);
}
.festive .section-title:not(:has(.title-link))::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 6px;
  width: 22px;
  height: 14px;
  background: url("/static/c/b6a38991999e/newyear/holly.svg") no-repeat;
}

/* A thin white line of snow on the photos of the authors. */
.festive .post > .post-avatar { position: relative; }
.festive .post > .post-avatar::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: url("/static/c/b962d48e03bb/newyear/snow-line.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
/* A bauble hangs at the right of the bar over a post. */
.festive .post-author { position: relative; }
.festive body:not(.posts-microblog) .post > .post-main > .post-author::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 10px;
  width: 12px;
  height: 20px;
  background: url("/static/c/8499c208f621/newyear/bauble.svg") no-repeat;
  pointer-events: none;
}
/* Buttons for destructive actions. */
.festive .button {
  border: 1px solid var(--line-9aa3ae);
  background: linear-gradient(var(--back-d23a32), var(--back-a01e28));
  color: var(--text-f4f4f4);
  text-shadow: 0 1px 1px var(--back-7a0f1d);
}
.festive .button:hover { color: var(--text-fff); }
.festive .button:active { background: var(--back-a01e28); }

/* The unread counter is a red bauble. */
.festive .menu .counter { background: var(--back-d23a32); border-radius: 8px; color: var(--text-fff); }

/* Snowdrifts at the bottom of the column. */
.festive .layout { padding-bottom: 26px; }
.festive .layout::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 0;
  height: 26px;
  background: url("/static/c/a3745cdc0c7b/newyear/drift.svg") repeat-x 0 100%;
  pointer-events: none;
}

.newyear { margin-top: 16px; text-align: center; }
.newyear-tree { display: block; width: 64px; height: 80px; margin: 0 auto 4px; }
.newyear-greeting { color: var(--text-c33); font-weight: bold; }
.newyear-snow { display: inline-block; margin-top: 3px; color: var(--text-626262); }
/* The countdown: a red plate in a dark frame, its white digits on black,
   as the timers of the 2000s. */
.newyear-count { position: relative; margin: 6px 0 4px; padding: 3px 3px 4px; overflow: hidden; background: linear-gradient(var(--back-d23a32), var(--back-a01e28) 55%, var(--back-7a0f1d)); border: 1px solid var(--line-333); border-radius: 3px; box-shadow: 2px 2px 0 var(--back-d4d4d4); color: var(--text-fff); text-shadow: 0 1px 0 var(--back-7a0f1d); }
.newyear-count-title { font-weight: bold; font-size: 11px; text-transform: uppercase; }
.newyear-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.newyear-cell { padding: 1px 0; background: var(--back-0d0d0d); border: 1px solid var(--back-7a0f1d); border-radius: 2px; font-size: 10px; line-height: 1.1; }
.newyear-cell span { display: block; color: var(--text-aaa); text-shadow: none; }
.newyear-digit { display: block; color: var(--text-fff); font: bold 14px/18px "Courier New", monospace; font-variant-numeric: tabular-nums; }
.newyear-came { padding: 6px 3px; font-weight: bold; font-size: 13px; }

.snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--text-b4c6da);
  pointer-events: none;
  z-index: 30;
}

/* Columns */

/* The yellow title of the page lies right under the header, as openvk's
   .page_body (margin-top: -1px); the menu stands 4px lower, as its
   .sidebar. */
.columns { display: flex; gap: 8px; }
/* Until the page is drawn whole (theme.js, layout.js). */
.pending .columns,
.pending .footer { visibility: hidden; }
/* Until the page is drawn nothing of it is painted, and the browser keeps
   the page before on the screen: the header does not blink, and a page
   comes in place of a page. A slow one shows its header after a moment. */
.pending:not(.slow) body { visibility: hidden; }

.sidebar { width: 140px; flex-shrink: 0; margin-top: 4px; }
/* The header and the left menu stay in sight while the page scrolls (the
   menu, where the screen is tall enough for all of it). */
html { scroll-padding-top: 52px; }
@media (min-height: 560px) {
  .sidebar { position: sticky; top: 48px; align-self: flex-start; }
}

.page { width: 643px; margin-top: -1px; }

.page-title {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  background: var(--back-eee5b8);
  border: 1px solid var(--line-d7cf9e);
  font-weight: bold;
}

.page-title .aside { color: var(--text-9c9670); font-weight: normal; }
.page-title .aside a { color: inherit; cursor: pointer; }

.page-body {
  padding: 10px;
  border: 1px solid var(--line-e0e0e0);
  border-top: 0;
}

/* Sidebar */

/* As openvk's .navigation: black links with a line over the one pointed
   at, "ред." at the right of the first. */
.menu { position: relative; }
.menu a {
  display: block;
  margin-bottom: 1px;
  padding: 3px 3px 3px 6px;
  border-top: 1px solid var(--line-fff);
  color: var(--text-000);
}
.menu a:hover { background: var(--back-e4e4e4); border-top-color: var(--line-ccc); text-decoration: none; }
.menu .menu-edit, .menu .menu-edit:hover { position: absolute; top: 0; right: 0; background: var(--back-fff); border-top-color: var(--line-fff); color: var(--text-626262); }
.menu .menu-phone { display: none; }
/* The unread counter next to "Мои Ответы", as on openvk. */
.menu .counter {
  float: right;
  margin-top: -1px;
  padding: 1px 7px;
  background: var(--back-e6e6e6);
  border-radius: 2px;
  color: var(--text-2b587a);
  font-weight: bold;
}

.sidebar-form label { display: block; margin: 6px 0 2px; }
.captcha { margin-top: 6px; }
.captcha img { display: block; max-width: 100%; border: 1px solid var(--line-7d8792); }
.sidebar-form .button { width: 100%; margin-top: 6px; }
.sidebar-form .hint { margin-top: 6px; }

/* Blocks */

/* openvk's .content_title_expanded: the grey bar over a block, with its
   arrow pointing down and aside. A count under it (.subtitle) touches it. */
.section-title {
  position: relative;
  margin: 12px -10px 8px;
  padding: 3px 8px 3px 24px;
  background: var(--back-e6e6e6) url("/static/c/aa59ceb00500/icons/block-arrow.svg") no-repeat 0 0;
  border-top: 1px solid var(--line-8b8b8b);
  color: var(--text-626262);
  font-weight: bold;
  line-height: 13px;
}
.section-title:first-child { margin-top: -10px; }
.section-title:has(+ .subtitle) { margin-bottom: 0; }
/* The blocks of the profile under its name stand off it, as "Стена" does. */
#profile-content > div > .section-title:first-child { margin-top: 12px; }

.notice {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--back-f7f1d6);
  border: 1px solid var(--line-ddd09a);
}

/* Who invites, over the main page (login.js), and the link of
   "Пригласить" (invite-page.js). */
.invited { display: flex; align-items: center; gap: 8px; }
.invited-photo { width: 30px; height: 30px; object-fit: cover; }
.invite-link { display: flex; justify-content: center; gap: 6px; margin: 12px 0; }
.invite-link input { flex: 0 1 360px; min-width: 0; }
/* What is copied by selecting it, out of sight. */
.copy-field { position: fixed; top: 0; left: -9999px; opacity: 0; }

/* The offer of pushes over the page of a phone (layout.js offerPush). */
.push-offer p { margin: 0 0 8px; }
.push-offer-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.error {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--back-ffefe8);
  border: 1px solid var(--line-e89b88);
}

.hint { color: var(--text-626262); }

.bullets { padding: 0; margin: 8px 0; }
.bullets li { position: relative; list-style: none; padding: 2px 0 2px 12px; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 4px;
  height: 4px;
  background: var(--back-3e3e3e);
}

.center { text-align: center; }

/* Controls */

/* openvk's button (main.css with the default theme's
   revisions/modern_controls.css): dark gray under the light top of
   button.png, white text with a shadow, only the text lightens under the
   pointer and the box darkens, flat, when pressed. openvk has no light
   buttons: "Отмена" is the same, so "secondary" is. */
.button {
  padding: 5px 9px;
  background: url("/static/c/a7db0140063a/im/button.png") var(--back-595959);
  border: 1px solid var(--line-595959);
  border-radius: 2px;
  outline: none;
  color: var(--text-fff);
  text-shadow: 0 1px 0 var(--text-686868);
  font: 11px tahoma, verdana, arial, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: var(--text-e8e8e8); text-decoration: none; }
.button:active { background: var(--back-444); }
.button:disabled,
.button[disabled] { filter: opacity(0.5); cursor: not-allowed; }
.button:disabled:hover { color: var(--text-fff); }
input.button { padding: 5px 7px 4px; }

input[type="text"],
input[type="email"],
input:not([type]),
select {
  width: 100%;
  padding: 3px 4px;
  background: var(--back-fff);
  border: 1px solid var(--line-bbb);
  font: 11px tahoma, verdana, arial, sans-serif;
}
/* Every other field to type in looks the same, openvk's: a thin blue-grey
   frame, square, in Tahoma — not the rounded one of the browser. */
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea {
  padding: 3px 4px;
  background: var(--back-fff);
  border: 1px solid var(--line-bbb);
  border-radius: 0;
  box-shadow: none;
  font: 11px tahoma, verdana, arial, sans-serif;
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--line-8b8b8b); }

/* Sized by the columns, so every section lines up the same way. */
.form { border-collapse: collapse; }
.form th {
  width: 160px;
  padding: 4px 10px 4px 0;
  color: var(--text-555);
  font-weight: normal;
  text-align: right;
  vertical-align: top;
  line-height: 18px;
}
.form td { padding: 3px 0; }
.form td.control { width: 260px; }
.form td.note { padding-left: 10px; }
/* A date and a time side by side, as openvk's "Начало" of an event. */
.form input.half { width: 49%; box-sizing: border-box; }
.form textarea {
  width: 100%;
  padding: 3px 4px;
  border: 1px solid var(--line-bbb);
  font: 11px tahoma, verdana, arial, sans-serif;
  resize: vertical;
}
.form textarea:focus { outline: 1px solid var(--line-8b8b8b); }
.required::after { content: " *"; color: var(--text-c33); }

.date { display: flex; gap: 4px; }
.date select:first-child { width: 60px; }
.date select:nth-child(2) { width: 110px; }
.date select:last-child { width: 64px; }

.checks label { display: block; padding: 2px 0; }
.checks input { vertical-align: middle; margin: 0 4px 0 0; }

.actions { display: flex; gap: 6px; margin-top: 12px; padding-left: 170px; }
.key-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

/* openvk's pages of settings and of "Редактировать страницу": a gray box
   under the tabs, blue heads, forms of a table in the middle with gray
   labels, and the buttons under the fields. */
.container-gray { margin: -10px; padding: 12px; background: var(--back-f6f6f6); }
.container-gray h4 {
  margin: 14px 0 4px;
  border-bottom: 1px solid var(--line-e8ebee);
  color: var(--text-45688e);
  font: bold 12px verdana, arial, sans-serif;
}
.container-gray > form > h4:first-child,
.container-gray > div > h4:first-child,
.container-gray > h4:first-child { margin-top: 0; }
.container-gray .form { width: 60%; margin: 0 auto; border-collapse: separate; border-spacing: 7px; table-layout: fixed; }
.container-gray .form th { width: 120px; padding: 0; color: var(--text-626262); text-align: left; line-height: normal; }
.container-gray .form td { padding: 0; }
.container-gray .form td.control { width: auto; }
.container-gray .form .check-cell { text-align: right; }
.container-gray .form .check-cell input { margin: 0; }
.container-gray .actions { box-sizing: border-box; width: 60%; margin: 0 auto 4px; padding-left: 134px; }
/* openvk's bold titles over the tables of "Приватность". */
.container-gray .subhead { display: block; box-sizing: border-box; width: 60%; margin: 8px auto 0; padding: 0 7px; }
/* Words and buttons in the middle, as openvk's sessions. */
.settings-block { width: 60%; margin: 7px auto; }
.settings-block .key-actions { justify-content: center; }
.accent-box { margin: 5px; padding: 10px; background: var(--back-fff); border: 1px solid var(--line-bbb); }
.accent-box p { margin: 0 0 6px; }
.accent-box p:last-child { margin-bottom: 0; }
/* "Изменения сохранены" over the page, not above the tabs as after
   openvk's reload: the form saved stays under the reader. */
.settings-notice { position: fixed; top: 52px; left: 50%; z-index: 40; width: 300px; margin-left: -150px; }
/* What is under the settings: white, in the middle, to the end of the box. */
.container-gray .settings-delete { margin: 12px -12px -12px; padding: 12px; background: var(--back-fff); text-align: center; }
/* openvk's additional fields: a table each, under a line. */
.container-gray .extra-field { width: 80%; margin: 0 auto 10px; }
.container-gray .extra-field th { text-align: right; }
.container-gray .extra-field td:not(.control) { width: 20px; }
.column-actions { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 8px; }

/* Profile */

/* openvk's columns: the narrow one with a line at its right, the wide one
   whose titles cover it exactly and whose words stand 8px in. */
/* As openvk's, the narrow column floats and the wide one flows round
   it: each block of the wide column is a box of its own beside the left
   column and, once the left column is over, as wide as the page, so the
   wall widens under it. */
.profile { display: flow-root; }
.profile-left { float: left; width: 200px; margin-right: 10px; border-right: 1px solid var(--line-eee); }
.profile-right { min-width: 0; margin-left: 211px; }
/* openvk's "overscrolled": the narrow column out of sight leaves the wall
   the whole width of the page (widenPastColumn in layout.js). */
.overscrolled > .profile-left, .overscrolled > .club-side { position: absolute; visibility: hidden; }
.overscrolled > .profile-right { margin-left: 0; }
.profile-right > :is(.user-alert, .account-info, .notice),
#profile-content > :is(.basic-info-box, #about-block, .page-audio, #gifts-block, .sugglist, .section-title, .wall-form, .error, .hint, .wall-more) { display: flow-root; }
.profile-right .basic-info-box .basic-info { width: calc(100% - 8px); }
.profile-right .section-title { margin-left: 0; margin-right: 0; }
.profile-right .info th { width: 120px; }
/* The name and the status over a line, as openvk's .accountInfo. */
.account-info { margin-left: 8px; border-bottom: 1px solid var(--line-dae1e8); }
.account-info .status { margin: 0; padding: 3px 1px; }
/* openvk's .user-alert: the orange plaque the administrators put above
   the name, with the words they wrote. */
.user-alert {
  margin: 0 0 8px 8px;
  padding: 4px;
  border: 1px solid var(--line-c3a476);
  background: var(--back-f3ddbd);
  color: var(--text-58462a);
  font-weight: 900;
  white-space: pre-line;
}

.avatar {
  display: block;
  width: 200px;
  height: 200px;
  border: 1px solid var(--line-e0e0e0);
}

.name { color: var(--text-45688e); font-size: 13px; font-weight: bold; }
.status { margin: 3px 0 10px; }
.status.empty { color: var(--text-626262); }
/* openvk's deleted page: what is left instead of the information. */
.deleted-info { margin: 40px 0; color: var(--text-aaa); font-size: 13px; text-align: center; }
.banned-info { margin: 20px 10px; line-height: 1.6; }
.banned-body { padding: 10px 12px; }
.banned-body p { margin: 0 0 8px; }

.info { width: 100%; border-collapse: collapse; }
.info th {
  width: 150px;
  padding: 2px 0;
  color: var(--text-626262);
  font-weight: normal;
  text-align: left;
  vertical-align: top;
}
.info td { padding: 2px 0; }
/* Text people write, as a club's description: their line breaks stay. */
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.private-mark { color: var(--text-626262); }

/* Footer */

.footer {
  margin-top: 12px;
  padding: 10px 0 20px;
  color: var(--text-626262);
  text-align: center;
}
.footer a { margin: 0 6px; }
.footer p { margin-top: 6px; }
.footer .footer-language { display: inline-block; margin: 0 1px; padding: 3px 4px; border-top: 1px solid var(--line-fff); line-height: 0; }
.footer .footer-language:hover { background: var(--back-e4e4e4); border-top-color: var(--line-ccc); }

/* openvk's "Выбрать язык": languages in five columns, the flag over the name. */
.languages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 4px; }
.languages .language {
  padding: 20px 10px 5px;
  border-top: 1px solid var(--line-fff);
  color: var(--text-000);
  text-align: center;
  text-decoration: none;
}
.languages .language:hover { background: var(--back-e4e4e4); border-top-color: var(--line-ccc); }

/* Wall */

.section-title .count { margin-left: 4px; color: var(--text-626262); font-weight: normal; }

/* openvk's #write: a low field that opens at a click, and only then the
   options and, last, the button at the left and "Прикрепить" at the
   right (layout.js opens it; once open, it stays so until it is sent).
   Comments are written in the same form. */
.wall-form { display: flex; flex-direction: column; margin-bottom: 12px; padding: 5px 0; }
.wall-form > .row { order: 1; }
.wall-form:not(.expanded) > .row,
.wall-form:not(.expanded) > .post-options { display: none; }
.wall-form textarea,
.modal-body textarea {
  display: block;
  width: 100%;
  height: 30px;
  padding: 4px;
  resize: vertical;
  border: 1px solid var(--line-bbb);
  font: 11px tahoma, verdana, arial, sans-serif;
}
.wall-form textarea { height: 24px; min-height: 24px; resize: none; }
.wall-form textarea:focus, .modal-body textarea:focus { outline: 1px solid var(--line-8b8b8b); }
.wall-form.expanded textarea { height: 52px; min-height: 52px; }
.wall-form .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
/* On a wall the form lies in a grey box, openvk's .content_subtitle under
   the title "Стена" (over the feed — .postFeedWrapper): edge to edge of
   its column and touching the title. Comments and edits have none. */
.wall-form:not(.comment-form, .post-edit) {
  margin: 0 -10px 12px;
  padding: 5px 8px;
  background: var(--back-f0f0f0);
  border-top: 1px solid var(--line-ccc);
  border-bottom: 1px solid var(--line-eee);
}
.profile-right .wall-form:not(.comment-form, .post-edit),
.club-main .wall-form:not(.comment-form, .post-edit) { margin-left: 0; margin-right: 0; }
.section-title:has(+ .wall-form:not([hidden], .comment-form)) { margin-bottom: 0; }

.post { display: flex; gap: 8px; margin-bottom: 10px; }
.post-avatar img { display: block; width: 50px; height: 50px; }
/* "Онлайн" under the photo of the author, as on openvk. */
.post-online { display: block; width: 50px; padding-top: 5px; color: var(--text-aaa); text-align: center; }
.post-online:hover { text-decoration: none; }
.post-main { flex: 1; min-width: 0; }

.post-author {
  padding: 3px 5px;
  background: var(--back-f6f6f6);
  border-top: 1px solid var(--line-8b8b8b);
  border-bottom: 1px solid var(--line-ececec);
  line-height: 125%;
}
.post-name { font-weight: bold; }
/* "на стене Петра Петрова" in the news feed, bold as on openvk. */
.post-wall { font-weight: bold; }
.post-date { color: var(--text-626262); font-size: 9px; }

.post-text {
  padding: 4px;
  border-bottom: 1px solid var(--line-ececec);
  line-height: 130%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-date a { color: var(--text-626262); }
/* The date under the name is black, as on openvk. */
.post-author .post-date, .post-author .post-date a { color: var(--text-000); }

/* Editing in place, as on openvk: the form takes the place of the text
   and photos (postedit.js). */
.post.editing .post-content { display: none; }
.post-edit { margin: 6px 0 4px; }
.post-edit-buttons { display: flex; gap: 4px; }

/* As on openvk: links on the left, the heart with its count on the right. */
.post-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 4px;
  font-size: 9px;
}
/* Blue links of the old post, gray ones of "Микроблог", as on openvk. */
.posts-microblog .post-menu a { color: var(--text-626262); }
.separator { margin: 0 5px; color: var(--text-ccc); }

.like { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2b587a); }
.like svg { width: 11px; height: 10px; fill: var(--text-2b587a); opacity: .4; }
a.like { cursor: pointer; }
a.like:hover { text-decoration: none; }
a.like:hover svg { opacity: .7; }
.like.liked svg { fill: var(--text-d94c4c); opacity: 1; }
.like-count { color: var(--text-000); font-size: 9px; }

/* The bar under a post, as on a phone, smaller: the heart, the comments
   and "Поделиться" are pills with their numbers, "⋯" on the right opens
   the actions. */
.post-bar { justify-content: flex-start; gap: 5px; margin-top: 6px; padding: 2px 0; }
.post-bar .like {
  gap: 5px;
  min-width: 34px;
  height: 24px;
  box-sizing: border-box;
  padding: 0 10px;
  background: var(--back-f2f5f8);
  border-radius: 12px;
}
.post-bar a.like:hover { background: var(--back-e9edf1); }
.post-bar .like svg { width: 15px; height: 14px; opacity: .45; }
.post-bar .like.liked svg { opacity: 1; }
.post-bar .like-count { color: var(--text-555); font-size: 11px; }
.post-bar .like-count:empty { display: none; }
.post-bar .post-more { margin-left: auto; justify-content: center; min-width: 0; background: none; }
.post-bar .post-more svg { opacity: .6; }
.post-bar .post-more.drop-anchor { background: var(--back-f2f5f8); }

/* The list of "⋯": the actions of a post under it. */
.drop-menu {
  position: absolute;
  z-index: 120;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 4px 0;
  background: var(--back-fff);
  border: 1px solid var(--line-bbb);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.drop-item {
  padding: 6px 14px;
  border: 0;
  background: none;
  color: var(--text-2b587a);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.drop-item:hover { background: var(--back-f2f5f8); }
.drop-item.danger { color: var(--text-c33); }

/* What an action says, for a moment, at the bottom of the screen. */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 130;
  padding: 8px 16px;
  background: var(--back-3e3e3e);
  border-radius: 4px;
  color: var(--text-fff);
  pointer-events: none;
  transform: translateX(-50%);
}

/* Comments: a post with a small avatar. */
.comment .post-avatar img { width: 30px; height: 30px; }
.comment .post-author { padding: 2px 5px; }
.comment-hint { margin-top: 10px; }

.post-deleted {
  margin-bottom: 10px;
  padding: 8px;
  background: var(--back-f6f6f6);
  color: var(--text-626262);
}

.wall-more {
  display: block;
  padding: 5px;
  background: var(--back-f0f0f0);
  border-top: 1px solid var(--line-ccc);
  color: var(--text-626262);
  text-align: center;
}
.wall-more:hover { background: var(--back-e9e9e9); text-decoration: none; }

/* Follows */

.side-block { margin-top: 12px; }
.side-block .section-title { margin: 0; }

.subtitle {
  display: flex;
  justify-content: space-between;
  padding: 3px 8px;
  background: var(--back-f0f0f0);
  border-top: 1px solid var(--line-ccc);
  border-bottom: 1px solid var(--line-eee);
  color: var(--text-626262);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 0;
  padding: 8px 0;
  text-align: center;
}
.person-cell { min-width: 0; overflow-wrap: anywhere; }
.person-cell img { display: block; width: 45px; height: 45px; margin: 0 auto 3px; }
/* openvk's .cl_name: the names are one link, the surname under the name
   in 7pt (.cl_lname), so that a long one fits the cell. */
.person-cell .person-name { display: flex; flex-direction: column; padding: 0 3px; }
.person-cell .person-surname { font-size: 7pt; }

.person {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-ececec);
}
.person img { display: block; width: 50px; height: 50px; }
.person-status { margin-top: 3px; color: var(--text-555); }

/* openvk's list (@listView.latte): the blue summary bar over a grey
   container_gray, each person a white box in a grey frame; an empty list
   says so in a white frame (components/error.latte). */
.list-view { margin: 0 -10px -10px; padding: 12px; background: var(--back-f6f6f6); }
.list-view .person { margin-bottom: 6px; padding: 4px; background: var(--back-fff); border: 1px solid var(--line-dedede); }
.list-view .wall-more { margin-top: 6px; }
.nothing { padding: 60px 10px; background: var(--back-fff); border: 1px solid var(--line-dedede); color: var(--text-707070); text-align: center; }

/* openvk's .tabs: a dark line under them, the open tab dark over it. */
.tabs {
  display: flex;
  margin: 0 -10px 10px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-707070);
  white-space: nowrap;
}
.tabs a { margin-right: 3px; padding: 5px 10px; border-radius: 3px 3px 0 0; }
.tabs a:hover { background: var(--back-e4e4e4); text-decoration: none; }
.tabs a.active, .tabs a.active:hover { background: var(--back-707070); color: var(--text-fff); }
/* A link at the right end of the tabs, as openvk's "Настройки ленты". */
.tabs .tabs-side { margin-left: auto; cursor: pointer; }

/* Photo */

.avatar { object-fit: cover; }
/* Prime: an amethyst frame of the photo and an amethyst name on the
   page of the person. */
.prime-page .avatar {
  border: 3px solid var(--back-c7b2ee);
  outline: 1px solid var(--text-6b3fb8);
}
.prime-name { color: var(--text-6b3fb8); font-weight: bold; }

/* "Оформление страницы" of Prime, as pages of the 2000s were dressed: the
   colour of the name (on the page, by posts and messages: primeNameClass in
   labels.js), the frame of the photo, the pattern behind the page (a white
   column on it, as the New Year's) and behind posts and messages of the
   person, and the smiley of the mood. The page classes are those of
   primeStyleClasses. */
.prime-name.prime-name-ruby { color: var(--text-b3122e); }
.prime-name.prime-name-emerald { color: var(--text-0c7a3c); }
.prime-name.prime-name-sapphire { color: var(--text-1d4fb5); }
.prime-name.prime-name-gold { color: var(--text-6e7782); text-shadow: 0 1px 0 var(--back-dfe3e8); }
.prime-name.prime-name-rainbow {
  background: linear-gradient(90deg, var(--text-b3122e), var(--text-e0650a), var(--text-0c7a3c),
    var(--text-1d4fb5), var(--text-6b3fb8), var(--text-b3122e)) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prime-page.prime-frame-gold .avatar { border-color: var(--back-d23a32); outline-color: var(--back-7a0f1d); }
.prime-page.prime-frame-silver .avatar { border-color: var(--back-dfe3e8); outline-color: var(--line-7d8792); }
.prime-page.prime-frame-glitter .avatar,
.prime-page.prime-frame-hearts .avatar,
.prime-page.prime-frame-stars .avatar { border-width: 6px; outline: none; border-image: url("/static/c/28d3eda55bf3/prime/frame-glitter.svg") 8 round; }
.prime-page.prime-frame-hearts .avatar { border-image-source: url("/static/c/feb8a951a2cf/prime/frame-hearts.svg"); }
.prime-page.prime-frame-stars .avatar { border-image-source: url("/static/c/633d838e68f9/prime/frame-stars.svg"); }

/* The glitter frame shines, as glitter of the 2000s: it glows, its colour
   runs and sparkles blink around it. The owner asked it back (2026-11-07)
   when the site was calmed down: the only animation of Prime. */
.prime-page.prime-frame-glitter .avatar {
  animation: prime-glow 1.6s ease-in-out infinite alternate, prime-shimmer 4s linear infinite;
}
.prime-frame-glitter .avatar-box, .prime-sparkle-box { position: relative; }
.prime-sparkle-box { display: block; line-height: 0; }
.prime-sparkles { display: none; }
.prime-frame-glitter .prime-sparkles {
  position: absolute;
  inset: calc(-12px - 12%);
  display: block;
  background: url("/static/c/5c0cb62ec73e/prime/sparkles.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
  animation: prime-twinkle 0.9s steps(2, jump-none) infinite;
}
.prime-frame-glitter .prime-sparkles.late { transform: rotate(180deg); animation-delay: 0.45s; }
@keyframes prime-glow {
  from { box-shadow: 0 0 4px 1px var(--back-c9cfd6), 0 0 0 0 var(--back-c7b2ee); }
  to { box-shadow: 0 0 14px 4px var(--back-c9cfd6), 0 0 24px 8px var(--back-c7b2ee); }
}
@keyframes prime-shimmer {
  from { filter: hue-rotate(0deg) saturate(1.3) brightness(1.05); }
  to { filter: hue-rotate(360deg) saturate(1.3) brightness(1.05); }
}
@keyframes prime-twinkle {
  from { opacity: 1; }
  to { opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .prime-page.prime-frame-glitter .avatar, .prime-frame-glitter .prime-sparkles { animation: none; }
}

/* A pattern is a variable: the page lays it under the column, a post or
   a message of the person faintly behind its words, so they stay read. */
.prime-bg-stars { --prime-pattern: url("/static/c/57881a7e79e4/prime/bg-stars.svg"); }
.prime-bg-hearts { --prime-pattern: url("/static/c/2e89565c1b20/prime/bg-hearts.svg"); }
.prime-bg-checks { --prime-pattern: url("/static/c/898f6ea70e13/prime/bg-checks.svg"); }
.prime-bg-clouds { --prime-pattern: url("/static/c/658dc2a1e330/prime/bg-clouds.svg"); }
.prime-bg-flowers { --prime-pattern: url("/static/c/c4622fa3131d/prime/bg-flowers.svg"); }
.prime-bg-sparkles { --prime-pattern: url("/static/c/51a7390b2a75/prime/bg-sparkles.svg"); }
.prime-bg-trip { --prime-pattern: url("/static/c/c9b37bd891f7/prime/bg-trip.svg"); }
/* body.prime-bg comes after ".festive body": the New Year's look leaves
   the pattern of the page. */
body.prime-bg { background: var(--back-f2f5f8) var(--prime-pattern); }
.prime-bg .layout { position: relative; min-height: var(--view-height, 100vh); }
.prime-bg .layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  right: -10px;
  background: var(--back-fff);
  box-shadow: 0 0 12px rgba(80, 60, 120, 0.25);
  z-index: -1;
}
/* "галлюцинации" does not stay still: behind the page the pattern breathes,
   drifts and runs through every colour, and the column glows in rainbow. */
body.prime-bg.prime-bg-trip::before {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -2;
  background: var(--prime-pattern);
  background-size: 200px 200px;
  pointer-events: none;
}

/* The words over it stay read: the name and status of the preview sit on
   a pale plate. */
.prime-preview.prime-bg-trip > div { padding: 2px 6px; background: color-mix(in srgb, var(--back-fff) 85%, transparent); }
/* The open menu of a message rises over the messages after it. */
.im-message:has(.attach-menu.open) { z-index: 40; }

.prime-mood { width: 32px; height: 32px; }
/* The mood sits on the right under "Онлайн", by the name. */
.account-info { display: flow-root; }
.account-info .prime-mood { float: right; margin: 0 2px 6px 8px; }
.prime-preview .prime-mood { margin-left: auto; align-self: flex-start; }

/* The choices of "Оформление страницы" on /prime: swatches in a row, the
   chosen one framed. */
.prime-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.prime-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  width: 78px;
  padding: 6px 2px;
  border: 1px solid var(--line-ccc);
  background: var(--back-fff);
  cursor: pointer;
  text-align: center;
}
.prime-swatch:hover { background: var(--back-f7f7f7); }
.prime-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.prime-swatch:has(input:checked) { border-color: var(--text-6b3fb8); outline: 1px solid var(--text-6b3fb8); background: var(--back-f2f5f8); }
.prime-swatch:has(input:focus-visible) { outline: 2px solid var(--text-6b3fb8); }
.prime-swatch-sample { display: block; width: 40px; height: 40px; box-sizing: border-box; background-color: var(--back-f2f2f2); }
.prime-swatch-bg { border: 1px solid var(--line-ccc); background: var(--back-f2f5f8) var(--prime-pattern, none); }
.prime-swatch-none { display: block; width: 16px; height: 16px; color: var(--text-626262); }
.prime-preview { display: flex; gap: 10px; align-items: center; margin: 8px 0; padding: 10px; border: 1px solid var(--line-ccc); }
.prime-preview .avatar { width: 60px; height: 60px; }
.prime-preview.prime-bg { background-image: var(--prime-pattern); }

/* The controls on the photo for whom it is theirs to change, as openvk's
   .avatar_controls: they show when the photo is pointed at — "Загрузить
   новую фотографию" on a dark band along its bottom and "×" in its top
   right corner; a touch screen shows them always. */
.avatar-box { position: relative; }
.avatar-controls { position: absolute; inset: 0; pointer-events: none; }
.avatar-controls a { position: absolute; color: var(--text-fff); background: rgb(0 0 0 / 75%); opacity: 0; transition: opacity 200ms ease-in-out; pointer-events: auto; cursor: pointer; }
.avatar-controls a:hover { text-decoration: none; }
.avatar-box:hover .avatar-controls a { opacity: 0.85; }
.avatar-box:hover .avatar-controls a:hover { opacity: 1; }
.avatar-upload { right: 1px; bottom: 1px; left: 1px; padding: 6px 8px; }
.avatar-delete { top: 1px; right: 1px; width: 20px; height: 20px; border-radius: 0 0 0 5px; font-size: 14px; line-height: 18px; text-align: center; }
@media (hover: none) {
  .avatar-controls a { opacity: 0.85; }
}
.post-avatar img, .person img, .person-cell img { object-fit: cover; }

/* Search */

.search-form { display: flex; gap: 6px; margin-bottom: 10px; }
.search-form input { flex: 1; }

/* Notifications: a post-like row with the sentence of openvk. */
/* A row of openvk's "Ответы" (Notification/Feed.latte): a table of the
   photo, 50 by 50, in a cell 54 wide, and the words in .post-content
   .text, the date gray under them; the microblog view adds a line under
   each, as openvk's microblog.css (.post-divider) does. */
.notification { gap: 4px; margin-bottom: 4px; }
.notification-text { padding: 4px; line-height: 12pt; overflow-wrap: anywhere; }
.notification .nobold { color: var(--text-828282); }
.posts-microblog .notification { padding-bottom: 4px; border-bottom: 1px solid var(--line-ddd); }

/* Messages, as on openvk: the list of dialogs (ConversationItem of
   components/common.js, crp-entry of messages.css) and the messenger. */
.dialogs { display: flex; flex-direction: column; }
.crp-entry { position: relative; display: flex; flex-shrink: 0; align-items: center; box-sizing: border-box; height: 66px; min-height: 66px; padding: 8px 10px; border-bottom: 1px solid var(--line-d6d6d6); color: var(--text-222); cursor: pointer; }
.crp-entry:hover { background: var(--back-f0f1f2); text-decoration: none; }
.crp-entry.unread { background: var(--back-eaeae9); }
.crp-entry--main { display: flex; flex-shrink: 0; align-items: center; }
.crp-entry--image { flex-shrink: 0; width: 50px; height: 50px; margin-right: 12px; overflow: hidden; border-radius: 3px; }
.crp-entry--image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.crp-entry--info { display: flex; flex-shrink: 0; align-items: center; width: 140px; margin-right: 5px; }
.crp-entry--info-wrap { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; }
.crp-entry--name { display: -webkit-box; max-height: 25px; overflow: hidden; color: var(--text-2b587a); font-size: 11px; line-height: 12.5px; word-break: break-word; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.crp-entry--excess { display: flex; flex-direction: column; margin-top: 2px; }
.crp-entry--excess span { color: var(--text-777); font-size: 10px; line-height: 10px; }
.crp-entry--excess span + span { margin-top: 2px; }
.crp-entry--message { display: flex; flex: 1; align-items: center; min-width: 0; padding: 3px 6px; overflow: hidden; border-radius: 3px; white-space: nowrap; }
.crp-entry--message.unread { background: var(--back-e6e6e6); }
.crp-entry--message---av { flex-shrink: 0; width: 32px; height: 32px; margin-right: 8px; overflow: hidden; border-radius: 3px; }
.crp-entry--message---av img { display: block; width: 32px; height: 32px; object-fit: cover; border-radius: 3px; }
.crp-entry--message---content { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; }
.crp-entry--message---author { margin-bottom: 2px; overflow: hidden; color: var(--text-2b587a); font-size: 11px; font-weight: bold; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
.crp-entry--message---text { display: flex; align-items: center; min-width: 0; max-width: 100%; overflow: hidden; color: var(--text-222); font-size: 11px; line-height: 15px; white-space: nowrap; }
.crp-entry--message---text > span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.crp-entry--message---text.dialog-typing, .dialog-forwarded { color: var(--text-777); }
.crp-entry .name-checkmark { margin-left: 3px; vertical-align: -1px; }
/* The list as tall as the window and scrolling inside it, as openvk's
   crp-list, with its thin bar. */
.im-list-page .crp-list { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; margin: 0 -10px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line-d6d6d6); }
.crp-list .nothing, .crp-list .wall-more { margin: 10px; }
/* The grey bar of openvk's messenger over the dialogs: the search, then
   "Избранное" and "Новая беседа"; and the one under them, with how many
   there are and "Только непрочитанные". */
.im-top { display: flex; gap: 6px; align-items: center; margin: -10px -10px 0; padding: 8px 10px; background: var(--back-f7f7f7); }
.im-search { flex: 1; }
.im-search input { width: 100%; box-sizing: border-box; padding: 3px 4px; border: 1px solid var(--line-bbb); font: inherit; }
.im-top ~ .error, .im-top ~ .hint { margin: 8px 0; }
/* Under the tabs, which keep no room under them in the window. */
.im-list-page .im-top { flex-shrink: 0; margin-top: 0; padding: 11px 11px 11px 10px; }
.dialogs.unread-only .crp-entry:not(.unread) { display: none; }
.im-bottom { display: flex; flex-shrink: 0; justify-content: space-between; margin: 0 -10px; padding: 10px 11px; background: var(--back-f7f7f7); border-top: 1px solid var(--line-d6d6d6); color: var(--text-626262); }
.im-bottom a { cursor: pointer; }

/* The messenger as openvk's (messages.css): the window as tall as the
   screen, without the title and the footer of the page; the messages
   scroll inside it (--im-top: where it starts, messenger.js). */
.layout:has(.im-page) .footer { display: none; }
.im-page .page-title { display: none; }
.im-page .page-body { display: flex; flex-direction: column; box-sizing: border-box; height: calc(var(--view-height, 100vh) - var(--im-top, 50px)); padding-bottom: 0; }
.im-page .tabs { flex-shrink: 0; margin-bottom: 0; }
.im-tabs .tabs-side { display: flex; align-items: center; cursor: default; }
.im-tabs .tabs-side a { margin: 0; padding: 5px 0; border-radius: 0; cursor: pointer; }
.im-tabs .tabs-side a:hover { background: none; text-decoration: underline; }
/* openvk's "tab-divider" between "О чате" and "К списку друзей". */
.im-tabs .tab-divider { display: inline-block; margin: 0 4px; color: var(--text-868686); user-select: none; }
.im-tabs #tab-contact, .im-tabs #tab-dialog { cursor: pointer; }
.im-page .error, .im-page .notice { flex-shrink: 0; margin: 8px 0 0; }
.messenger { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; margin: 0 -10px; }
/* The tabs of the conversations opened, openvk's "messages--peers-tabs":
   the one open is a dark button, the others count what came there. */
.im-peer-tabs { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 5px; box-sizing: border-box; margin: 0 -10px; padding: 8px 10px; background: var(--back-f6f6f6); border-bottom: 1px solid var(--line-d6d6d6); box-shadow: 1px 1px 2px 0 var(--line-d6d6d6); }
.im-peer-tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 1px; color: var(--text-000); user-select: none; }
.im-peer-tab:hover { background: var(--back-dbdbdb); }
.im-peer-tab.selected { background: url("/static/c/a7db0140063a/im/button.png") var(--back-595959); border: 1px solid var(--line-595959); text-shadow: 0 1px 0 var(--line-555); font-weight: bold; }
.im-peer-tab a { display: flex; color: var(--text-000); font-size: 11px; cursor: pointer; }
.im-peer-tab a:hover { text-decoration: none; }
.im-peer-tab.selected a, .im-peer-tab.selected .im-peer-tab-close { color: var(--text-fff); cursor: default; }
.im-peer-tab-counter { display: none; }
.im-peer-tab.unread .im-peer-tab-counter { display: block; padding: 0 2px; background: var(--back-e5460a); color: var(--text-fff); font-weight: bold; }
.im-peer-tab-close { display: flex; align-items: center; height: 11px; cursor: pointer; }
/* Centred in the tab: the cross of openvk sits 2px low beside text. */
.im-peer-tab-close .cross { display: block; margin: 0; }
.im-peer-tab.selected .im-peer-tab-close { cursor: pointer; }
/* openvk's "cross": the grey one of arrows.png, the white on a dark tab. */
.cross { display: inline-block; width: 11px; height: 11px; margin-bottom: -2px; background: url("/static/c/294f6a3cf97e/im/arrows.png") -18px 0 no-repeat; opacity: .6; cursor: pointer; }
.im-peer-tab.selected .cross { background-position: -30px 0; opacity: .5; }
.cross:hover { opacity: .8; }
/* "Выбрано N сообщений", "Удалить", "Ответить", "Переслать": openvk's
   bar of dark buttons over the messages while some are selected. */
.im-actions { position: absolute; top: 0; right: 0; left: 0; z-index: 6; display: flex; justify-content: space-between; box-sizing: border-box; height: 42px; padding: 8px 10px; background: var(--back-f6f6f6); border-bottom: 1px solid var(--line-d6d6d6); }
.im-actions[hidden] { display: none; }
.im-actions-tab { display: inline-block; margin-right: 6px; padding: 5px 10px; background: url("/static/c/a7db0140063a/im/button.png") var(--back-595959); border: 1px solid var(--line-595959); color: var(--text-fff); cursor: pointer; }
.im-actions-tab:hover { text-decoration: none; }
.im-actions-tab[hidden] { display: none; }
.im-actions-count { color: var(--text-f0f1f2); }
/* openvk's "Просмотрели сообщение": who has read a message. */
.message-viewers-loader { padding: 25px; text-align: center; }
.message-viewers-empty { padding: 20px; color: var(--text-777); font-size: 13px; text-align: center; }
.message-viewers-header { padding: 4px 10px 8px; border-bottom: 1px solid var(--line-e7e8ec); color: var(--text-777); font-size: 11px; font-weight: bold; }
.message-viewers-list { max-height: 360px; overflow-y: auto; }
.message-viewer-row { display: flex; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line-e7e8ec); }
.message-viewer-ava-link { position: relative; display: inline-block; margin-right: 10px; }
.message-viewer-ava { display: block; width: 36px; height: 36px; object-fit: cover; }
.message-viewer-info { flex: 1; min-width: 0; }
.message-viewer-name { display: block; overflow: hidden; color: var(--text-222); font-size: 12px; font-weight: bold; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.message-viewer-time { color: var(--text-777); font-size: 11px; }
.message-viewers-error { padding: 20px; color: var(--text-d00); text-align: center; }
.modal-box.message-viewers .modal-body { padding: 10px 0; }
.messenger-messages { flex: 1; min-height: 0; margin-right: 2px; padding: 12px 0 10px; overflow-x: hidden; overflow-y: scroll; overscroll-behavior: contain; }
/* The bar of the list and the messages 6px thin, as openvk's: Chrome
   draws its own bar as soon as scrollbar-width is set, so only a browser
   without ::-webkit-scrollbar is given that. */
.crp-list::-webkit-scrollbar, .messenger-messages::-webkit-scrollbar { width: 6px; }
.crp-list::-webkit-scrollbar-track, .messenger-messages::-webkit-scrollbar-track { background: transparent; }
.crp-list::-webkit-scrollbar-thumb, .messenger-messages::-webkit-scrollbar-thumb { background: var(--line-bbb); border-radius: 3px; }
.crp-list::-webkit-scrollbar-thumb:hover, .messenger-messages::-webkit-scrollbar-thumb:hover { background: var(--line-717171); }
@supports not selector(::-webkit-scrollbar) {
  .crp-list, .messenger-messages { scrollbar-width: thin; scrollbar-color: var(--line-bbb) transparent; }
}
.messenger-messages > .hint { margin-top: 20px; }
/* openvk's "Здесь пока нет сообщений." (messenger-app--no-messages). */
.messenger-app--no-messages { display: flex; align-items: center; justify-content: center; min-height: 250px; padding: 40px 20px; box-sizing: border-box; }
.messenger-app--no-messages[hidden] { display: none; }
.messenger-app--no-messages p { margin: 0; padding: 12px 24px; color: var(--text-777); font-size: 13px; background: var(--back-f9f9f9); border: 1px solid var(--line-d6d6d6); border-radius: 4px; }
/* "Печатает...": a line of its own, empty when nobody types, so the form does not jump. */
.messenger-typing { flex-shrink: 0; box-sizing: border-box; min-height: 19px; max-height: 19px; padding: 0 20px 0 77px; overflow: hidden; color: var(--text-868686); line-height: 19px; white-space: nowrap; text-overflow: ellipsis; }
.messenger-typing.is-typing::before { content: ""; display: inline-block; width: 15px; height: 11px; margin-right: 6px; background: url("/static/c/e9e1b328e644/im/typing.gif") no-repeat; vertical-align: -1px; }
/* The day over its messages, openvk's "messages-day-time". */
.im-day { display: flex; justify-content: center; margin: 14px 0 10px; }
.im-day b { padding: 3px 10px; color: var(--text-777); }
.im-day:first-child { margin-top: 0; }
/* A message, as openvk's: the mark of a selected one in the margin, the
   photo, the name in bold with the time and the icons at the right, the
   words under it; one by the author of the one before has no head. */
.im-message { position: relative; display: flex; margin-top: 10px; padding: 0 0 0 77px; cursor: pointer; }
.im-message.unread { background: var(--back-ededed); }
.im-message.same-author { margin-top: 0; }
/* openvk's "click-territory": the mark sits in the margin, level with the
   middle of the photo (or of the first line without one). */
.im-check { position: absolute; top: 10px; left: 25px; z-index: 2; width: 20px; height: 20px; background: url("/static/c/c83dc9f31615/im/audios_controls.png") -163px -48px no-repeat; opacity: 0; }
.im-message:hover .im-check { opacity: .7; }
.im-message.selected .im-check { opacity: .9; }
.im-message.same-author .im-check { top: 0; }
.im-message-avatar { flex-shrink: 0; width: 36px; max-height: 36px; margin-top: 3px; }
.im-message-avatar img { display: block; width: 34px; height: 34px; object-fit: cover; border-radius: 3px; }
.im-message.same-author .im-message-avatar img { display: none; }
.im-message-content { flex-shrink: 0; width: 430px; min-width: 0; padding-left: 15px; line-height: 13.2pt; }
.im-sender { font-weight: bold; }
.im-message.same-author .im-sender { display: none; }
.im-message-head { float: right; display: inline-flex; align-items: center; gap: 6px; height: 14px; margin: 3px 0 0 8px; }
.im-message-time { color: var(--text-868686); cursor: default; user-select: none; }
/* Without a head the time is shown only on hover, left of the words, as
   openvk's. */
.im-message.same-author .im-message-time { position: absolute; left: 58px; opacity: 0; pointer-events: none; }
.im-message.same-author:hover .im-message-time { opacity: 1; }
.im-message-text { padding-right: 35px; white-space: pre-wrap; overflow-wrap: anywhere; }
.im-message-text.collapsed { max-height: 115px; overflow: hidden; }
.im-message-edited { color: var(--text-aaa); font-size: 10px; }
/* openvk's "actions-2": the icons of a message, seen on hover. */
.im-message-icons { display: inline-flex; align-items: center; gap: 4px; margin-top: -4px; visibility: hidden; }
.im-message:hover .im-message-icons { visibility: visible; }
.im-message.selected .im-message-icons, .im-message.deleted .im-message-icons { display: none; }
.im-icon { flex-shrink: 0; width: 11px; height: 11px; margin-top: 2px; background: url("/static/c/c83dc9f31615/im/audios_controls.png") -127px -44px / 240px 78px no-repeat; opacity: .45; cursor: pointer; }
.im-icon:hover { opacity: 1; }
.im-icon-reply { background: url("/static/c/abf25097251d/im/mono_iconset.gif") 0 -236px no-repeat; }
.im-icon-react { background: url("/static/c/c1bd085f63ab/im/chats.png") -44px 0 / 87px 38px no-repeat; }
.im-message.selected, .im-message.selected.unread { background: var(--back-dae1e8); }
/* The form under the messages, openvk's: my photo, the field with the
   face of the emoji at its corner, "Отправить" with the latest emoji, and
   "Прикрепить" at the right; the photo of the peer opens "Контакт". */
.messenger-input { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 60px; background: linear-gradient(var(--back-f9f9f9), var(--back-f2f2f2)); border-top: 1px solid var(--line-d6d6d6); }
.messenger-avatar { flex-shrink: 0; width: 52px; height: 52px; object-fit: cover; border-radius: 3px; }
.messenger-avatar.peer-toggler { cursor: pointer; }
.messenger-box { flex: 1; min-width: 0; }
.messenger-field { position: relative; }
.messenger-box textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 53px;
  max-height: 200px;
  margin: 0;
  padding: 4px 28px 4px 6px;
  resize: none;
  border: 1px solid var(--line-c0cad5);
  font: 11px/1.35 tahoma, verdana, arial, sans-serif;
}
.emoji-entry { position: absolute; top: 5px; right: 5px; z-index: 2; width: 16px; height: 17px; background: url("/static/c/c1bd085f63ab/im/chats.png") 190px 0; opacity: .7; cursor: pointer; }
.emoji-entry:hover, .emoji-entry.active { opacity: 1; }
.stickers-entry { position: absolute; top: 26px; right: 4px; z-index: 2; width: 18px; height: 18px; background: url("/static/c/2a9ceecf3bbe/im/emoji_sprite.png") -18px 0 no-repeat; opacity: .7; cursor: pointer; }
.stickers-entry:hover, .stickers-entry.active { opacity: 1; }
.messenger-buttons { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 8px; }
.messenger-buttons-left { display: flex; align-items: center; gap: 10px; }
.messenger-buttons .attach-link { white-space: nowrap; }
.im-recent-smiles-bar { display: flex; align-items: center; gap: 3px; user-select: none; }
.im-recent-smile-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 2px; cursor: pointer; }
.im-recent-smile-btn:hover { background: var(--back-e9edf1); }
.messenger-box .attachments { margin: 6px 0 0; }
/* The emoji picker of openvk (main.css "emoji-picker"): over the face, at
   its right; the groups scroll, the tabs of the groups and of the stickers
   at its foot. */
.emoji-picker-wrap { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 50; display: flex; flex-direction: column; width: 275px; overflow: hidden; background: var(--back-fff); border-radius: 4px; box-shadow: 0 1px 4px var(--line-aaa), 0 0 0 1px var(--line-e0e0e0); user-select: none; }
.emoji-picker-scroll { position: relative; box-sizing: border-box; height: 215px; padding: 6px 0 8px 8px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.emoji-picker-group { margin-bottom: 12px; }
.emoji-picker-group:last-child { margin-bottom: 4px; }
.emoji-picker-wrap .group-title { margin-bottom: 4px; padding: 4px 2px; border-bottom: 1px solid var(--line-eef1f4); color: var(--text-656565); }
.emoji-picker-group-items { display: flex; flex-wrap: wrap; gap: 2px; }
.emoji-picker-item { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 3px; cursor: pointer; }
.emoji-picker-item:hover { background: var(--back-e9edf1); }
.emoji-picker-footer { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 3px; box-sizing: border-box; height: 34px; padding: 0 4px; background: var(--back-f7f7f7); border-top: 1px solid var(--line-e8ebee); }
.emoji-main-tab, .s-tab { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 3px; cursor: pointer; }
.emoji-main-tab.active, .s-tab.active { background: var(--back-e9edf1); box-shadow: inset 0 1px 2px var(--line-d6d6d6); }
.emoji-icon { width: 18px; height: 18px; margin-top: 2px; background: url("/static/c/2a9ceecf3bbe/im/emoji_sprite.png"); }
.sticker-tab-icon { width: 18px; height: 24px; background: url("/static/c/2a9ceecf3bbe/im/emoji_sprite.png") -18px 3px no-repeat; opacity: .7; }
.emoji-tabs-nav { display: flex; flex: 1; align-items: center; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.emoji-category-nav { display: flex; flex-shrink: 0; align-items: center; gap: 2px; }
.emoji-cat-btn { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 3px; opacity: .65; cursor: pointer; }
.emoji-cat-btn:hover { background: var(--back-e9edf1); opacity: 1; }
.emoji-cat-btn.active { background: var(--back-dae1e8); box-shadow: inset 0 1px 2px var(--line-d6d6d6); opacity: 1; }
.emoji-cat-btn-recent { width: 18px; height: 18px; margin-top: 3px; background: url("/static/c/2a9ceecf3bbe/im/emoji_sprite.png") 18px 0; }
.emoji-tabs-divider { flex-shrink: 0; width: 1px; height: 18px; margin: 0 4px; background: var(--line-dedede); }
.emoji-picker-wrap .sticker-panel { max-height: none; margin: 0; padding: 0 8px 0 0; overflow: visible; border: 0; background: none; }
/* The page "Контакт" ("О чате"), openvk's "peer-window" (messages.css):
   the photo and the name in a white box, the actions in rows with
   openvk's icons, the members under it. */
.peer-window { position: relative; display: flex; flex: 1 0 auto; flex-direction: column; box-sizing: border-box; width: auto; min-height: 0; margin: 0 -10px; padding: 16px 20px 24px; overflow-y: auto; background: var(--back-f0f1f2); }
.peer-window[hidden] { display: none; }
.peer-side { display: flex; flex-direction: column; width: 100%; gap: 16px; }
.peer-info { display: flex; gap: 20px; padding: 16px; background: var(--back-fff); border: 1px solid var(--line-d6d6d6); border-radius: 4px; }
.peer-avatar { position: relative; flex-shrink: 0; align-self: flex-start; width: 100px; height: 100px; }
.peer-avatar a { font-size: 13px; font-weight: bold; }
.peer-avatar > img, .peer-avatar > a > img { display: inline-block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.peer-name { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.peer-name-1 { display: flex; flex-direction: column; gap: 3px; }
.peer-actions-1 { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.peer-actions-1 a { color: var(--text-2a5885); font-size: 11px; line-height: 14px; text-decoration: none; cursor: pointer; }
.peer-actions-1 a:hover { text-decoration: underline; }
.peer-actions-1 ul { margin: 0; padding-left: 0; list-style: none; }
.peer-actions-1 li { padding-left: 16px; background: url("/static/c/abf25097251d/im/mono_iconset.gif") 0 3px no-repeat; }
.peer-actions-1 li.peer-action-search { background-position: 0 -262px; }
.peer-actions-1 li.peer-action-ava { background-position: 0 -28px; }
.peer-actions-1 li.peer-action-call { background-position: 0 -304px; }
.peer-actions-1 li.peer-action-safety { background-position: 0 -318px; }
.peer-actions-1 li.peer-action-clean { background-position: 0 -331px; }
.peer-link { color: var(--text-2a5885); font-size: 13px; font-weight: bold; text-decoration: none; }
.peer-link:hover { text-decoration: underline; }
.peer-link.peer-title-editable { cursor: pointer; }
.peer-status span, .peer-status { color: var(--text-828282); font-size: 11px; }
/* The name of a chat is changed in its place, as openvk's. */
.peer-title-edit-wrap { display: flex; align-items: center; gap: 6px; width: 100%; }
.peer-title-input { flex: 1; box-sizing: border-box; min-width: 0; padding: 3px 6px; background: var(--back-fff); border: 1px solid var(--line-c0c0c0); border-radius: 3px; color: var(--text-000); font: bold 13px tahoma, verdana, arial, sans-serif; }
.peer-title-save-btn { padding: 3px 10px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.peer-title-cancel-btn { display: inline-flex; align-items: center; justify-content: center; padding: 2px 5px; color: var(--text-888); font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; }
.chats-close-icon { display: inline-block; width: 20px; height: 20px; background: url("/static/c/294f6a3cf97e/im/arrows.png") -27px 2px / 75px 24px no-repeat; opacity: .6; }
.peer-title-cancel-btn:hover .chats-close-icon { opacity: 1; }
.peer-actions-container { display: flex; flex-direction: column; gap: 7px; }
.peer-members-section { display: flex; flex-direction: column; margin-top: 0; padding-top: 7px; border-top: 1px solid var(--line-d6d6d6); }
.chat-tab-2-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; padding: 7px 0 0 4px; border-bottom: none; font-size: 13px; }
.chat-tab-2-header b { font-size: 13px; font-weight: bold; }
.chat-header-actions { display: flex; gap: 14px; font-size: 11px; }
.chat-header-actions a { color: var(--text-2a5885); text-decoration: none; cursor: pointer; }
.chat-header-actions a:hover { text-decoration: underline; }
.chat-members-list { display: flex; flex-direction: column; background: var(--back-fff); border-top: 1px solid var(--line-d6d6d6); border-bottom: 1px solid var(--line-d6d6d6); }
.chat-member-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; background: var(--back-fff); border-bottom: 1px solid var(--line-d6d6d6); font-weight: bold; cursor: pointer; }
.chat-member-item:last-of-type { border-bottom: unset; }
.chat-member-item:hover { background: var(--back-f0f1f2); }
.chat-member-item .inf { display: flex; flex: 1; align-items: center; gap: 15px; min-width: 0; }
img.chat-member-ava { display: block; flex-shrink: 0; width: 34px; height: 34px; object-fit: cover; background: var(--back-eef2f5); border-radius: 2px; }
.chat-member-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.chat-member-name { color: var(--text-2a5885); font-size: 11px; font-weight: bold; white-space: nowrap; text-decoration: none; }
.chat-member-name:hover { text-decoration: underline; }
.chat-member-badge { padding: 1px 5px; background: var(--back-eaeef2); border-radius: 2px; color: var(--text-517296); font-size: 10px; font-weight: 500; }
.chat-member-online { margin-left: 2px; color: var(--text-afafaf); font-size: 11px; font-weight: normal; white-space: nowrap; }
.chat-member-actions { display: flex; flex-shrink: 0; align-items: center; gap: 10px; margin-left: 12px; }
.chat-member-action-btn { color: var(--text-2a5885); font-size: 11px; font-weight: normal; white-space: nowrap; text-decoration: none; cursor: pointer; }
.chat-member-action-btn:hover { text-decoration: underline; }
.chat-member-action-kick, .chat-member-action-mod { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border-radius: 2px; text-decoration: none; cursor: pointer; }
/* The cross whole: openvk shifts it 2px down and cuts off its bottom. */
.chat-member-action-kick .chats-close-icon { display: block; width: 11px; height: 11px; background: url("/static/c/294f6a3cf97e/im/arrows.png") -18px 0 / 50px 16px no-repeat; opacity: .6; }
.chat-member-action-kick:hover .chats-close-icon { opacity: 1; }
.chat-mod-star-icon { display: inline-block; width: 11px; height: 11px; background: url("/static/c/abf25097251d/im/mono_iconset.gif") 0 -119px / 11px auto no-repeat; opacity: .4; vertical-align: middle; }
.chat-member-action-mod:hover .chat-mod-star-icon { opacity: 1; }
.safety-code { margin: 8px 0; font: bold 16px monospace; letter-spacing: 1px; text-align: center; }
/* "Двухфакторная аутентификация" (twofactor.js): the QR code at its own
   pixels in a white frame, the key under it, the code in a form row and
   the recovery codes in two columns of a dashed slip, as openvk's list. */
.qr-box { align-self: center; padding: 5px; background: var(--back-fff); border: 1px solid var(--line-bbb); box-shadow: inset 1px 1px 0 var(--back-e4e4e4); }
.qr-code { display: block; image-rendering: pixelated; }
.secret-key { margin: 0; font-size: 13px; word-spacing: 3px; }
.two-factor-form { width: 100%; margin-top: 4px; border-spacing: 0; }
.two-factor-form th { width: 50px; padding-right: 8px; color: var(--text-626262); font-weight: normal; text-align: right; }
.modal-body .two-factor-form input[type="text"] { width: 100%; box-sizing: border-box; font: bold 14px monospace; letter-spacing: 2px; }
.recovery-codes { columns: 2; margin: 4px 0; padding: 8px 8px 8px 34px; background: var(--back-f7f7f7); border: 1px dashed var(--line-bbb); font: bold 13px/21px monospace; }
.im-message.deleted .im-message-text, .im-message-text.unreadable { color: var(--text-626262); font-style: italic; }
.im-message.found, .im-message.found.unread { background: var(--back-f6f0d2); }
/* The message one was led to, for a moment, and the one answered while
   one answers it, as openvk's "animated" and msg-replying-to. */
.im-message.jumped, .im-message.jumped.unread, .im-message.replying-to, .im-message.replying-to.unread { background: var(--back-f6f0d2); }
.found-words { background: var(--back-dae1e8); }
.im-forwarded { margin: 4px 0; padding-left: 8px; border-left: 2px solid var(--line-dae1e8); }
.im-forwarded-message { margin-bottom: 6px; }
.im-forwarded-message:last-child { margin-bottom: 0; }
.im-forwarded .im-forwarded { margin-bottom: 0; }
.im-forwarded-date { margin-left: 6px; color: var(--text-626262); font-size: 9px; }
.im-forwarded-hint { color: var(--text-626262); }
/* An answer shows the message it answers over its words, as on VK; a
   click leads to it. */
/* The message an answer answers, as openvk's reply-msg-container
   (messages.css): a grey line at its left, the small photo, the name and
   the date, the words, and whose message it is under them. */
.reply-msg-container { display: block; margin: 3px 0; padding: 0 30px 0 15px; border-left: 1px solid var(--line-858585); border-radius: 0 2px 2px 0; color: var(--text-222); cursor: pointer; }
.reply-msg-container:hover { background: var(--back-f7f7f7); text-decoration: none; }
.reply-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 2px; line-height: 1.2; }
.reply-avatar { display: block; flex-shrink: 0; width: 15px; height: 15px; object-fit: cover; border-radius: 2px; }
.reply-author-name { color: var(--text-2a5885); font-size: 11px; }
.reply-date { margin-left: 1px; color: var(--text-777); font-size: 11px; }
.reply-text { display: block; margin: 0; overflow: hidden; color: var(--text-222); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.reply-no-text { color: var(--text-777); font-style: italic; }
.reply-msg-header { display: block; margin: 0 0 2px; color: var(--text-777); font-size: 11px; line-height: 1.25; }
/* The answered message stands in one line over the form: its words are
   cut, the name and "×" stay. */
/* Reactions under a message: one a person, as on VK. */
.im-reactions, .im-reaction-picker { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.im-reaction { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 3px; border: 1px solid var(--line-d6d6d6); border-radius: 10px; background: var(--back-f7f7f7); color: inherit; font: inherit; line-height: 18px; cursor: pointer; }
.im-message .im-reaction img.smiley { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.im-reaction.mine { border-color: var(--line-dae1e8); background: var(--back-dae1e8); }
.im-reaction-picker .im-reaction { padding: 2px; border-color: transparent; background: none; }
.im-message .im-reaction-picker img.smiley { width: 24px; height: 24px; }

.im-reaction-picker .im-reaction.mine { background: var(--back-dae1e8); }
.forward-list { max-height: 120px; margin: 4px 0 8px; padding-left: 8px; overflow-y: auto; border-left: 2px solid var(--line-dae1e8); color: var(--text-626262); }
.forward-list div { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Chats of several people: the line of what happened between the
   messages, and the people to tick in "Новая беседа". */
.messenger-blocked a, .page-title .aside { cursor: pointer; }
.im-special-message { display: flex; justify-content: center; margin: 10px 0 0; text-align: center; }
.im-special-message strong { color: var(--text-45688e); }
.im-special-text { color: var(--text-959595); font-weight: bold; }
.im-special-date { display: inline-block; margin-left: 10px; color: var(--text-959595); font-size: 10px; }
/* The message pinned above a chat, as VK's: a line under the bar. */
.chat-pinned { display: flex; align-items: center; gap: 8px; padding: 6px 20px; background: var(--back-f7f7f7); border-bottom: 1px solid var(--line-d6d6d6); }
.chat-pinned-body { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.chat-pinned-head { display: block; color: var(--text-626262); }
.chat-pinned-remove { color: var(--text-626262); font-size: 14px; cursor: pointer; }
.modal-box.chat-dialog { width: 440px; }
.modal-body input[type="text"], .modal-body input[type="search"] { padding: 3px 4px; border: 1px solid var(--line-bbb); font: 11px tahoma, verdana, arial, sans-serif; }
.chat-people { max-height: 200px; overflow-y: auto; border: 1px solid var(--line-dae1e8); }
.chat-people.tall { max-height: 300px; }
.chat-people > .hint { margin: 10px; text-align: center; }
.chat-person { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-bottom: 1px solid var(--line-eef1f4); cursor: default; }
label.chat-person { cursor: pointer; }
.chat-person:last-child { border-bottom: 0; }
.chat-person > img { width: 30px; height: 30px; object-fit: cover; border-radius: 3px; }
.chat-kick { display: block; font-size: 10px; cursor: pointer; }
.messenger-blocked { padding: 20px; background: var(--back-f9f9f9); border-top: 1px solid var(--line-d6d6d6); font-weight: bold; text-align: center; }
.messenger-price { margin: 0; padding: 6px 10px; background: var(--back-f9f9f9); border-top: 1px solid var(--line-d6d6d6); color: var(--text-555); text-align: center; }

/* Photos of a post, as on openvk: one at its own proportions, more as tiles. */
.post-photos { display: grid; gap: 3px; padding: 6px 4px; border-bottom: 1px solid var(--line-ececec); }
.post-photos img { display: block; width: 100%; object-fit: cover; cursor: zoom-in; }
.post-photos.single img { width: auto; max-width: 100%; max-height: 420px; object-fit: contain; }
.post-photos.grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-photos.grid-3 { grid-template-columns: repeat(3, 1fr); }
.post-photos.grid-2 img, .post-photos.grid-3 img { aspect-ratio: 1; }

/* Photos of comments and messages: the same tiles, smaller. The rule
   for the avatar of a message must not shrink them. */
.comment .post-photos, .im-message .post-photos { max-width: 300px; padding: 4px 0; border-bottom: 0; }
.comment .post-photos.single img, .im-message .post-photos.single img { max-height: 240px; }

/* "Ответ на комментарий ×" over the comment form, as openvk's. */
.reply-to { margin-top: 4px; color: var(--text-626262); }
.reply-cancel { margin-left: 4px; color: var(--text-626262); font-weight: bold; cursor: pointer; }
.reply-cancel:hover { color: var(--text-555); text-decoration: none; }

/* Photos attached to a post being written. */
.attach-link { margin-right: 8px; }

/* "Прикрепить" of a form, as openvk's #wallAttachmentMenu, each item with
   its icon. The list drops under the link and covers no more than it must:
   neither the field nor the button. Under a post form the link is at the
   right, as on openvk, and the list keeps to the right edge; .attach-up
   opens it upwards, for a form at the bottom of a page. With every item
   hidden there is nothing to attach, and no link. */
.attach-menu { position: relative; display: inline-block; margin-right: 8px; }
.attach-menu:not(:has(.attach-list .attach-link:not([hidden]))) { display: none; }
.attach-toggle { cursor: pointer; white-space: nowrap; }
.attach-menu.open .attach-toggle { color: var(--text-000); }
.attach-list {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  z-index: 32;
  min-width: 110px;
  padding: 2px 0;
  border: 1px solid var(--line-aaa);
  background: var(--back-fff);
  box-shadow: 0 1px 3px -1px rgb(0 0 0 / 50%);
  user-select: none;
}
.attach-menu.open .attach-list { display: flex; flex-direction: column; }
.attach-up .attach-list { top: auto; bottom: calc(100% + 3px); }
/* openvk's form: the button at the left, "Прикрепить" at the right. */
.wall-form .row { flex-direction: row-reverse; }
.wall-form .row > span { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.wall-form .row .attach-menu { margin-right: 0; }
.wall-form .row .attach-list { left: auto; right: 0; }
.attach-list .attach-link { display: flex; align-items: center; gap: 5px; margin: 0; padding: 3px 8px; white-space: nowrap; cursor: pointer; }
.attach-list .attach-link:hover { background: var(--back-f0f0f0); text-decoration: none; }
.attach-list .attach-link::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; background-repeat: no-repeat; background-position: center; }
.attach-photo::before { background-image: url("/static/c/164547830287/icons/photo.svg"); }
.attach-graffiti::before { background-image: url("/static/c/cc8693efa9b3/icons/graffiti.svg"); }
.attach-document::before { background-image: url("/static/c/9a2441fd28bd/icons/document.svg"); }
.attach-audio::before { background-image: url("/static/c/fd9d1d13919f/icons/audio.svg"); }
.attach-video::before { background-image: url("/static/c/c973e71ead2f/icons/video.svg"); }
.attach-article::before { background-image: url("/static/c/a27d3b2c992f/icons/article.svg"); }
.attach-poll::before { background-image: url("/static/c/2c60de8dcaa2/icons/poll.svg"); }
.attach-timer::before { background-image: url("/static/c/4694ce67a2ac/icons/timer.svg"); }
.action-reply::before { background-image: url("/static/c/da4389a46998/icons/reply.svg"); }
.action-reaction::before { background-image: url("/static/c/9dcc502dc41e/icons/reaction.svg"); }
.action-edit::before { background-image: url("/static/c/277bd91d0c5a/icons/edit.svg"); }
.action-pin::before { background-image: url("/static/c/199c60298f6b/icons/pin.svg"); }
.action-unpin::before { background-image: url("/static/c/b0b253104a55/icons/unpin.svg"); }
.action-forward::before { background-image: url("/static/c/d0a5ecae242f/icons/forward.svg"); }
.action-delete::before { background-image: url("/static/c/e9df29b0fb15/icons/delete.svg"); }
.attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.attachment { position: relative; }
.attachment img { display: block; width: 75px; height: 75px; object-fit: cover; border: 1px solid var(--line-ccc); }
.attachment-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  background: var(--back-f6f6f6);
  border: 1px solid var(--line-ccc);
  color: var(--text-626262);
}
.attachment-remove {
  position: absolute;
  top: 1px;
  right: 1px;
  padding: 0 4px;
  background: rgba(0, 0, 0, .55);
  color: var(--text-fff);
  font-weight: bold;
  line-height: 14px;
}
.attachment-remove:hover { background: rgba(0, 0, 0, .8); text-decoration: none; }

/* The photo viewer, as openvk's PhotoViewer (dialog.css): the page dimmed
   as under openvk's windows, a white box with a shadow over it, scrolling
   with the details under the photo, and the white cross at the corner. */
.viewer { position: fixed; inset: 0; z-index: 300; overflow: auto; background: rgba(0, 0, 0, .81); scrollbar-gutter: stable both-edges; }
body.viewer-open { overflow: hidden; }
.viewer-overlay { position: fixed; top: 0; z-index: 1; width: 15%; height: 100%; cursor: pointer; }
.viewer-overlay-left { left: 0; }
.viewer-overlay-right { right: 0; opacity: .4; }
.viewer-overlay-right:hover, .viewer-overlay-left:hover + .viewer-overlay-right { opacity: 1; }
.viewer-close-icon { position: fixed; top: 20px; right: 20px; width: 28px; height: 28px; background: url("/static/c/e574da810470/icons/viewer-close.svg") center / contain no-repeat; }
.viewer-box { position: relative; z-index: 2; box-sizing: border-box; width: fit-content; min-width: 600px; max-width: 70vw; margin: 10px auto 20px; padding: 26px 35px 10px; background: var(--back-fff); box-shadow: 0 0 3px 1px var(--line-333); }
.viewer-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; font-weight: bold; }
.viewer-header div { font-weight: normal; }
.viewer-close { cursor: pointer; }
.viewer-body { position: relative; display: flex; align-items: center; justify-content: center; height: 80vh; }
.viewer-photo { display: block; max-width: 100%; max-height: 80vh; user-select: none; }
/* The thirds of the photo turn the pages: openvk's slides, unseen. */
.viewer-body .viewer-nav, .viewer-body .viewer-nav:hover { position: absolute; top: 0; z-index: 1; width: 35%; height: 100%; padding: 0; background: none; transform: none; cursor: pointer; }
.viewer-body .viewer-nav[hidden] { display: none; }
.viewer-body .viewer-prev { left: 0; }
.viewer-body .viewer-next { right: 0; }

/* The arrows of the stories viewer. */
.viewer-nav {
  position: absolute;
  top: 50%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, .35);
  color: var(--text-fff);
  font-size: 27px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}
.viewer-nav:hover { background: rgba(0, 0, 0, .6); text-decoration: none; }
.viewer-prev { left: 10px; }
.viewer-next { right: 10px; }

/* A shared post inside its repost, compact as on openvk. */
.text-link { overflow-wrap: anywhere; }
.link-card { display: flex; gap: 10px; margin: 6px 4px; padding: 6px; border: 1px solid var(--line-dae1e8); background: var(--back-f7f7f7); color: inherit; }
.link-card:hover { background: var(--back-f2f5f8); text-decoration: none; }
.link-card-photo { flex: none; width: 120px; height: 90px; object-fit: cover; }
.link-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.link-card-title { color: var(--text-2b587a); overflow-wrap: anywhere; }
.link-card-site { color: var(--text-626262); }
.link-card-description { color: var(--text-333); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* An ad of the global feed: a post with "Рекламная запись" for its author
   (gray, as a date) and the cover across it under the text (ads.js). */
.post-ad .post-author .post-date { color: var(--text-626262); }
.post-ad-cover { display: block; padding: 6px 4px; border-bottom: 1px solid var(--line-ececec); }
.post-ad-cover img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.post-ad-site { color: var(--text-626262); }
/* A post of another server of the Fediverse in the news (posts.js,
   remotePostNode): the name leads there, the address there is gray after
   it, the warning of its author stands above its text, and the bar under
   it says where it is from after the heart. */
.post-remote .post-author > .text-link { font-weight: bold; }
.post-handle { color: var(--text-626262); }
.post-summary { padding: 4px; border-bottom: 1px solid var(--line-ececec); color: var(--text-626262); font-weight: bold; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-remote .post-bar { align-items: center; gap: 8px; }
.post-from { color: var(--text-626262); }
.post-shared { display: flex; gap: 6px; margin: 6px 4px; padding-left: 6px; border-left: 2px solid var(--line-dae1e8); }
.post-shared .post-avatar img { width: 30px; height: 30px; }
.post-shared .post-author { padding: 2px 5px; }
.post-shared .post-text, .post-shared .post-text-long { border-bottom: 0; }
.post-shared.deleted { padding: 6px; color: var(--text-626262); }
.post-shared-link { display: inline-block; padding: 2px 4px; }

/* openvk's message box: the "Поделиться" dialog. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  padding: 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, .7);
}
/* A margin, not align-items, centers the box: a box taller than the
   screen then starts at the top and scrolls instead of being cut off. */
.modal-box { margin: auto; width: 400px; max-width: 100%; background: var(--back-fff); border: 1px solid var(--line-555); }
.modal-header { padding: 10px 12px; background: linear-gradient(var(--back-636363), var(--back-3e3e3e)); color: var(--text-fff); font-size: 13px; font-weight: bold; }
.modal-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 12px; }
.modal-body textarea { height: 60px; }
.modal-body .error { margin-bottom: 0; }
.modal-input { width: 100%; box-sizing: border-box; }
.modal-option input { margin: 0 4px 0 0; vertical-align: middle; }
/* openvk's "Загрузка новой фотографии" (avatar.js). */
.modal-box.avatar-dialog { width: 600px; max-width: calc(100vw - 32px); }
.modal-box.avatar-dialog .modal-body { padding: 13px; }
.avatar-crop { display: block; max-width: 100%; height: auto; margin: 4px auto; cursor: move; touch-action: none; }
/* openvk's "Граффити": a white sheet and the tools under it. */
/* "Нарисовать граффити", as openvk's #ovkDraw with Literally Canvas: a
   frame 750px wide; the tools in a grey column at the left, two to a row,
   each a square with its icon, the one picked darker; the picture in the
   middle; the colour, thickness and intensity on a grey strip under it. */
.modal-box.graffiti-dialog { width: 750px; max-width: calc(100vw - 32px); }
.graffiti-draw { display: flex; height: 530px; border: 1px solid var(--line-707070); }
.graffiti-picker { display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; width: 61px; padding: 4px; box-sizing: border-box; background: var(--back-f7f7f7); border-right: 1px solid var(--line-cfcfcf); }
.graffiti-tools { display: flex; flex-wrap: wrap; gap: 3px; }
.graffiti-tool { display: block; width: 24px; height: 24px; box-sizing: border-box; border: 1px solid transparent; background: no-repeat center; cursor: pointer; }
.graffiti-tool:hover { border-color: var(--line-cfcfcf); }
.graffiti-tool.selected { background-color: var(--back-cdcdcd); }
.graffiti-tool-pencil { background-image: url("/static/c/8da5a5933485/icons/draw-pencil.svg"); }
.graffiti-tool-eraser { background-image: url("/static/c/194b31a019c1/icons/draw-eraser.svg"); }
.graffiti-tool-fill { background-image: url("/static/c/f6ed5db50cbd/icons/fill.svg"); }
.graffiti-tool-pixel { background-image: url("/static/c/03e9aefbbdef/icons/draw-pixel.svg"); }
.graffiti-tool-undo { background-image: url("/static/c/ba8be8d45fff/icons/draw-undo.svg"); }
.graffiti-tool-redo { background-image: url("/static/c/32d6a4cbb4c6/icons/draw-redo.svg"); }
.graffiti-tool-clear { background-image: url("/static/c/5a56f448aae4/icons/draw-clear.svg"); }
.graffiti-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.graffiti-surface { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 0; overflow: hidden; background: var(--back-e4e4e4); }
.graffiti-canvas { display: block; max-width: 100%; max-height: 100%; background: var(--back-fff); cursor: crosshair; touch-action: none; }
.graffiti-canvas.pouring { cursor: cell; }
.graffiti-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 8px; background: var(--back-f7f7f7); border-top: 1px solid var(--line-cfcfcf); }
.graffiti-options label { display: flex; align-items: center; gap: 4px; }
.graffiti-options input[type="range"] { width: 80px; }
.graffiti-colors { display: flex; align-items: center; gap: 3px; }
.graffiti-swatch { width: 16px; height: 16px; border: 1px solid var(--line-bbb); cursor: pointer; }
.graffiti-swatch.picked { outline: 2px solid var(--text-2b587a); outline-offset: 1px; }
.graffiti-colors input[type="color"] { width: 26px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.modal-box.avatar-dialog.cropping { width: 487px; }
.avatar-rotate-hint { margin: 0 0 10px; }
/* The arrows that turn the picture, at its bottom right, as openvk's
   rotateButtons over Cropper.js. */
.avatar-crop-box { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.avatar-crop-box .avatar-crop { margin: 0; }
.avatar-rotate { position: absolute; right: 5px; bottom: 5px; display: flex; gap: 2px; padding: 3px 5px 3px 2px; border-radius: 3px; background: rgb(0 0 0 / 50%); }
.avatar-rotate a { width: 20px; height: 18px; background-position: center; background-repeat: no-repeat; opacity: .6; cursor: pointer; }
.avatar-rotate a:hover { opacity: 1; }
.avatar-rotate-left { background-image: url("/static/c/cdc1794d59b0/icons/rotate-left.svg"); }
.avatar-rotate-right { background-image: url("/static/c/7102f51263c5/icons/rotate-right.svg"); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 10px; background: var(--back-d4d4d4); }

/* Links under the profile photo, as openvk's profile_link. */
.profile-link { display: block; margin-top: 4px; padding: 3px 6px; background: var(--back-f2f2f2); color: var(--text-2b587a); cursor: pointer; }
.profile-link:hover { background: var(--back-e6e6e6); text-decoration: none; }

/* The blacklist page: people with "Удалить из чёрного списка". */
.blacklist-row { display: flex; justify-content: space-between; align-items: center; }
.blacklist-row .person { flex: 1; }

/* "Безопасность" of the settings: the sessions with "Завершить". */
.session-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-ececec); }
.session-device { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#end-sessions-block { margin-top: 14px; }

/* The page of a community, as openvk's: the information, members and
   wall on the left, the photo and links in a narrow column on the right
   (a person's page is the other way round). */
.club { display: flex; gap: 10px; }
.club-main { flex: 1; min-width: 0; }
.club-main .section-title { margin-left: 0; margin-right: 0; }
/* Blocks that may be hidden open with their title: not the page's first. */
.club-main > div > .section-title:first-child { margin-top: 12px; }
.club-side { width: 200px; flex-shrink: 0; }
.club-side .section-title,
.club-side > div > .section-title:first-child { margin: 10px 0 0; }
.side-text { padding: 4px; }
.people-grid.wide { grid-template-columns: repeat(6, 1fr); }

/* An item of an openvk list: "Создатель", admins. */
.avatar-item { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.avatar-item img { width: 32px; height: 32px; object-fit: cover; }

/* "От имени сообщества" and "Подпись автора" under the form. */
.post-options { margin-top: 4px; }
.wall-form > .post-options { margin-top: 10px; }
/* "Таймер": when a postponed post comes out, under the form and in the
   box that edits it. */
.post-timer, .postponed-time { margin-top: 4px; color: var(--text-555); }
.post-timer input, .postponed-time input { margin: 0 2px; font: inherit; }
.timer-remove { margin-left: 4px; color: var(--text-626262); }
.post-options label { display: block; padding: 1px 0; color: var(--text-555); }
.post-options input { vertical-align: middle; margin: 0 3px 0 0; }
.post-options .price-input { width: 70px; margin: 0 3px; }
/* The photos and documents of a paid post, until they are bought. */
.post-paid { margin: 6px 0; padding: 10px; background: var(--back-f9f9f9); border: 1px solid var(--line-d6d6d6); text-align: center; }
.post-paid-title { margin-bottom: 6px; color: var(--text-555); }
.post-paid .error { margin: 6px 0 0; }
.post-paid-note { margin: 4px 0; color: var(--text-626262); }
/* "Отображение аватаров": round small photos for whoever chose them. */
.avatars-round .post-avatar img,
.avatars-round .person img,
.avatars-round .person-cell img,
.avatars-round .avatar-item img,
.avatars-round .crp-entry--image img,
.avatars-round .crp-entry--message---av img,
.avatars-round .likers-tooltip-grid img,
.avatars-round .likers-item img { border-radius: 50%; }
/* The pages of text: "о сайте", "правила" and openvk's FAQ of "помощь". */
.plain-list { margin: 6px 0; padding-left: 28px; }
.plain-list li { margin: 3px 0; }
.faq-head { margin: 0 5px; padding: 5px; background: var(--back-f2f5f8); border: 1px solid var(--line-d7cf9e); border-bottom: 0; font-weight: bold; }
.faq-content { margin: 0 5px 10px; padding: 5px 5px 5px 10px; background: var(--back-fafafa); border: 1px solid var(--line-ddd); }
/* "Онлайн" by a name in a list of people. */
.person-online { margin-left: 8px; color: var(--text-626262); }
.club-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-ececec); }
.club-row img { width: 50px; height: 50px; object-fit: cover; }

/* The clubs pinned to the left menu, under a line, as on openvk. */
.menu-divider { margin: 4px 0 2px; border-top: 1px solid var(--line-ccc); }
/* The other accounts of the browser, in the box "Аккаунты": a small photo
   before the name. */
.account-list { min-width: 220px; }
.menu-account img { width: 16px; height: 16px; margin-right: 4px; vertical-align: -4px; }
.avatars-round .menu-account img { border-radius: 50%; }

/* "Автор: Иван Иванов" under a signed post of a community. */
.post-signature { padding: 2px 4px 4px; }
.post-signature span { color: var(--text-626262); }
.post-signature a { font-weight: bold; }

/* openvk's lists ("Мои Группы", search): the photo, the information and
   the links on the right. */
.list-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-ececec); }
.list-cover img { display: block; width: 75px; height: 75px; object-fit: cover; }
.list-info { flex: 1; min-width: 0; }
.list-info .info th { width: 70px; }
.list-actions { width: 200px; flex-shrink: 0; }
.list-actions .profile-link { margin-top: 0; margin-bottom: 2px; }

/* The grey bar of "Мои Группы": search and "Создать группу". */
.gray-bar { display: flex; gap: 8px; margin: -10px -10px 0; padding: 12px; background: var(--back-f6f6f6); }
.gray-bar-search { flex: 1; }
.summary-bar { margin: 0 -10px; padding: 11px 10px; border-bottom: 1px solid var(--line-dedede); color: var(--text-45688e); font-weight: bold; }
/* "Аккаунты": how many more may be added, beside "Добавить аккаунт", and
   the note of the account signed in among the links. */
.accounts-bar { align-items: center; }
.gray-bar-text { flex: 1; min-width: 0; color: var(--text-626262); }
.list-here { display: block; margin-bottom: 4px; color: var(--text-626262); }
.list-actions button.profile-link { box-sizing: border-box; width: 100%; border: 0; color: var(--text-2b587a); font: inherit; text-align: left; }
.list-actions button.profile-link:disabled { color: var(--text-626262); cursor: default; }
/* The links under the photo of a person and of a community: openvk's
   #profile_links, plain text one under another, each over a grey line. */
.profile-links { margin: 10px 0; }
.profile-links .profile-link {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 3px;
  border: none;
  border-bottom: 1px solid var(--line-ccc);
  background: transparent;
  font: inherit;
  text-align: left;
}
.profile-links .profile-link:hover { background: var(--back-ededed); }
.profile-links .profile-link:disabled { color: var(--text-626262); cursor: default; }

/* "Предложка": the link above the wall, the head of the suggestions and
   the buttons of an admin under each, as on openvk. */
.sugglist { margin: 5px 0 -5px; padding: 5px 9px; border-top: 1px solid var(--line-808080); background: var(--back-e6e6e6); }
.sugglist a { color: var(--text-626262); }
.suggested-count { margin: 0 0 7px; border-bottom: 1px solid var(--line-e8ebee); color: var(--text-45688e); font-size: 12px; font-weight: bold; }
.suggestion-controls { margin: 4px 0 7px; text-align: center; }
.suggestion-controls .button { margin: 0 2px; }
.publish-signed { display: block; margin-top: 4px; }
.publish-signed input { vertical-align: middle; margin: 0 3px 0 0; }

/* openvk's "Обсуждения": the list of topics (board.js), the head of a
   topic and the block on the page of a club. */
.board-search { display: flex; gap: 6px; margin-bottom: 8px; }
.board-search input { flex: 1; padding: 3px 4px; border: 1px solid var(--line-bbb); font: inherit; }
.board-count { margin: 0 0 8px; }
.topic-item { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; padding: 8px 10px; border: 1px solid var(--line-dae1e8); }
.topic-name { font-weight: bold; }
.topic-last { display: flex; gap: 6px; align-items: flex-start; min-width: 170px; }
.topic-last img { width: 30px; height: 30px; object-fit: cover; }
.topic-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; padding: 10px; background: var(--back-f2f2f2); }
.page-title .title-links { font-weight: bold; }
.topic-form textarea { width: 100%; height: 80px; }

/* openvk's "Фон страницы": the photos on the sides, behind the page,
   which the white column of the page keeps readable. Unlike openvk's
   (contain, 80 % opacity), each photo fills its half of the screen to the
   edges, whole in colour, without the soft white edges of the column:
   pale photos and white gaps around them glared beside the page. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -100;
  background-repeat: no-repeat;
  pointer-events: none;
}
.backdrop-half { position: absolute; top: 0; bottom: 0; width: 50%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.backdrop-left { left: 0; }
.backdrop-right { right: 0; }
.backdrop-dripper {
  position: relative;
  width: 800px;
  height: 100%;
  margin: auto;
  background: var(--back-fff);
}
/* A photo of one's own behind the whole page (Prime): the screen filled
   without stretching, still while the page scrolls, whole in colour; the
   white column keeps the page readable. It has sharp edges, as beside the
   side photos: a soft white glow around it lit the photo up. */
.backdrop-cover { background-size: cover; background-position: center; }

/* The settings: a scheme of the page with "Обзор" on each side. */
.backdrop-form h4 { margin: 0 0 6px; }
.backdrop-form + .backdrop-form { margin-top: 20px; }
.cover-preview { display: flex; justify-content: center; margin: 10px 0; }
.cover-preview img { max-width: 100%; max-height: 220px; border: 1px solid var(--line-d0d0d0); }
.backdrop-editor { display: flex; gap: 8px; width: 550px; height: 220px; margin: 10px auto; padding: 8px; border: 4px inset var(--line-cfcfcf); background: var(--back-f7f7f7); }
.backdrop-side { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.backdrop-side img { max-width: 100%; max-height: 150px; object-fit: contain; }
.backdrop-page { width: 220px; background: var(--back-fff); border: 1px solid var(--line-d0d0d0); }

/* openvk's grey box and its white box of upload limits ("Стикеры",
   "Документы"). */
.gray-box { padding: 12px; background: var(--back-f6f6f6); }
.gray-box-title { margin: 0 0 10px; font-size: 11px; }
.upload-limits { margin: 17px 38px 24px; }
.upload-limits > b { color: var(--text-45688e); }
.upload-limits ul { margin: 6px 0 0; padding-left: 18px; }

/* openvk's page of a person: the table under the name, "Информация" with
   "Контактная информация" and "Личная информация", and the tabs of
   "Редактировать страницу". */
.basic-info { margin-bottom: 10px; }
.profile-right .basic-info { margin: 5px 0 15px 8px; }
#about-block .section-title { margin-bottom: 0; }
.about { padding: 10px 8px 15px; }
.about-title { margin: 1px 0 0; padding: 4px 0 2px; color: var(--text-45688e); font-size: 11px; }
.about > div:not([hidden]) ~ div { margin-top: 13px; }
/* openvk's "edit_link": "[ Редактировать ]" and "[ изменить статус ]" bold and light grey. */
.about-title .edit-link, .status.empty.status-editable { margin-left: 4px; color: var(--text-c5c5c5); font-family: verdana, arial, sans-serif; font-weight: bold; }
.status.empty.status-editable { margin-left: 0; }
.about-text { white-space: pre-line; overflow-wrap: anywhere; }
#partner, #birth-year-shown { display: block; margin-top: 4px; }
.extra-field { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-ececec); }
.extra-field textarea { width: 100%; height: 60px; }
.field-remove { padding: 0 6px; color: var(--text-626262); font-size: 14px; }
.field-remove:hover { color: var(--text-c00); text-decoration: none; }
.edit-avatar { display: block; width: 200px; margin-bottom: 6px; }
.search-filter { margin: 0 0 8px; }

/* openvk's "Заполненность страницы": a grey gauge, gold when full, and
   to the owner the hints of what to fill in. */
.profile-hints { margin-top: 8px; }
.completeness-gauge { position: relative; width: 95%; height: 16px; background: var(--back-e6e6e6); border-top: 1px solid var(--line-bbb); }
.completeness-gauge > div { height: 100%; background: var(--back-d4d4d4); }
.completeness-gauge > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; line-height: 1; }
/* Past 100 % the gauge is full and takes the colour of the rating
   (ratingTier in labels.js): silver to 199 %, gold to 999 %, ruby from
   1000 %; plain colours, without shine. */
.completeness-gauge.rating-silver { border-top-color: var(--line-a7adb5); }
.completeness-gauge.rating-silver > div { background: var(--back-cfd4db); }
.completeness-gauge.rating-gold { background: var(--back-dfe3e8); border-top-color: var(--line-b9b597); }
.completeness-gauge.rating-gold > div { background: var(--back-e1d7a2); }
.completeness-gauge.rating-ruby { border-top-color: var(--line-a33a48); }
.completeness-gauge.rating-ruby > div { background: var(--back-e2a4ab); }
/* The hints of openvk, each with its picture: what to tell about yourself,
   how to be reached, what is new. */
.completeness-hints { margin-top: 12px; }
.completeness-hints a { display: flex; align-items: center; gap: 3px; margin-bottom: 2px; }
.completeness-hint::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; background-repeat: no-repeat; background-position: center; }
.hint-main::before, .hint-interests::before { background-image: url("/static/c/224937dccf6d/icons/info.svg"); }
.hint-contacts::before { background-image: url("/static/c/9a2441fd28bd/icons/document.svg"); }
.hint-status::before { background-image: url("/static/c/aaf068fd0707/icons/status.svg"); }
.hint-photo::before { background-image: url("/static/c/164547830287/icons/photo.svg"); }
/* The window of "Повысить рейтинг": the balance, the field and the cost,
   whose line is there before anything is typed, so nothing moves. */
.rating-field { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.rating-field .modal-input { width: 140px; margin: 0; }
.rating-cost { min-height: 1.4em; color: var(--text-626262); }

/* The status edited on the page, as openvk's box under the name. */
.status-editable { cursor: pointer; }
.status-edit { display: flex; gap: 4px; }
.status-edit input { flex: 1; }

/* "Все" on the right of a block's title. */
.section-title .title-link { float: right; font-weight: normal; }

/* openvk's "Понравилось N людям": a tooltip over a heart and a box. */
.likers-tooltip { position: absolute; z-index: 50; width: 196px; background: var(--back-fff); border: 1px solid var(--line-bbb); box-shadow: 0 2px 6px rgb(0 0 0 / 20%); }
.likers-tooltip-head { display: block; padding: 5px 8px; background: var(--back-f2f5f8); border-bottom: 1px solid var(--line-e0e6ec); cursor: pointer; }
.likers-tooltip-grid { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; }
.likers-tooltip-grid img { display: block; width: 30px; height: 30px; object-fit: cover; }
.likers-box { width: 460px; }
.likers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 360px; overflow-y: auto; }
.likers-item { text-align: center; overflow-wrap: anywhere; }
.likers-item img { display: block; width: 64px; height: 64px; margin: 0 auto 4px; object-fit: cover; }

/* "Поделиться": the community and the dialog to share in. */
.modal-body select { display: block; width: 100%; margin: 2px 0 6px; }
.share-signs label { display: block; margin-top: 4px; }

/* "Это архив записей" over the archive of a wall, as on openvk. */
.archive-banner { margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--line-d5ddb6); background: var(--back-f9f6e7); }
.archive-banner b { display: block; margin-bottom: 2px; }

/* openvk's bar of the archive: "Все годы", the years of the wall and
   "Действия" on the right; it stays on top while the archive scrolls. */
.archive-manager {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-ccc);
  background: var(--back-f7f7f7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.archive-years { display: flex; align-items: stretch; min-width: 0; }
.archive-year, .archive-all, .archive-manager summary {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 10px;
  color: var(--text-555);
  cursor: pointer;
}
.archive-year:hover, .archive-all:hover { text-decoration: none; }
.archive-year { border-bottom: 2px solid transparent; }
.archive-year.current { border-bottom-color: var(--line-7e7e7e); color: var(--text-000); font-weight: bold; }
.archive-all { margin-right: 2px; border-right: 1px solid var(--line-ddd); }
.archive-all.active { background: var(--back-e9e9e9); color: var(--text-333); }
.archive-more, .archive-actions { position: relative; }
.archive-actions { flex: 0 0 auto; margin-left: auto; border-left: 1px solid var(--line-ddd); }
.archive-manager summary { list-style: none; }
.archive-manager summary::-webkit-details-marker { display: none; }
.archive-manager summary::after {
  content: "";
  margin-left: 5px;
  border: 4px solid transparent;
  border-top-color: var(--line-777);
  transform: translateY(2px);
}
.archive-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 20;
  min-width: 80px;
  border: 1px solid var(--line-aaa);
  background: var(--back-fff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.archive-menu .archive-year { min-height: 30px; border-bottom: 0; }
.archive-menu .archive-year:hover { background: var(--back-e9edf1); }
.archive-actions .archive-menu { right: 0; left: auto; width: 230px; }
.archive-menu button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: var(--text-5c5c5c);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.archive-menu button:hover { background: var(--back-8b8b8b); color: var(--text-fff); }
.archive-divider { height: 1px; margin: 4px 0; background: var(--back-ddd); }

/* Long text of a post or a comment, cut short as on openvk until
   "Показать больше". */
.post-text.collapsed .post-text-body { display: block; max-height: 115px; overflow: hidden; }
.post-text-long { border-bottom: 1px solid var(--line-ececec); }
.post-text-long .post-text.collapsed { border-bottom: 0; }
.post-text-more { display: block; padding: 6px 4px 4px; cursor: pointer; }

/* "Содержит NSFW-контент": the content of a post marked as adult is
   blurred until clicked, as on openvk; whoever chose "Показывать" in the
   settings sees it as any other. */
body:not(.nsfw-shown) .post-nsfw > .post-main > .post-content,
body:not(.nsfw-shown) .shared-nsfw .shared-content { position: relative; overflow: hidden; min-height: 40px; cursor: pointer; }
body:not(.nsfw-shown) .post-nsfw > .post-main > .post-content > *,
body:not(.nsfw-shown) .shared-nsfw .shared-content > * { filter: saturate(.8) blur(28px); pointer-events: none; }
body:not(.nsfw-shown) .post-nsfw > .post-main > .post-content::after,
body:not(.nsfw-shown) .shared-nsfw .shared-content::after {
  content: "Данный пост может содержать 18+ контент";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(0, 0%, 0%, .7);
  color: var(--text-fff);
  text-align: center;
}
.post-edit .post-options { margin: 4px 0; }

/* A photo that came from an adult post: in the post, the message and the
   viewer. clip-path keeps the blur inside the photo. */
body:not(.nsfw-shown) img.photo-nsfw { filter: saturate(.8) blur(24px); clip-path: inset(0); cursor: pointer; }

/* "Рейтинг" of the settings: no gauge on the pages its owner reads. */
.rating-hidden .profile-hints, .rating-hidden .rating-raise { display: none; }

/* openvk's "Микроблог" ("Вид постов"): no grey bar over a post, the date
   down in its menu, and a line under each. */
.post-buttons { display: inline-flex; align-items: center; gap: 4px; }
.posts-microblog .post { margin-bottom: 0; padding: 5px 0; border-bottom: 1px solid var(--line-ddd); }
.posts-microblog .post-shared { border-bottom: 0; }
.posts-microblog .post-author { padding: 0 3px 3px; background: transparent; border: 0; }
.posts-microblog .post-text, .posts-microblog .post-text-long,
.posts-microblog .post-photos { padding-top: 0; border-bottom: 0; }
.posts-microblog .post-menu { font-size: 10px; }
.posts-microblog .post-menu .post-date { display: inline; margin-right: 8px; color: var(--text-626262); font-size: 10px; }
.posts-microblog .post-menu .post-date a { color: var(--text-626262); }
.posts-microblog .post-buttons .like { padding: 2px 4px; border-radius: 2px; }
.posts-microblog .post-buttons a.like:hover { background: var(--back-f0f0f0); }
.posts-microblog .comment { padding: 5px 0 0; border-top: 1px solid var(--line-ddd); border-bottom: 0; }

/* Its marks by the name of the author, shown when the post is pointed at
   (always where nothing points), and the comments under a post. */
.post-actions { float: right; display: inline-flex; gap: 7px; padding-top: 2px; opacity: 0; }
.post:hover > .post-main > .post-author .post-actions { opacity: 1; }
@media (hover: none) { .post-actions { opacity: 1; } }
.post-action { display: inline-flex; cursor: pointer; }
.post-action svg { width: 11px; height: 10px; fill: var(--text-2b587a); opacity: .4; }
.post-action:hover svg,
.post-action.on svg { opacity: .9; }
.post-comments { margin-top: 4px; }
.post-comments-more { display: block; padding: 4px 6px; background: var(--back-f0f0f0); font-size: 10px; text-align: center; }
.post-comments .comment:first-child { border-top: 0; }
.post-comment-form { display: flex; align-items: flex-start; gap: 5px; padding: 5px 0 0; }
.post-comment-text { flex: 1; min-height: 22px; height: 22px; padding: 3px 4px; resize: none; box-sizing: border-box; font: inherit; }

/* The news as openvk's feed (feed.js, the option feed of postNode): the
   old post ends in the menu of oldpost.latte — words, "Комментарии (N)",
   "Поделиться (N)", the heart on the right with its number in its colour;
   "Микроблог" shows its marks faintly all the time, "Посмотреть остальные
   комментарии" as a grey bar and the field "Написать" in a grey band,
   its button only while the field is in use. */
.feed-posts .post-menu { min-height: 12px; padding: 4px; }
.feed-posts .post-menu .like-count { color: var(--text-2b587a); font-size: 10px; }
.feed-posts .post-pinned { color: var(--text-888); }
.feed-posts .post-actions { opacity: 1; }
.feed-posts .post-action svg { opacity: .15; }
.feed-posts .post-action:hover svg,
.feed-posts .post-action.on svg { opacity: .4; }
.feed-posts .post-comments-more { height: 30px; padding: 0; background: var(--back-eee); font-size: 11px; line-height: 28px; }
.feed-posts .post-comments-more:hover { background: var(--back-e5e5e5); text-decoration: none; }
.feed-posts .post-comment-form { flex-wrap: wrap; margin-top: 5px; padding: 5px 7px; background: var(--back-eee); border-top: 1px solid var(--line-ccc); border-bottom: 1px solid var(--line-ccc); }
.feed-posts .post-comment-text { flex-basis: 100%; }
.feed-posts .post-comment-form:not(:focus-within):has(.post-comment-text:placeholder-shown) .button { display: none; }

/* openvk's polls (poll.js): the block under the words of a post, with the
   options to choose from or the results as bars. */
.poll { margin: 6px 4px; padding: 8px; border: 1px solid var(--line-e3e3e3); }
.poll h4 { margin: 0 0 6px; font-size: 11px; color: var(--text-45688e); overflow-wrap: anywhere; }
.poll-option { padding: 2px 0; }
.poll-option label { cursor: pointer; overflow-wrap: anywhere; }
.poll-option input { margin: 0 3px 0 0; vertical-align: middle; }
.poll-option input:disabled + * , .poll-option input:disabled { cursor: default; }
.poll-cast { margin-top: 8px; }
.poll-retract { float: right; margin-left: 8px; }
.poll-result { margin-bottom: 5px; }
.poll-result-name { overflow-wrap: anywhere; }
.poll-result-name.chosen { font-weight: bold; }
a.poll-result-name { cursor: pointer; }
.poll-result-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.poll-result-bar { position: relative; flex: 1; height: 13pt; background: var(--back-f7f7f7); }
.poll-result-fill { height: 100%; background: var(--back-d9e1ea); }
.poll-result-count { position: absolute; inset: 0; line-height: 13pt; text-align: center; color: var(--text-7d96af); }
.poll-result-percent { width: 32px; text-align: right; }
.poll-meta { margin-top: 8px; color: var(--text-555); }
.poll-kind { color: var(--text-626262); font-style: oblique; }

/* "Опрос" attached to a post being written, and the box "Новый опрос". */
.post-has-poll { margin-top: 6px; padding: 4px 6px; border: 1px solid var(--line-e3e3e3); background: var(--back-f7f7f7); overflow-wrap: anywhere; }
.poll-remove { margin-left: 4px; color: var(--text-626262); font-weight: bold; cursor: pointer; }
.poll-remove:hover { color: var(--text-555); text-decoration: none; }
.poll-editor input[type="text"] { display: block; width: 100%; box-sizing: border-box; }
.poll-editor-options { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.poll-editor-adder { color: var(--text-626262); }
.poll-editor label input { margin: 0 3px 0 0; vertical-align: middle; }
.poll-editor .poll-editor-expires select { display: inline-block; width: auto; margin: 0; }

/* "Настройки ленты": the box with its two tabs and the ignored sources. */
.feed-settings-box { width: 440px; }
.modal-tabs { margin: -14px -12px 8px; padding-top: 6px; }
.modal-tabs a { cursor: pointer; }
.feed-settings { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.feed-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-settings-row select { display: inline-block; width: 70px; margin: 0; }
.ignored-list { max-height: 260px; overflow-y: auto; }
.ignored-row { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px solid var(--line-eee); cursor: pointer; }
.ignored-row:last-child { border-bottom: 0; }
.ignored-row img { width: 30px; height: 30px; object-fit: cover; }
.ignored-row a { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: bold; }
.avatars-round .ignored-row img { border-radius: 50%; }

/* "Подарки", as openvk's: a gift is laid out as a post — who sent it, the
   picture in the middle with what was written under it; "Выбрать подарок"
   is a row a collection, its gifts in a grid, the price showing on the
   gift pointed at ("Бесплатно" always). */
.gift-pic { display: block; width: 96px; height: 96px; }
.user-gift { padding: 15px; text-align: center; }
.user-gift .gift-pic { width: 195px; height: auto; margin: 0 auto; }
.user-gift .gift-comment { margin-top: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.gift-cat-row { padding: 10px 0; }
.gift-cat-row:first-child { padding-top: 5px; }
.gift-cat-row:not(:last-child) { border-bottom: 1px solid var(--line-ddd); }
.gift-cat-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; min-height: 23px; margin: 0 0 4px; }
.gift-cat-header { margin: 0; padding: 4px 0 3px; color: var(--text-45688e); font-size: 11px; }
.gift-grid { display: flex; flex-wrap: wrap; width: calc(100% + 16px); margin: 0 -8px; }
.gift-sel { position: relative; box-sizing: border-box; width: 122px; padding: 8px 10px; border-radius: 3px; text-align: center; cursor: pointer; }
.gift-sel:hover { text-decoration: none; }
.gift-sel .gift-pic { width: 102px; height: 102px; object-fit: contain; border-radius: 3px; }
.gift-sel:hover .gift-pic { opacity: .8; }
.gift-sel .gift-price { position: absolute; bottom: 0; left: 0; box-sizing: border-box; width: 102px; margin: 0 10px; padding: 3px 4px 4px; border-radius: 3px; background: var(--back-f0f0f0); color: var(--text-333); visibility: hidden; }
.gift-sel:hover .gift-price, .gift-sel .gift-price.free { visibility: visible; }
.gift-send .modal-body { gap: 0; }
.gift-send-top { margin: 0 0 12px; text-align: center; }
.gift-send-top .gift-pic { width: auto; height: auto; max-width: 256px; max-height: 200px; min-height: 100px; margin: 0 auto 8px; }
.gift-send-cost { color: var(--text-555); font-size: 12px; }
.gift-send-cost b { color: var(--text-333); }
.gift-send-balance { margin-top: 2px; color: var(--text-626262); }
.gift-send-field { margin: 0 0 12px; }
.gift-send-field > b { display: block; margin: 0 0 5px; }
.gift-send-field textarea { width: 100%; height: 60px; resize: vertical; }
.gift-recipient { display: flex; flex-wrap: wrap; gap: 3px; min-height: 24px; padding: 2px; box-sizing: border-box; border: 1px solid var(--line-bbb); background: var(--back-fff); }
/* The block of a page: five of the newest, as wide as the column. */
.gift-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px 5px; }
.gift-row .gift-pic { width: 100%; height: auto; aspect-ratio: 1; }
/* openvk's gift_limit shows on pointing, over the price; a sold out
   gift is dimmed and takes no click. */
.gift-sel .gift-limit { position: absolute; bottom: 21px; left: 0; box-sizing: border-box; width: 102px; margin: 0 10px; padding: 3px 4px 4px; border-radius: 3px; background: var(--back-f0f0f0); color: var(--text-333); visibility: hidden; }
.gift-sel:hover .gift-limit { visibility: visible; }
.gift-sel.disabled { opacity: .5; cursor: not-allowed; }
.gift-sel.disabled:hover .gift-pic { opacity: 1; }
/* "Получатель:" of the box: the people chosen and a field in one frame,
   the friends offered under it. */
.gift-recipient { position: relative; align-items: center; cursor: text; }
.gift-tokens { display: contents; }
.gift-token { display: inline-flex; gap: 4px; align-items: center; padding: 1px 5px 2px; border-radius: 2px; background: var(--back-3e3e3e); color: var(--text-fff); font-weight: bold; line-height: 15px; }
.gift-token-remove { color: var(--text-ccc); cursor: pointer; }
.gift-token-remove:hover { color: var(--text-fff); text-decoration: none; }
.modal-body input.gift-recipient-input { flex: 1; min-width: 120px; padding: 2px; border: 0; outline: none; }
.gift-choices { position: absolute; top: 100%; left: -1px; right: -1px; z-index: 10; max-height: 180px; overflow-y: auto; border: 1px solid var(--line-bbb); background: var(--back-fff); }
.gift-choices[hidden] { display: none; }
.gift-choice { display: flex; gap: 8px; align-items: center; padding: 3px 5px; cursor: pointer; }
.gift-choice:hover { background: var(--back-f2f2f2); text-decoration: none; }
.gift-choice img { width: 24px; height: 24px; object-fit: cover; }
.gift-send-name { margin: 0 0 2px; font-weight: bold; }
.gift-send .error { white-space: pre-line; }
/* openvk's "Подтверждение": the gift and the form under it. */
.gift-confirm { padding: 10px 0; text-align: center; }
.gift-confirm-pic { width: 256px; height: 256px; object-fit: contain; border-radius: 3px; }
.gift-confirm-form { width: 65%; margin: 10px auto 0; text-align: left; }
.gift-confirm-text { display: block; width: 100%; height: 65px; box-sizing: border-box; resize: vertical; }
.gift-confirm-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
/* The shop of gifts ("Подарки" of the menu), laid out as the page of a
   person: the balance and one's gifts beside, a block for each
   collection. */
.collectible.thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.collectible.thumb .collectible-pattern { font-size: 11px; }
.collectible.thumb .collectible-number { right: 3px; bottom: 3px; padding: 0 3px; font-size: 8px; }
/* Collectible gifts: a card of the gift's own colours (painted by the
   script), its symbol scattered over the backdrop and the model on top. */
.collectible { position: relative; overflow: hidden; width: 120px; height: 120px; border-radius: 10px; margin: 0 auto; }
.collectible.large { width: 240px; height: 240px; border-radius: 16px; }
.collectible-pattern { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; font-size: 16px; line-height: 1; transform: rotate(-12deg) scale(1.2); user-select: none; }
.collectible.large .collectible-pattern { font-size: 29px; }
.collectible-pattern span:nth-child(odd) { transform: translateY(40%); }
.collectible-model { position: absolute; left: 12%; top: 10%; width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.collectible-number { position: absolute; right: 6px; bottom: 5px; padding: 1px 5px; border-radius: 8px; background: rgba(0, 0, 0, .35); color: var(--back-fff); font-size: 9px; font-weight: bold; }
.collectible.large .collectible-number { right: 10px; bottom: 9px; font-size: 12px; padding: 2px 8px; }
.collectible-caption { margin-top: 8px; }
.collectible-done { text-align: center; }
.collectible-lead { margin: 8px 0; color: var(--text-626262); }
.collectible-page { display: flex; gap: 20px; padding: 10px 0; }
.collectible-side { flex: none; }
.collectible-info { flex: 1; min-width: 0; }
.collectible-title { margin: 0 0 8px; font-size: 14px; color: var(--text-45688e); }
.collectible-traits { border-collapse: collapse; margin: 0 0 8px; }
.collectible-traits th { width: 120px; padding: 3px 8px 3px 0; color: var(--text-626262); font-weight: normal; text-align: left; vertical-align: top; }
.collectible-traits td { padding: 3px 0; }
.collectible-info .section-title { margin: 12px 0 8px; }
.collectible-sale { margin: 8px 0; font-size: 13px; }
.collectible-form { margin: 8px 0; }
.collectible-form h4 { margin: 0 0 6px; }
.collectible-form label { display: inline-block; margin: 0 6px 6px 0; }
.collectible-form input[type=number] { width: 90px; }
.collectible-form .hint { margin-top: 4px; }
.collectible-actions .collectible-form:not(:last-child) { padding-bottom: 10px; border-bottom: 1px solid var(--line-ddd); }
.collectible-history { padding: 6px 0; border-bottom: 1px solid var(--line-ddd); }
.collectible-history .post-date { margin-right: 8px; }
.collectible-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 0; }
.collectible-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 4px; text-align: center; }
.collectible-tile:hover { background: var(--back-f7f7f7); text-decoration: none; }
.collectible-name { color: var(--text-45688e); font-weight: bold; }
.market-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }

/* Stickers: one in a message, the panel under the form and the shop. */
/* A sticker keeps its shape: one of the studio, a photo of any shape,
   is fitted into the square, not stretched over it. */
.sticker { display: block; width: 128px; height: 128px; margin: 2px 0; object-fit: contain; }
/* A sticker of any shape starts at the top left corner of its square, so
   that every one comes up at the same place. */
.im-message img.sticker { width: 128px; height: 128px; object-fit: contain; object-position: left top; border-radius: 0; }
.sticker-panel { margin: 8px 0 0; padding: 8px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line-dedede); background: var(--back-fff); }
.sticker-pack { margin: 0 0 8px; }
.sticker-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.sticker-grid .sticker { width: 72px; height: 72px; margin: 0; }
.sticker-pick { display: block; padding: 2px; cursor: pointer; }
.sticker-panel.sending .sticker-pick { opacity: .5; cursor: progress; }
.sticker-pick:hover { background: var(--back-f6f6f6); }
/* The smileys of the site (SMILEYS in labels.js): the old codes of a
   message as pictures; its emoji are openvk's (emoji/emoji.css). */
.smiley, .im-message img.smiley, .crp-entry img.smiley { display: inline-block; width: 18px; height: 18px; margin: 0 1px; vertical-align: -4px; object-fit: contain; border-radius: 0; }

.sticker-store { display: block; padding: 4px 0 0; border-top: 1px solid var(--line-dedede); }
/* The shop, as openvk's: a grey bar of sections with the search under the
   tabs, then the packs as cards four a row; a card opens the box of its
   pack. */
.mb-tabs { margin: -10px -10px 0; padding: 10px; border-bottom: 1px solid var(--line-dedede); background: var(--back-f6f6f6); }
.mb-tab-row { margin: 0 0 8px; }
.mb-tab { display: inline-block; margin-right: 10px; padding: 5px 9px; border-radius: 2px; font-weight: bold; }
.mb-tab:hover { background: var(--back-e4e4e4); text-decoration: none; }
.mb-tab.active, .mb-tab.active:hover { background: var(--back-707070); color: var(--text-fff); }
.mb-tabs input[type="search"] { box-sizing: border-box; width: 100%; padding: 3px 4px; border: 1px solid var(--line-bbb); font: inherit; }
.stickers-page > .tabs, .stickers-page > .mb-tabs { margin-bottom: 0; }
.stickers-page > .mb-tabs { margin-top: 0; }
.sticker-summary { display: flex; justify-content: space-between; align-items: center; }
.stickers-page .stickers-empty { margin: 0 -10px -10px; }
.stickers-pages { display: flex; justify-content: flex-end; margin-top: 8px; }
.stickers-pages a { display: block; padding: 4px 5px; border-top: 3px solid transparent; }
.stickers-pages a:hover { border-top-color: var(--line-bbb); background: var(--back-e6e6e6); }
.stickers-pages a.active { border-top-color: var(--line-8b8b8b); font-weight: bold; }
.sticker-summary .button { font-weight: normal; }
.stickers-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stickers-pack-card { display: flex; flex-direction: column; flex: 0 0 calc((100% - 24px) / 4); max-width: calc((100% - 24px) / 4); box-sizing: border-box; padding: 8px; border: 1px solid var(--line-c0cad5); border-radius: 2px; background: var(--back-fff); }
.stickers-pack-card:hover { border-color: var(--line-8b8b8b); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.stickers-pack-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; margin-bottom: 6px; overflow: hidden; border-radius: 2px; background: var(--back-f7f7f7); }
.stickers-pack-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stickers-pack-thumb-empty { width: 100%; height: 100%; background: var(--back-f0f0f0); }
.stickers-pack-name { overflow: hidden; font-size: 12px; font-weight: bold; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.stickers-pack-name a, .stickers-pack-price.paid { color: var(--text-2a5885); }
.stickers-pack-author { margin-top: 2px; font-size: 11px; overflow: hidden; color: var(--text-626262); text-overflow: ellipsis; white-space: nowrap; }
.stickers-pack-author a { color: var(--text-626262); text-decoration: underline; }
.stickers-pack-desc { display: -webkit-box; height: 42px; font-size: 11px; margin-top: 3px; overflow: hidden; color: var(--text-555); line-height: 1.25; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.stickers-pack-footer { margin-top: auto; padding-top: 8px; }
.stickers-pack-price { font-weight: bold; font-size: 11px; }
.stickers-pack-price:hover { text-decoration: none; }
.stickers-pack-price.free { color: var(--text-43a047); }
.stickers-pack-price.purchased { color: var(--text-626262); }
.stickers-pack-installs { margin-top: 4px; color: var(--text-555); font-size: 10px; }
.stickers-pack-footer .button { box-sizing: border-box; width: 100%; margin-top: 6px; padding: 2px 4px; font-size: 10px; }
/* The box "Информация о наборе": the cover by what the pack is, how many
   stickers and the link, then the stickers five a row. */
.modal-box.stickers-pack-modal { width: 540px; max-width: 95vw; }
.stickers-pack-modal .modal-body { gap: 12px; }
.stickers-pack-modal .modal-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.stickers-modal-close { padding: 0 4px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.stickers-modal-header { display: flex; gap: 14px; align-items: flex-start; }
.stickers-modal-cover { display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 108px; height: 108px; padding: 4px; overflow: hidden; border: 1px solid var(--line-e0e6ec); border-radius: 4px; background: var(--back-fafafa); }
.stickers-modal-cover img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stickers-modal-info { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; }
.stickers-modal-title { color: var(--text-333); font-size: 16px; font-weight: bold; line-height: 1.25; overflow-wrap: anywhere; }
.stickers-modal-author, .stickers-modal-author a { color: var(--text-626262); font-size: 11px; }
.stickers-modal-desc { margin-bottom: 6px; color: var(--text-464646); font-size: 12px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.stickers-modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.stickers-modal-subbar { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 -4px; }
.stickers-modal-count { color: var(--text-626262); font-size: 11px; }
.stickers-modal-copy { padding: 0; border: 0; background: transparent; color: var(--text-2b587a); font: inherit; font-size: 11px; cursor: pointer; }
.stickers-modal-copy:hover { text-decoration: underline; }
.stickers-modal-grid-wrap { max-height: 290px; padding: 4px 0; overflow-y: auto; }
.stickers-modal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stickers-modal-item { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; box-sizing: border-box; padding: 4px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; user-select: none; }
.stickers-modal-item:hover { border-color: var(--line-bbb); }
.stickers-modal-item .sticker { width: 100%; height: 100%; margin: 0; pointer-events: none; }
.stickers-hold-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(512px, 85vw);
  height: min(512px, 85vh);
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
}
/* The studio is a form of openvk's settings (container_gray): blue
   headings over a table in the middle, the stickers as photos of 2007 —
   small white frames with "Удалить" under them — and "удалить набор"
   in the white strip at the foot. */
.container-gray.sticker-studio { margin: 0 -10px -10px; }
.sticker-pack-form input[type="text"], .sticker-pack-form textarea { box-sizing: border-box; width: 100%; }
.sticker-pack-form input[type="number"] { width: 70px; }
.sticker-studio-hint, .sticker-studio-add { box-sizing: border-box; width: 60%; margin: 6px auto; padding: 0 7px; color: var(--text-626262); }
.sticker-studio-grid { display: flex; flex-wrap: wrap; gap: 6px; box-sizing: border-box; width: 60%; margin: 0 auto; padding: 0 7px; }
.sticker-studio-grid:empty { display: none; }
.sticker-studio-item { display: flex; flex-direction: column; align-items: center; box-sizing: border-box; width: 86px; padding: 5px 4px 4px; gap: 3px; border: 1px solid var(--line-dae1e8); background: var(--back-fff); }
.sticker-studio-item img, .sticker-studio-item .sticker, .sticker-studio-item .attachment-loading { width: 64px; height: 64px; margin: 0; object-fit: contain; background: var(--back-fff); }

/* "Голоса" of the settings, as openvk's: what votes are on the left, the
   account on the right; the serial number of a voucher in four fields. */

/* "Prime" (/prime): tabs as "Голоса"; the periods are radios one under
   another with their prices, the perks lines of "подпись: значение". */
.prime-info, .prime-perks { margin: 0 0 12px; }
.prime-info th, .prime-perks th { width: 130px; }
.prime-form { margin: 0 0 12px; }
.prime-periods .prime-period { display: block; padding: 2px 0; cursor: pointer; }
.prime-saving { color: var(--text-626262); }
.prime-check { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 12px; }
.prime-check input { flex: none; margin: 1px 0 0; }
.prime-check label { line-height: 1.4; }
#style-part .prime-swatches { margin: 6px 0 12px; }
.prime-style-save { margin: 12px 0 4px; }

.finance { display: flex; gap: 20px; align-items: flex-start; }
.finance-about { flex: 1; }
.finance-about p { margin: 0 0 8px; }
.finance-transfer { text-align: center; }
.finance-balance { width: 140px; font-weight: bold; text-align: center; }
.finance-votes { height: 60px; overflow: hidden; font-size: 47px; font-weight: normal; line-height: 60px; white-space: nowrap; }
.finance-rate { font-weight: bold; }
.finance-rubles { color: var(--text-626262); font-weight: normal; }

/* "Бизнес": the economy of the enterprises in tables, as the browser
   games of the 2000s had it — the balance a line over the tabs, grey
   heads of columns, numbers at the right, forms in a line. */
/* The pixel pictures of the enterprises and the goods stay sharp at any size. */
/* The hour going on in the report: it grows every second. */

.biz-subtitle { margin: 12px 0 6px; padding: 0 0 2px; border-bottom: 1px solid var(--line-e8ebee); color: var(--text-45688e); font-weight: bold; }

/* A strip filled in part: the level, the storage, a share. */

/* Tables of fixed columns: the numbers at the right, of one width. */

/* Forms: a grey label of one width at the left, the fields at the right. */

/* "Мои предприятия": tiles of the enterprises. */

/* "Как начать": three numbered steps with pictures. */

/* Founding: the kinds by tiers as picture buttons, and what the chosen does. */

/* The card of an enterprise and of a good: the picture, the name, the level. */
/* A hint under a form stands under its fields. */

/* The orders of a good: buying and selling side by side. */

/* "Справочник": the chains of pictures from the raw materials to the city. */
.modal-body .hint { margin: 0; }

/* The controls of "Бизнес" and "Акции" (controls.js): a mini window under
   what was clicked, numbers with "−" and "+", quick amounts, a slider, a
   switch of choices and a strip filled to a part — glossy, as the browser
   games of the 2000s drew them. */
.pop { position: absolute; z-index: 60; width: 300px; max-width: calc(100vw - 16px); background: var(--back-fff); border: 1px solid var(--line-707070); box-shadow: 2px 3px 0 var(--line-aaa); }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 4px 8px; background: linear-gradient(var(--back-707070), var(--back-595959)); color: var(--text-fff); font-weight: bold; text-shadow: 0 1px 0 var(--text-333); }
.pop-close { padding: 0 4px; background: none; border: 0; color: var(--text-fff); font: bold 14px tahoma, verdana, sans-serif; line-height: 14px; cursor: pointer; }
.pop-close:hover { color: var(--text-e8e8e8); }
.pop .error { margin: 6px 8px 0; }
.pop-body { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.pop-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pop-label { width: 70px; color: var(--text-626262); }
.pop-note { color: var(--text-555); line-height: 15px; }
.pop-note:empty { display: none; }
.pop-actions { display: flex; gap: 6px; justify-content: flex-end; padding: 6px 8px; margin: 2px -8px -8px; background: var(--back-f2f2f2); border-top: 1px solid var(--line-ddd); }
.pop .biz-subtitle { margin: 4px 0 0; }
.pop-anchor { outline: 1px solid var(--line-333); }

.stepper { display: inline-flex; align-items: stretch; height: 24px; }
.step-button { width: 24px; padding: 0; background: linear-gradient(var(--back-fff), var(--back-e4e4e4)); border: 1px solid var(--line-aaa); color: var(--text-333); font: bold 13px tahoma, verdana, sans-serif; cursor: pointer; }
.step-button:first-child { border-radius: 2px 0 0 2px; }
.step-button:last-child { border-radius: 0 2px 2px 0; }
.step-button:hover { background: linear-gradient(var(--back-fff), var(--back-dae1e8)); }
.step-button:active { background: var(--back-dae1e8); box-shadow: inset 0 1px 2px var(--line-8b8b8b); }
input.step-value { width: 48px; margin: 0 -1px; border-color: var(--line-aaa); font-weight: bold; text-align: center; }
input.step-value.wide { width: 80px; }

.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 2px 7px; background: linear-gradient(var(--back-fff), var(--back-ededed)); border: 1px solid var(--line-bbb); border-radius: 9px; color: var(--text-2b587a); font: 11px tahoma, verdana, sans-serif; cursor: pointer; }
.chip:hover { border-color: var(--line-8b8b8b); background: var(--back-f2f5f8); }
.chip:active { background: var(--back-dae1e8); }

.slider { width: 100%; margin: 2px 0; accent-color: var(--back-3e3e3e); }

.segmented { display: inline-flex; }
.segment { padding: 4px 10px; background: linear-gradient(var(--back-fff), var(--back-e4e4e4)); border: 1px solid var(--line-aaa); color: var(--text-333); font: 11px tahoma, verdana, sans-serif; cursor: pointer; }
.segment + .segment { border-left: 0; }
.segment:first-child { border-radius: 2px 0 0 2px; }
.segment:last-child { border-radius: 0 2px 2px 0; }
.segment.active { background: linear-gradient(var(--back-707070), var(--back-595959)); border-color: var(--line-595959); color: var(--text-fff); font-weight: bold; text-shadow: 0 1px 0 var(--text-333); }
.segment.buy.active { background: var(--back-3f8f35); border-color: var(--back-3f8f35); }
.segment.sell.active { background: var(--back-d23a32); border-color: var(--back-d23a32); }

.meter { position: relative; display: inline-block; width: 100%; min-width: 60px; height: 14px; overflow: hidden; vertical-align: middle; background: var(--back-fff); border: 1px solid var(--line-aaa); box-shadow: inset 0 1px 0 var(--line-e3e3e3); }
.meter-fill { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(var(--back-8b8b8b), var(--back-3e3e3e)); }
.meter-fill.good { background: var(--back-3f8f35); }
.meter-fill.warn { background: var(--back-c9cfd6); }
.meter-fill.bad { background: var(--back-d23a32); }
.meter-text { position: relative; display: block; color: var(--text-000); font-size: 10px; font-weight: bold; line-height: 14px; text-align: center; }

/* The charts (charts.js): a canvas in a white frame and the box of the
   prices of the hour under the pointer. */
.chart-box { position: relative; margin: 4px 0 12px; padding: 4px; background: var(--back-fff); border: 1px solid var(--line-dae1e8); }
.chart { display: block; width: 100%; cursor: crosshair; touch-action: pan-y; }
.chart-tip { position: absolute; top: 8px; padding: 4px 6px; background: var(--back-fff); border: 1px solid var(--line-707070); box-shadow: 1px 2px 0 var(--line-ccc); font-size: 10px; line-height: 13px; white-space: pre; pointer-events: none; }
.spark { display: block; height: 26px; }

/* "Акции": the stock exchange. */

/* The running tape of prices, dark as the screens of an exchange. */
.ticker { overflow: hidden; margin: 0 0 10px; padding: 4px 0; background: linear-gradient(var(--back-444), var(--back-3e3e3e)); border: 1px solid var(--line-2f2f2f); }
.ticker-track { display: inline-flex; gap: 22px; padding-right: 22px; white-space: nowrap; }

.ticker-item { display: inline-flex; gap: 5px; align-items: center; color: var(--text-fff); }
.ticker-item:hover { text-decoration: none; }
.ticker-item b { color: var(--text-e8e8e8); }


.tender-sell { display: flex; gap: 4px; align-items: center; }

/* The order book: who sells above, who buys below, a strip of the shares
   behind each price. */
.book { margin: 4px 0 10px; border: 1px solid var(--line-dae1e8); }
.book-head, .book-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 3px 8px; }
.book-head { background: var(--back-f2f2f2); color: var(--text-626262); }
.book-row { position: relative; width: 100%; background: var(--back-fff); border: 0; border-top: 1px solid var(--line-eee); font: 11px tahoma, verdana, sans-serif; text-align: left; cursor: pointer; }
.book-row:hover { background: var(--back-f2f5f8); }
.book-row > span { position: relative; }
.book-fill { position: absolute !important; top: 0; right: 0; bottom: 0; }
.book-row.ask .book-fill { background: var(--back-ffefe8); }
.book-row.bid .book-fill { background: var(--back-dcefd9); }
.book-row.ask .book-price { color: var(--text-d94c4c); font-weight: bold; }
.book-row.bid .book-price { color: var(--text-43a047); font-weight: bold; }
.book-who { color: var(--text-626262); }
.book-spread { padding: 4px 8px; background: var(--back-f9f6e7); border-top: 1px solid var(--line-d7cf9e); border-bottom: 1px solid var(--line-d7cf9e); color: var(--text-58462a); font-weight: bold; text-align: center; }
.book .hint { margin: 0; padding: 4px 8px; border-top: 1px solid var(--line-eee); }

/* The panel of a deal: green to buy, red to sell. */

/* Recipient picker for transfers and Prime gifts. */
.recipient-options { max-height: 260px; overflow-y: auto; border: 1px solid var(--line-bbb); border-top: 0; background: var(--back-fff); }
.recipient-options-title { padding: 3px 6px; background: var(--back-f2f2f2); color: var(--text-626262); }
.recipient-option { display: flex; gap: 6px; align-items: center; padding: 3px 6px; border-top: 1px solid var(--line-e8e8e8); color: inherit; }
.recipient-option:hover { background: var(--back-ededed); text-decoration: none; }
.recipient-option img { flex: none; width: 30px; height: 30px; object-fit: cover; }
.recipient-option b { color: var(--text-2b587a); }
.voucher-keys { margin: 10px 0; }
.voucher-keys input.voucher-key { width: 60px; text-align: center; text-transform: uppercase; }
.voucher-code { font-family: "Courier New", monospace; white-space: nowrap; }
.votes-transfer .modal-body p { margin: 0; }
.votes-transfer .modal-body label { display: flex; flex-direction: column; gap: 3px; }
.list-table { width: 100%; margin-bottom: 10px; border-collapse: collapse; }
.list-table th { padding: 4px 6px; background: var(--back-e6e6e6); color: var(--text-555); font-weight: normal; text-align: left; vertical-align: bottom; }
.list-table td { padding: 5px 6px; border-bottom: 1px solid var(--line-ececec); }

/* Documents ("Мои Документы" openvk): a row with the format in a grey
   box, the name and "date, size". */
.doc-list { padding: 4px 0; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 7px; border-bottom: 1px solid var(--line-eee); }
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--back-f7f7f7); }
.doc-icon {
  flex: none;
  width: 50px;
  padding: 3px 0;
  background: var(--back-e6e6e6);
  border-radius: 2px;
  color: var(--text-626262);
  font-weight: bold;
  text-align: center;
  text-transform: lowercase;
}
.doc-icon:hover { text-decoration: none; }
.doc-content { flex: 1; min-width: 0; }
.doc-name { display: block; overflow: hidden; color: var(--text-000); font-weight: bold; text-overflow: ellipsis; white-space: nowrap; }
.doc-info { color: var(--text-626262); }
.doc-tools { display: flex; gap: 8px; }
.doc-remove { font-size: 14px; color: var(--text-626262); }
.doc-attached { margin-top: 6px; }
.doc-attached .doc-item { padding: 4px; }

/* Songs, as openvk's audioEntry (Audio/player.latte, audios.css): a small
   grey ▶ (‖ while its song plays), "Исполнитель — Название" and the
   length, which gives way under the pointer to the grey signs of openvk's
   sprite — "+" or "×" of one's music, the pencil of one's upload, "⋯";
   under the row that plays lie the thin lines of the song and of the
   loudness. On "Аудиозаписи", whose big player has the lines, the row
   that plays is dark instead. */
.audio-list { padding: 2px 0; }
.audio-row { border-radius: 2px; }
.audio-row:hover { background: var(--back-eef1f4); }
.audio-entry { position: relative; display: flex; gap: 9px; align-items: center; height: 17px; padding: 9px; }
.audio-play { flex: none; width: 16px; height: 16px; padding: 0; border: 0; background: url("/static/c/8e279b0bfae8/im/play_buttons.gif") no-repeat 0 0; cursor: pointer; }
.audio-row.playing:not(.paused) .audio-play { background-position: 0 -16px; }
.audio-label, .audio-pick { flex: 1; min-width: 0; overflow: hidden; color: var(--text-000); line-height: 14px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.audio-label:hover, .audio-pick:hover { text-decoration: none; }
.audio-artist { color: var(--text-464646); }
.audio-timer { position: relative; display: flex; flex: none; align-items: center; justify-content: flex-end; min-width: 28px; height: 17px; }
.audio-time { color: var(--text-6b6b6b); font-size: 10px; font-variant-numeric: tabular-nums; }
.audio-site { font-size: 9px; }
.audio-broken { display: none; color: var(--text-6b6b6b); font-size: 10px; font-style: italic; white-space: nowrap; }
.audio-row.broken .audio-label, .audio-row.broken .audio-artist { color: var(--text-aaa); }
.audio-row.broken .audio-time { display: none; }
.audio-row.broken .audio-broken { display: inline; }
.audio-row.broken .audio-play { opacity: 0.6; }
.audio-icons { position: absolute; top: 0; right: 0; display: none; flex-direction: row-reverse; gap: 5px; align-items: center; height: 100%; padding-left: 6px; background: var(--back-eef1f4); }
.audio-row:hover .audio-icons, .audio-icons:focus-within { display: flex; }
.audio-icon { flex: none; width: 11px; height: 11px; padding: 0; border: 0; background: url("/static/c/c83dc9f31615/im/audios_controls.png") no-repeat; cursor: pointer; }
.audio-icon:disabled { opacity: 0.5; cursor: default; }
.audio-icon-add { background-position: -80px -52px; }
.audio-icon-remove { background-position: -108px -52px; }
.audio-icon-edit { background-position: -137px -51px; }
.audio-more { width: 14px; background: none; color: var(--text-828282); font: bold 11px/11px tahoma, verdana, arial, sans-serif; }
.audio-more:hover { color: var(--text-333); }
.audio-sub { display: none; gap: 16px; margin-top: -5px; padding: 0 12px 5px 8px; }
.audio-row.playing .audio-sub { display: flex; }
.audio-sub-seek { flex: 1; min-width: 0; }
.audio-sub-volume { flex: none; width: 81px; }
.audio-page-list .audio-row.playing .audio-sub { display: none; }
.audio-page-list .audio-row.playing { background: var(--back-636363); outline: 1px solid var(--line-555); outline-offset: -1px; }
.audio-page-list .audio-row.playing:hover { background: var(--back-595959); }
.audio-page-list .audio-row.playing :is(.audio-label, .audio-artist, .audio-time, .audio-more) { color: var(--text-fff); }
.audio-page-list .audio-row.playing .audio-icons { background: var(--back-595959); }
.audio-page-list .audio-row.playing .audio-icon-add { background-position: -94px -52px; }
.audio-page-list .audio-row.playing .audio-icon-remove { background-position: -108px -67px; }
.audio-page-list .audio-row.playing .audio-icon-edit { background-position: -152px -51px; }
.audio-attached { margin-top: 6px; }
.audio-refused { margin-bottom: 8px; padding: 8px; border: 1px solid var(--line-ddd09a); background: var(--back-f9f6e7); }

/* openvk's selectableTrack: a thin dark line, a small dark block on it
   where the song (or the loudness) is, and over the pointer the time (or
   the loudness) it would go to. */
.track-line { position: relative; height: 6px; margin-top: 3px; border-top: 1px solid var(--line-616161); cursor: pointer; user-select: none; touch-action: none; }
.track-slider { position: absolute; top: 0; left: 0; width: 10px; height: 6px; background: var(--back-636363); pointer-events: none; }
.track-tip { position: absolute; bottom: 10px; z-index: 11; padding: 2px 4px; border: 1px solid var(--line-d6d6d6); background: var(--back-f7f7f7); color: var(--text-000); font-size: 10px; white-space: nowrap; pointer-events: none; transform: translateX(-50%); }

/* "Аудиозаписи", as openvk's Audio/List.latte: the big player over the
   whole page, the songs at the left and openvk's verticalGrayTabs at the
   right; a playlist is its cover with links under it beside its name and
   songs (Playlist.latte). */
.big-player { position: sticky; top: 0; z-index: 10; height: 46px; margin: -10px -10px 0; border-bottom: 1px solid var(--line-d6d6d6); background: var(--back-f0f1f2); box-shadow: 1px 0 8px rgb(34 60 80 / 20%); }
.bp-wrap { display: flex; align-items: center; height: 46px; padding: 0 14px; }
.bp-buttons { display: flex; flex: none; gap: 7px; align-items: center; width: 62px; }
.bp-sign { flex: none; padding: 0; border: 0; background: url("/static/c/c83dc9f31615/im/audios_controls.png") no-repeat; cursor: pointer; }
.bp-sign.pressed { filter: brightness(150%); }
.bp-play { width: 22px; height: 22px; background-position: -72px 0; }
.bp-play.on { background-position: -168px 0; }
.bp-arrows { display: flex; gap: 9px; align-items: center; height: 11px; }
.bp-prev, .bp-next { width: 12px; height: 12px; }
.bp-prev { background-position: -3px -51px; }
.bp-next { background-position: -18px -51px; }
.bp-track { flex: 1; min-width: 0; margin-left: 15px; padding-right: 8px; }
.bp-info { display: flex; gap: 6px; justify-content: space-between; height: 15px; line-height: 14px; }
.bp-name { min-width: 0; overflow: hidden; color: var(--text-000); text-overflow: ellipsis; white-space: nowrap; }
.bp-name[href]:hover { text-decoration: underline; }
.bp-broken { margin-left: 6px; color: var(--text-6b6b6b); font-style: italic; }
.bp-timer { flex: none; font-size: 9px; }
.bp-rest { cursor: pointer; }
.bp-volume { flex: none; box-sizing: border-box; width: 73px; padding: 12px 8px 0 0; }
.bp-extra { display: flex; flex: none; gap: 7px; align-items: center; }
.bp-repeat, .bp-shuffle, .bp-mute { width: 13px; height: 14px; }
.bp-repeat { background-position: -32px -49px; }
.bp-shuffle { background-position: -50px -50px; }
.bp-mute { background-position: -201px -50px; }
.audios-div { display: flex; margin: 0 -10px -10px; }
.audios-main { flex: 1; min-width: 0; padding: 8px; }
.audio-search { padding: 7px 0 10px; }
.audio-search input { box-sizing: border-box; width: 100%; height: 25px; padding: 3px 6px 0 21px; background: var(--back-fff) url("/static/c/4f8c67de4d13/icons/search-field.png") no-repeat 5px 6px; }
.audio-tabs { flex: none; width: 158px; border-top: 1px solid var(--line-e7e8ec); border-left: 1px solid var(--line-d6d6d6); background: var(--back-f7f7f7); font-size: 12px; }
.audio-tabs > div { display: flex; flex-direction: column; gap: 1px; padding: 4px; }
.audio-tabs a { display: block; padding: 5px 9px; color: var(--text-2b587a); cursor: pointer; }
.audio-tabs a:hover { background: var(--back-ececec); text-decoration: none; }
.audio-tabs a.used { padding: 3px 7px; border: 2px solid var(--line-555); background: var(--back-636363); color: var(--text-fff); }
.audio-tabs hr { width: 100%; margin: 6px 0 5px; border: 0; border-top: 1px solid var(--line-ddd); }
#owner-links { padding-top: 0; }
.content-error { display: flex; align-items: center; justify-content: center; min-height: 240px; border: 1px solid var(--line-dedede); background: var(--back-fff); color: var(--text-707070); text-align: center; }
.playlist-list { display: flex; flex-direction: column; }
.playlist-view { display: flex; gap: 13px; padding: 12px; border-radius: 2px; color: var(--text-000); }
.playlist-view:hover { background: var(--back-f5f5f5); text-decoration: none; }
.playlist-view-cover { flex: none; width: 100px; height: 100px; background: var(--back-f5f5f5); }
.playlist-view-cover img { display: block; width: 100px; height: 100px; object-fit: contain; }
.playlist-view-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.playlist-view-name { overflow: hidden; font-weight: bold; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
.playlist-view-meta { color: var(--text-686868); font-size: 10px; }
.playlist-block { display: flex; gap: 13px; margin-top: 6px; }
.playlist-block-cover { flex: none; width: 135px; }
.playlist-block-cover img { display: block; max-width: 135px; max-height: 135px; }
.playlist-block-cover .profile-links { margin: 6px 0 0; }
.playlist-block-info { flex: 1; min-width: 0; }
.playlist-block-info h4 { margin: 0 0 6px; color: var(--text-45688e); font-size: 12px; }
.playlist-block-meta { color: var(--text-686868); }
.playlist-block-info hr { margin: 11px 0 6px; border: 0; border-top: 1px solid var(--line-eee); }
.playlist-picker { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; }
.playlist-pick { padding: 6px; border-bottom: 1px solid var(--line-eee); cursor: pointer; }

/* "слушает: …" under the status; the block "Аудиозаписи" of the page,
   its song first on grey. */
.listening { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; color: var(--text-626262); }
.listening a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.listening-icon { flex: none; width: 12px; height: 12px; background: url("/static/c/fd9d1d13919f/icons/audio.svg") no-repeat center / 12px; }
.page-audio-list { margin: 4px 8px 10px; }
.page-audio-song { background: var(--back-f2f2f2); }

/* The player (player.js), openvk's mini player: a dark box seen through,
   white signs, the line of the song and of loudness thin white lines with
   a small white block, × in its corner; the list it plays opens over it
   under the pointer. The players of SoundCloud and YouTube play in it,
   out of sight. */
.player {
  --player-queue-room: 200px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  box-sizing: border-box;
  width: 500px;
  max-width: calc(100vw - 40px);
  padding: 1px;
  border-radius: 3px;
  background: rgb(44 44 44 / 85%);
  color: var(--text-fff);
}
.player-main { display: flex; gap: 8px; align-items: center; height: 35px; padding: 0 22px 0 8px; }
.player-btn { flex: none; width: 16px; height: 16px; padding: 0; border: 0; background: var(--player-icon) no-repeat center / 14px; opacity: 0.85; cursor: pointer; }
.player-btn:hover, .player-btn.active { opacity: 1; }
.player-btn.active { background-color: rgb(255 255 255 / 20%); border-radius: 2px; }
.player-toggle { --player-icon: url("/static/c/edf599e19a0c/icons/play.svg"); width: 18px; height: 18px; opacity: 1; background-size: 16px; }
.player-toggle.on { --player-icon: url("/static/c/5528f63a3676/icons/pause.svg"); }
.player-prev { --player-icon: url("/static/c/a73a1cc57fda/icons/prev.svg"); }
.player-next { --player-icon: url("/static/c/1545b1731187/icons/next.svg"); }
.player-repeat { --player-icon: url("/static/c/a69d51a6fe2b/icons/repeat.svg"); }
.player-shuffle { --player-icon: url("/static/c/6e18a7eb491f/icons/shuffle.svg"); }
.player-list { --player-icon: url("/static/c/c22b15d88f0f/icons/queue.svg"); display: none; }
.player-track { flex: 1; min-width: 0; }
.player-line { display: flex; gap: 6px; justify-content: space-between; line-height: 14px; }
.player-name { min-width: 0; overflow: hidden; color: var(--text-fff); text-overflow: ellipsis; white-space: nowrap; }
.player-name[href]:hover { text-decoration: underline; }
.player-broken { margin-left: 6px; color: var(--text-ccc); font-style: italic; }
.player-time { flex: none; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; cursor: pointer; }
.player-time:hover { text-decoration: underline; }
/* openvk's lines: a white line one pixel thick and a white block on it. */
.player-seek, .player-volume { display: block; height: 8px; margin: 2px 0 0; background: none; cursor: pointer; appearance: none; }
.player-seek { width: 100%; }
.player-volume { flex: none; width: 60px; margin-top: 14px; }
.player-seek::-webkit-slider-runnable-track, .player-volume::-webkit-slider-runnable-track { height: 1px; background: var(--back-fff); }
.player-seek::-moz-range-track, .player-volume::-moz-range-track { height: 1px; background: var(--back-fff); }
.player-seek::-webkit-slider-thumb, .player-volume::-webkit-slider-thumb { width: 11px; height: 6px; margin-top: 0; border: 0; border-radius: 0; background: var(--back-fff); appearance: none; }
.player-seek::-moz-range-thumb, .player-volume::-moz-range-thumb { width: 11px; height: 6px; border: 0; border-radius: 0; background: var(--back-fff); transform: translateY(3px); }
.player-buttons { display: flex; flex: none; gap: 8px; align-items: center; }
.player-close { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; padding: 0; border: 0; background: none; color: var(--text-fff); font: 13px/14px tahoma, verdana, arial, sans-serif; opacity: 0.6; cursor: pointer; }
.player-close::before { content: "×"; }
.player-close:hover { opacity: 1; }
.player-queue { position: absolute; right: 0; bottom: 100%; left: 0; display: none; max-height: 200px; margin-bottom: 2px; overflow-y: auto; border-radius: 2px; background: rgb(44 44 44 / 85%); }
.player:hover .player-queue, .player.queue-open .player-queue { display: block; }
.player-row { display: block; padding: 3px 10px; overflow: hidden; color: var(--text-ccc); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.player-row:hover { background: rgb(0 0 0 / 20%); text-decoration: none; }
.player-row.playing { background: rgb(0 0 0 / 45%); color: var(--text-fff); }
.player-row.broken { color: var(--text-626262); }
/* The player of SoundCloud or YouTube: in the page, as their players must
   be to play, but in a pixel of the box and unseen. */
/* While the big player of "Аудиозаписи" shows the song, the box is out
   of sight and plays on: the players of SoundCloud and YouTube are in it. */
.player.docked { visibility: hidden; }
.player-embed { position: absolute; bottom: 0; left: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.player-embed iframe { width: 300px; height: 200px; border: 0; }
.with-player .layout, .framed .layout { padding-bottom: 60px; }

/* The tab while a song plays (shell.js): the page opened from it in a
   frame over the whole tab, the page the song started on under it. */
.shell, .shell body { height: 100%; overflow: hidden; }
.shell body > :not(.player, .shell-frame, .room-banner, .room-media-host, .room-voice-audio) { display: none; }
.shell-frame { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; background: var(--back-fff); }

/* Phones have pages of their own (web/m/, m.css): the bar of sections
   at the bottom and the search in the header are only theirs. */
.tabbar, .header-search { display: none; }

/* Stories, VK's: circles above the news and the stories over the screen. */
/* Over the news, as on openvk: the tabs, the grey bar of the sections
   touching them, then the stories and the form in its grey box. */
.tabs:has(+ .feed-tabs) { margin-bottom: 0; }
.mb-tabs.feed-tabs { margin: 0 -10px; }
.feed-tabs ~ .wall-form:not(.comment-form, .post-edit) { margin-top: 10px; }
/* Stories (openvk has none): a row of square photos with names under
   them, as the block "Друзья" of a page. Those not viewed yet have a dark
   frame and a bold name; the viewed ones are grey. */
.story-bar { display: flex; gap: 2px; overflow-x: auto; margin: 0 -10px; padding: 10px 10px 0; }
.story-circle { position: relative; flex: none; width: 66px; color: var(--text-45688e); text-align: center; cursor: pointer; }
.story-circle img { display: block; width: 50px; height: 50px; margin: 0 auto 3px; padding: 2px; background: var(--back-fff); border: 1px solid var(--line-ccc); object-fit: cover; }
.story-fresh img { border-color: var(--line-707070); }
.story-circle span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-fresh span { font-weight: bold; }
.story-circle:not(.story-fresh, .story-add) span { color: var(--text-828282); }
.story-add img { border-style: dashed; border-color: var(--line-bbb); }
.story-add span { white-space: normal; }
.story-circle .story-plus { position: absolute; top: 40px; left: 44px; width: 14px; height: 14px; background: var(--back-707070); color: var(--text-fff); font-weight: bold; line-height: 14px; }
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .94);
}
.story-box { display: flex; flex-direction: column; width: min(420px, 100vw); height: min(100dvh, 780px); color: rgba(255, 255, 255, .95); }
.story-progress { display: flex; gap: 3px; padding: 8px 8px 0; }
.story-segment { flex: 1; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .3); border-radius: 2px; }
.story-fill { width: 0; height: 100%; background: rgba(255, 255, 255, .95); }
.story-filled { width: 100%; }
.story-head { display: flex; align-items: center; gap: 8px; padding: 8px; }
.story-head img { display: block; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.story-head a { color: rgba(255, 255, 255, .95); font-weight: bold; }
.story-age { color: rgba(255, 255, 255, .6); }
.story-head .story-close { margin-left: auto; font-size: 20px; font-weight: normal; line-height: 1; cursor: pointer; }
.story-stage { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; min-height: 0; }
.story-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.story-text {
  position: absolute;
  right: 10px;
  bottom: 12px;
  left: 10px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, .55);
  font-size: 13px;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.story-zone { position: absolute; top: 0; bottom: 0; cursor: pointer; }
.story-zone-prev { left: 0; width: 35%; }
.story-zone-next { right: 0; width: 65%; }
.story-panel {
  display: flex;
  flex: none;
  flex-direction: column;
  max-height: 55%;
  background: var(--back-fff);
  color: var(--text-000);
}
.story-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-top: 1px solid var(--line-dae1e8);
}
.story-foot a { cursor: pointer; }
.story-foot .like svg { width: 13px; height: 12px; }
.story-foot .like-count { font-size: 11px; }
.story-comments {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 10px 8px;
  border-top: 1px solid var(--line-dae1e8);
  overflow-y: auto;
}
.story-comments-more { display: block; padding: 6px 0 0; text-align: center; cursor: pointer; }
.story-comments .post-comment-form { flex: none; padding: 6px 0 0; }
.story-comments-empty { margin: 6px 0 0; color: var(--text-626262); text-align: center; }
.story-form textarea { width: 100%; height: 50px; margin-top: 6px; }
.story-preview { display: block; width: auto; max-width: 100%; height: auto; max-height: 240px; margin: 6px auto 0; }


/* openvk's checkmark after the name of a confirmed page. It stands among
   the photos of lists and records, whose rules size every img there: the
   doubled class outweighs them, and it comes last. */
img.name-checkmark.name-checkmark {
  display: inline;
  width: 13px;
  height: 11px;
  margin: 0 0 0 2pt;
  padding: 0;
  border: 0;
  border-radius: 0;
  vertical-align: baseline;
}

/* The badge of Prime after the name, beside the checkmark. */
img.name-prime.name-prime {
  display: inline;
  width: 12px;
  height: 12px;
  margin: 0 0 0 2pt;
  padding: 0;
  border: 0;
  border-radius: 0;
  vertical-align: -1px;
}

/* On the black of the story viewer, as in the dark theme. */
.story-head img.name-checkmark.name-checkmark { filter: brightness(2.4); }

/* "Гости" (/guests): the new guests stand out, as unread notifications. */
.notification-guests { margin-bottom: 10px; }
.guest-row-new { background: var(--back-f2f5f8); }
.guest-visit { margin-top: 3px; }
.guest-new { margin-right: 6px; color: var(--text-43a047); }

/* "Рейтинги" (/top): a board of the forums of the 2000s, the first three
   places in medals. */

/* "Питомец" (/pet): round drawn pets. */
/* The tabs of one's pets above the page, with "+" for the shop. */


/* Rarities, chests and clothes of pets: plates of colour and boxes with a
   bevel, as the browser games of the 2000s drew their loot. */

/* The pet on the profile, under the clubs. */
/* "Титулы": each award a glossy badge with its name, as the forums of the
   2000s hung them under the avatar; one given more than once says ×N. */
.title-side { padding: 2px 0; }
.title-side-row { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.title-badge { flex: none; width: 36px; height: 36px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 25%)); }
.title-side-text { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.title-times { color: var(--text-626262); font-weight: bold; }

/* Room to breathe, as on a phone, in the measure of a computer: the
   forms, settings, Prime, lists of groups and packs of stickers. */
.page-body p { line-height: 1.4; }
.container-gray h4 { margin: 20px 0 8px; padding-bottom: 3px; }
.container-gray > form > h4:first-child, .container-gray > div > h4:first-child, .container-gray > h4:first-child { margin-top: 0; }
.container-gray .form { border-spacing: 7px 10px; }
.settings-block { margin: 10px auto 16px; }
.accent-box { line-height: 1.4; }
.list-row { padding: 14px 0; }
.list-info .info th, .list-info .info td { padding-top: 2px; padding-bottom: 2px; }
.list-actions .profile-link { margin-bottom: 4px; }

/* The card of an article in a post that links to it, as VK's: its cover
   darkened under the title, or a grey card without one (articles.js). */
.article-card { --article-cover: none; position: relative; display: block; overflow: hidden; margin: 6px 4px; border: 1px solid var(--line-dae1e8); background: var(--back-f2f5f8); color: var(--text-333); }
.article-card:hover { text-decoration: none; border-color: var(--line-bbb); }
.article-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.article-list .article-card { margin: 0; }
.article-card.loading { height: 60px; }
.article-card.with-cover { min-height: 170px; background: var(--back-3e3e3e) var(--article-cover) center / cover no-repeat; color: var(--text-fff); }
.article-card-shade { position: absolute; inset: 0; }
.article-card.with-cover .article-card-shade { background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .7)); }
.article-card-text { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.article-card.with-cover .article-card-text { justify-content: flex-end; min-height: 170px; box-sizing: border-box; }
.article-card-label { display: flex; align-items: center; gap: 5px; color: var(--text-626262); text-transform: uppercase; font-size: 10px; letter-spacing: .5px; }
.article-card-label::before { content: ''; width: 16px; height: 16px; background: url("/static/c/a27d3b2c992f/icons/article.svg") center no-repeat; }
.article-card.with-cover .article-card-label { color: var(--text-e8e8e8); }
.article-card-title { font-size: 15px; color: var(--text-2b587a); overflow-wrap: anywhere; }
.article-card.with-cover .article-card-title { color: var(--text-fff); font-size: 17px; }
.article-card-excerpt { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { color: var(--text-626262); }
.article-card.with-cover .article-card-meta { color: var(--text-e8e8e8); }
.article-card-read { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 2px; background: url("/static/c/a7db0140063a/im/button.png") var(--back-595959); color: var(--text-fff); }
.article-card:hover .article-card-read { background: var(--back-707070); }

/* The page of an article: the cover, the title and who wrote it, then the
   text written as a long read (article-page.js). */
.article { max-width: 600px; margin: 0 auto; padding: 4px 0 10px; }
.article-cover { overflow: hidden; margin-bottom: 14px; background: var(--back-f2f5f8); }
.article-cover img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.article-title { margin: 0 0 10px; font-size: 22px; font-weight: bold; line-height: 1.25; color: var(--text-333); overflow-wrap: anywhere; }
.article-byline { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line-e8ebee); }
.article-avatar { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-byline-text { display: flex; flex-direction: column; gap: 2px; }
.article-author { font-weight: bold; }
.article-meta { color: var(--text-626262); }
.article-text { font-size: 13px; line-height: 1.6; color: var(--text-000); overflow-wrap: anywhere; }
.article-text p { margin: 0 0 12px; }
.article-text h2 { margin: 22px 0 10px; font-size: 18px; line-height: 1.3; color: var(--text-333); }
.article-text h3 { margin: 18px 0 8px; font-size: 15px; line-height: 1.3; color: var(--text-333); }
.article-text blockquote { margin: 0 0 12px; padding: 6px 12px; border-left: 3px solid var(--line-333); background: var(--back-f2f5f8); font-style: italic; color: var(--text-333); }
.article-text ul, .article-text ol { margin: 0 0 12px; padding-left: 24px; }
.article-text li { margin-bottom: 4px; }
.article-text pre { margin: 0 0 12px; padding: 8px 10px; overflow-x: auto; border: 1px solid var(--line-e0e6ec); background: var(--back-f7f7f7); font: 12px/1.5 Consolas, "Courier New", monospace; white-space: pre-wrap; }
.article-text hr { width: 30%; margin: 20px auto; border: 0; border-top: 1px solid var(--line-bbb); }
.article-text a { color: var(--text-2b587a); text-decoration: underline; }
.article-photo { margin: 0 0 14px; }
.article-photo img { display: block; max-width: 100%; max-height: 600px; margin: 0 auto; }
.article-photo figcaption { margin-top: 5px; text-align: center; color: var(--text-626262); }
.article-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line-e8ebee); }
.article-tools a { cursor: pointer; }

/* The editor of an article (article-edit.js): the cover to add, the title
   in large letters, the bar of tools stuck over the text, and the text as
   it will be read. */
.article-editor { max-width: 600px; margin: 0 auto; }
.article-cover.editing { position: relative; display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed var(--line-bbb); }
.article-cover.editing.with-cover { border-style: solid; }
.article-cover.editing img { max-height: 260px; }
.article-cover-add { position: absolute; padding: 4px 10px; background: var(--back-fff); border: 1px solid var(--line-bbb); cursor: pointer; }
.article-cover.with-cover .article-cover-add { right: 8px; bottom: 8px; }
.article-cover-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: var(--text-fff); font-size: 16px; line-height: 24px; cursor: pointer; }
.article-title-input { display: block; width: 100%; box-sizing: border-box; min-height: 0; margin: 0 0 8px; padding: 4px 0; border: 0; resize: none; background: transparent; font: bold 22px/1.25 Tahoma, Verdana, sans-serif; color: var(--text-333); }
.article-title-input:focus { outline: none; }
.article-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line-dae1e8); background: var(--back-f7f7f7); }
.article-tool { width: 28px; height: 28px; flex: none; padding: 0; border: 1px solid transparent; border-radius: 2px; background: transparent center no-repeat; cursor: pointer; }
.article-tool:hover { background-color: var(--back-e9edf1); }
.article-tool.active { background-color: var(--back-dae1e8); border-color: var(--line-bbb); }
.article-tool-gap { flex: none; width: 1px; height: 18px; margin: 0 4px; background: var(--back-d4d4d4); }
.tool-bold { background-image: url("/static/c/5fedbfc5f11e/icons/editor-bold.svg"); }
.tool-italic { background-image: url("/static/c/29354fc17361/icons/editor-italic.svg"); }
.tool-strike { background-image: url("/static/c/add0357a7841/icons/editor-strike.svg"); }
.tool-link { background-image: url("/static/c/0aced1b96b76/icons/editor-link.svg"); }
.tool-heading { background-image: url("/static/c/61dcbae12d04/icons/editor-heading.svg"); }
.tool-subheading { background-image: url("/static/c/254b4f2c5466/icons/editor-subheading.svg"); }
.tool-quote { background-image: url("/static/c/d2d4bf69bffa/icons/editor-quote.svg"); }
.tool-code { background-image: url("/static/c/7123d48af5e3/icons/editor-code.svg"); }
.tool-bullets { background-image: url("/static/c/a4825272cd5e/icons/editor-bullets.svg"); }
.tool-numbers { background-image: url("/static/c/bf9ab6181499/icons/editor-numbers.svg"); }
.tool-divider { background-image: url("/static/c/72f9ab66a718/icons/editor-divider.svg"); }
.tool-photo { background-image: url("/static/c/a7d6f2341457/icons/editor-photo.svg"); }
.article-body-input { min-height: 320px; padding: 12px 10px; border: 1px solid var(--line-dae1e8); border-top: 0; background: var(--back-fff); }
.article-body-input:focus { outline: none; }
.article-body-input .article-photo { position: relative; padding: 4px; border: 1px solid transparent; }
.article-body-input .article-photo:hover { border-color: var(--line-dae1e8); }
.article-caption { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; border: 0; border-bottom: 1px solid var(--line-e8ebee); background: transparent; text-align: center; color: var(--text-626262); }
.article-photo-remove { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: var(--text-fff); font-size: 16px; line-height: 24px; cursor: pointer; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.article-cancel { cursor: pointer; }
.article-to-wall { display: flex; align-items: center; gap: 4px; }
.article-counter { margin-left: auto; color: var(--text-626262); }
.article-counter.over { color: var(--text-c00); }

/* The probes the canvas reads its colors off. */

/* "Холст": the palette, the canvas drawn cell by cell and zoomed in a
   frame moved by dragging. */
.canvas-palette { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin: 0 0 8px; }
.canvas-swatch { aspect-ratio: 1; min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--line-707070); border-radius: 0; cursor: pointer; }
.canvas-swatch.active { outline: 2px solid var(--line-595959); outline-offset: 1px; }
.canvas-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; }
.canvas-status { margin-right: auto; color: var(--text-626262); }
.canvas-status.canvas-ready { color: var(--text-45688e); font-weight: bold; }
.canvas-tools a.active { font-weight: bold; }
.canvas-frame { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-bbb); background: var(--back-fff); cursor: crosshair; touch-action: none; user-select: none; box-sizing: border-box; }
.canvas-frame.dragging { cursor: grabbing; }
.canvas-board { position: absolute; display: block; image-rendering: pixelated; }

/* "Карта друзей" (map-page.js): a box of tiles with the photos of
   friends, as the small maps of 2007 — gray buttons, a gray frame,
   nothing that moves by itself. */
.friends-map {
  position: relative;
  height: 400px;
  overflow: clip;
  border: 1px solid var(--line-aaa);
  background: var(--back-dfe3e8);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.friends-map.picking { cursor: crosshair; }
.map-tiles, .map-marks { position: absolute; inset: 0; }
.map-tile { position: absolute; width: 256px; height: 256px; max-width: none; }
/* A photo stands over its place on a stem. */
.map-mark {
  position: absolute;
  transform: translate(-50%, calc(-100% - 6px));
  padding: 2px;
  background: var(--back-fff);
  border: 1px solid var(--line-707070);
  cursor: pointer;
}
.map-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--line-707070);
  border-bottom: 0;
}
.map-mark img { display: block; width: 32px; height: 32px; object-fit: cover; }
.map-mark.mine { border-color: var(--line-333); }
.map-mark.mine::after { border-top-color: var(--line-333); }
.map-mark-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 14px;
  padding: 0 2px;
  background: var(--back-595959);
  color: var(--text-fff);
  font-size: 9px;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
}
.map-balloon {
  position: absolute;
  z-index: 2;
  width: 220px;
  transform: translate(-50%, calc(-100% - 52px));
  padding: 6px 18px 6px 8px;
  background: var(--back-fff);
  border: 1px solid var(--line-707070);
  cursor: default;
}
.map-balloon-row { display: flex; gap: 8px; padding: 4px 0; }
.map-balloon-row + .map-balloon-row { border-top: 1px solid var(--line-eee); }
.map-balloon-row img { display: block; width: 30px; height: 30px; object-fit: cover; }
.map-balloon-close { position: absolute; top: 2px; right: 6px; color: var(--text-777); font-size: 14px; }
.map-zoom { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; flex-direction: column; gap: 2px; }
.map-zoom .button { width: 24px; height: 22px; padding: 0; font-size: 14px; font-weight: bold; line-height: 20px; }
.map-pick {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--back-f7f1d6);
  border: 1px solid var(--line-ddd09a);
  white-space: nowrap;
}
.map-copyright {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 1px 4px;
  background: var(--back-fff);
  color: var(--text-626262);
  font-size: 9px;
}
.map-backdrop { transform-origin: 0 0; }
.map-zoom .map-to-me { margin-top: 4px; }
.map-address { margin: 2px 0; }
.map-mine p { margin: 0 0 6px; }
.map-links { margin-bottom: 6px; }

/* The frame of BIG 2Z: a shadow under a lock, then the pet in a box. */
.named-pet { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; padding: 10px 12px; color: var(--back-fff); background: var(--back-14103a); border: 2px solid var(--back-d8dde3); border-radius: 6px; }
.named-picture { position: relative; flex: none; width: 96px; height: 96px; }
.named-shadow { display: block; filter: brightness(0) drop-shadow(0 0 6px var(--text-23e0ff)); }
.named-lock { position: absolute; right: -2px; bottom: -2px; font-size: 25px; }
.named-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.named-title { font-size: 16px; font-weight: bold; color: var(--back-d8dde3); }
.named-status { color: var(--text-23e0ff); }

.named-reveal { display: flex; gap: 12px; align-items: flex-start; }
.named-pose { flex: none; }
.named-about { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.named-about p { margin: 0; }
.named-stats { margin: 0; padding: 0; list-style: none; }

/* A call: a window of the old messengers over the page, with glossy
   buttons. The picture of the person gives way to their camera. */
/* The window of a call: a dark frame of the site, the person on a dark
   stage with waves while it rings and a glow beating with their voice, a
   lamp and a clock as plaques, the code as three gold tiles and big round
   glossy buttons. Every part has its height from the start, so nothing
   moves while the call goes on; only opacity and transform animate. */
.call-back { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--back-14103a) 72%, transparent); }
.call-back ~ .pop { z-index: 950; }
.call-window { position: relative; display: flex; flex-direction: column; width: 320px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); overflow: auto; color: var(--text-000); background: linear-gradient(var(--back-fff), var(--back-e9edf1)); border: 1px solid var(--line-333); border-radius: 6px 6px 3px 3px; box-shadow: 2px 2px 0 var(--back-d4d4d4); }
.call-title { display: flex; flex: none; gap: 6px; align-items: center; padding: 5px 8px; font-weight: bold; color: var(--text-fff); text-shadow: 0 1px 0 rgb(0 0 0 / 40%); background: linear-gradient(var(--back-636363), var(--back-3e3e3e)); border-radius: 5px 5px 0 0; }
.call-title .call-bars { margin-left: auto; }
.call-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.call-bars i { width: 3px; background: var(--back-707070); border-radius: 1px 1px 0 0; }
.call-bars i:nth-child(1) { height: 4px; }
.call-bars i:nth-child(2) { height: 6px; }
.call-bars i:nth-child(3) { height: 9px; }
.call-bars i:nth-child(4) { height: 12px; }
.call-bars i.on { background: var(--back-8bd86a); }
.call-stage { position: relative; display: flex; flex: none; align-items: center; justify-content: center; height: 210px; margin: 8px 8px 6px; overflow: hidden; background: radial-gradient(circle at 50% 45%, var(--back-444), var(--back-1f1f1f)); border: 1px solid var(--line-333); border-radius: 4px; }
.call-frame { position: relative; z-index: 1; padding: 3px; background: linear-gradient(var(--back-fff), var(--back-d4d4d4)); border: 1px solid var(--line-333); border-radius: 50%; box-shadow: 0 2px 0 rgb(0 0 0 / 35%); }
.call-photo { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.call-waves i { position: absolute; top: 50%; left: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px; border: 2px solid var(--back-8bd86a); border-radius: 50%; opacity: 0; }
.call-ringing .call-waves i { border-color: var(--back-c5cbd3); }

.call-glow { position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; background: radial-gradient(circle, var(--back-8bd86a) 50%, transparent 71%); border-radius: 50%; opacity: 0; }
.call-live .call-glow { opacity: 0.5; }
.call-remote { position: absolute; inset: 0; z-index: 2; display: none; width: 100%; height: 100%; object-fit: contain; background: var(--back-1f1f1f); }
.call-seen .call-remote { display: block; }
.call-local { position: absolute; right: 6px; bottom: 6px; z-index: 3; width: 84px; height: 63px; object-fit: cover; background: var(--back-3e3e3e); border: 2px solid var(--line-fff); border-radius: 3px; transform: scaleX(-1); }
.call-stage audio { display: none; }
.call-name { flex: none; margin: 0 8px; overflow: hidden; font-size: 15px; font-weight: bold; text-align: center; text-overflow: ellipsis; white-space: nowrap; color: var(--text-45688e); }
.call-plaques { display: flex; flex: none; gap: 6px; margin: 6px 8px 0; }
.call-status { display: flex; flex: 1; gap: 7px; align-items: center; min-width: 0; height: 44px; padding: 0 8px; background: linear-gradient(var(--back-fff), var(--back-e6e6e6)); border: 1px solid var(--line-bbb); border-radius: 3px; box-shadow: 1px 1px 0 var(--back-d4d4d4); }
.call-status-text { display: -webkit-box; overflow: hidden; line-height: 13px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.call-lamp { flex: none; width: 11px; height: 11px; background: radial-gradient(circle at 35% 35%, var(--back-fff), var(--back-8b8b8b) 65%); border: 1px solid var(--line-707070); border-radius: 50%; }
.call-calling .call-lamp, .call-ringing .call-lamp { background: radial-gradient(circle at 35% 35%, var(--back-eef1f4), var(--back-f7a02c) 65%); }
.call-live .call-lamp { background: radial-gradient(circle at 35% 35%, var(--back-fff), var(--back-43a047) 65%); }
.call-trouble .call-lamp { background: radial-gradient(circle at 35% 35%, var(--back-fff), var(--back-d23a32) 65%); }
.call-clock { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 78px; height: 44px; background: linear-gradient(var(--back-444), var(--back-1f1f1f)); border: 1px solid var(--line-333); border-radius: 3px; box-shadow: 1px 1px 0 var(--back-d4d4d4); }
.call-clock-digits { font-family: "Courier New", monospace; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--text-626262); }
.call-clock-digits.on { color: var(--text-dfe3e8); }

.call-code { display: flex; flex: none; gap: 5px; align-items: center; justify-content: center; height: 26px; margin: 6px 8px 0; visibility: hidden; opacity: 0; }
.call-code.shown { visibility: visible; opacity: 1; }
.call-code-name { color: var(--text-626262); }
.call-digits { display: flex; gap: 3px; }
.call-digits b { padding: 2px 5px; font-family: "Courier New", monospace; font-size: 13px; letter-spacing: 1px; color: var(--text-58462a); background: linear-gradient(var(--back-eef1f4), var(--back-c5cbd3)); border: 1px solid var(--line-7d8792); border-radius: 3px; box-shadow: 1px 1px 0 var(--back-d4d4d4); }
.call-buttons { display: flex; flex: none; gap: 16px; align-items: flex-start; justify-content: center; height: 88px; margin-top: 8px; padding-top: 9px; background: linear-gradient(var(--back-e6e6e6), var(--back-d4d4d4)); border-top: 1px solid var(--line-bbb); }
.call-button { display: flex; flex-direction: column; gap: 4px; align-items: center; width: 72px; padding: 0; font: inherit; font-size: 11px; color: var(--text-333); cursor: pointer; background: none; border: 0; }
.call-button:disabled { cursor: default; opacity: 0.6; }
.call-disc { position: relative; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; overflow: hidden; background: linear-gradient(var(--back-fff), var(--back-d4d4d4)); border: 1px solid var(--line-707070); border-radius: 50%; box-shadow: 0 2px 0 var(--back-8b8b8b); }
.call-disc::before { position: absolute; top: 2px; right: 7px; left: 7px; height: 45%; content: ""; background: linear-gradient(color-mix(in srgb, var(--back-fff) 80%, transparent), color-mix(in srgb, var(--back-fff) 5%, transparent)); border-radius: 50% / 70% 70% 30% 30%; pointer-events: none; }
.call-disc img { position: relative; z-index: 1; }

.call-button:active:not(:disabled) .call-disc { box-shadow: none; transform: translateY(2px); }
.call-button.off .call-disc { background: linear-gradient(var(--back-d4d4d4), var(--back-e6e6e6)); box-shadow: inset 0 2px 4px var(--back-8b8b8b); }
.call-button.on .call-disc { background: linear-gradient(var(--back-fff), var(--back-8bd86a)); border-color: var(--back-3f8f35); }
.call-end .call-disc { background: linear-gradient(var(--back-f26b5b), var(--back-a01e28)); border-color: var(--back-7a0f1d); }
.call-answer .call-disc { background: linear-gradient(var(--back-8bd86a), var(--back-3f8f35)); border-color: var(--back-1e5c36); }
.call-end .call-caption, .call-answer .call-caption { font-weight: bold; }

.call-level { position: absolute; inset: 0; background: linear-gradient(transparent 20%, color-mix(in srgb, var(--back-43a047) 55%, transparent)); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }


.prime-page.prime-frame-none .avatar { border: 0; outline: none; }

/* The birthday of the owner of a page: for one day it has a plaque, a
   party hat on the photo, its own background and confetti (birthday.js). */
body.birthday { background: var(--back-f2f5f8) url("/static/c/d8e09f8424f6/birthday/bg.svg"); }
body.birthday.prime-bg.prime-bg-trip::before { content: none; }
.birthday.prime-bg.prime-bg-trip .layout::before { box-shadow: none; }
.birthday .layout { position: relative; }
.birthday-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 2px solid var(--line-9aa3ae);
  border-radius: 6px;
  background: linear-gradient(rgb(255 255 255 / 45%), transparent 50%), var(--back-c5cbd3);
  color: var(--text-333);
  cursor: pointer;
}
.birthday-banner[hidden] { display: none; }
.birthday-words { flex: 1; text-align: center; }
.birthday-words b { display: block; font-size: 14px; }
.avatar-box .birthday-hat { position: absolute; top: -18px; left: -10px; z-index: 2; transform: rotate(-18deg); pointer-events: none; }
.birthday .avatar-box { position: relative; }

/* The line of the painter by the pointer on "Холст". */
.canvas-tip {
  position: fixed;
  z-index: 60;
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 240px;
  padding: 3px 6px;
  border: 1px solid var(--line-707070);
  background: var(--back-fff);
  box-shadow: 1px 1px 3px rgb(0 0 0 / 35%);
  pointer-events: none;
}
.canvas-tip[hidden] { display: none; }
.canvas-tip.pinned { pointer-events: auto; }
.canvas-tip img:first-child { flex: none; object-fit: cover; }
.canvas-tip-date { color: var(--text-626262); font-size: 9px; }

/* The windows of the pages of pets, as the sites of the 2000s drew them:
   a dark title, the gradient of the header, with an icon, a white body, a hard shadow. */
.game-window { margin: 0 0 12px; background: var(--back-fff); border: 1px solid var(--line-333); border-radius: 6px 6px 3px 3px; box-shadow: 2px 2px 0 var(--back-d4d4d4); }
.game-window-title { display: flex; gap: 6px; align-items: center; padding: 4px 8px; color: var(--text-fff); font-weight: bold; text-shadow: 0 1px 0 rgb(0 0 0 / 40%); background: linear-gradient(var(--back-636363), var(--back-3e3e3e)); border-radius: 5px 5px 0 0; }
.game-window-title img { flex: none; }
.game-window-body { padding: 8px; }
.game-window-body > :last-child { margin-bottom: 0; }

/* The games of money: the strip of numbers over a page, what answers a press
   and the big buttons, as the browser games of the 2000s drew them. */
.game-icon { flex: none; vertical-align: -3px; }
.game-window-title > span:not([id]) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-window-title .game-sub { flex: none; font-weight: normal; }
.game-help { display: inline-flex; flex: none; padding: 0; background: none; border: 0; cursor: help; }
.game-help:hover { filter: brightness(1.2); }
.game-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 10px; background: var(--back-3e3e3e); border: 1px solid var(--line-333); border-radius: 4px; box-shadow: 2px 2px 0 var(--back-d4d4d4); overflow: hidden; }
.game-hud-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 6px 8px; background: linear-gradient(var(--back-fff), var(--back-e9edf1)); }
.game-hud-name { display: flex; gap: 4px; align-items: center; color: var(--text-45688e); font-weight: bold; }
.game-hud-sum { color: var(--text-000); font-size: 18px; line-height: 20px; }
.game-hud-cell .hint { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-hud.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
button.game-hud-cell { border: 0; color: var(--text-000); font: inherit; text-align: left; cursor: pointer; }
button.game-hud-cell:hover { background: var(--back-f2f5f8); }
.button.game-go { display: block; width: 100%; min-height: 34px; background: linear-gradient(rgb(255 255 255 / 30%), rgb(255 255 255 / 5%) 50%, transparent 50%), var(--back-3f8f35); font-size: 13px; font-weight: bold; }
.button.game-go.sell { background: linear-gradient(rgb(255 255 255 / 30%), rgb(255 255 255 / 5%) 50%, transparent 50%), var(--back-d23a32); }
.button.game-go.small { display: inline-block; width: auto; min-height: 0; font-size: 11px; font-weight: normal; }

.game-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 10px; border-bottom: 2px solid var(--line-333); }
.tabs.game-tabs a { display: inline-flex; gap: 4px; align-items: center; margin: 0; padding: 4px 9px; background: linear-gradient(var(--back-fff), var(--back-e4e4e4)); border: 1px solid var(--line-bbb); border-bottom: 0; border-radius: 4px 4px 0 0; color: var(--text-2b587a); }
.tabs.game-tabs a:hover { background: var(--back-f2f5f8); }
.tabs.game-tabs a.active, .tabs.game-tabs a.active:hover { background: linear-gradient(var(--back-636363), var(--back-3e3e3e)); border-color: var(--line-333); color: var(--text-fff); font-weight: bold; }

/* The mine: the rock face is one big button. */

/* "Что сделать": what can be done now, a button a row. */
.game-window-body > .button.game-go { margin-bottom: 6px; }

:where(.button, button):active:not(:disabled) { transform: translateY(1px); }


/* The viewer of stories in the look of the 2000s. */
.story-box { overflow: hidden; background: var(--back-fff); border: 1px solid var(--line-333); border-radius: 6px 6px 3px 3px; box-shadow: 3px 3px 0 rgb(0 0 0 / 40%); }
.story-progress { order: 2; padding: 4px 6px; background: rgb(20 20 24); }
.story-head { order: 1; padding: 4px 8px; background: linear-gradient(var(--back-636363), var(--back-3e3e3e)); }
.story-head img { border-radius: 3px; width: 22px; height: 22px; }
.story-head .story-icon { width: 16px; height: 16px; border-radius: 0; }
.story-stage { order: 3; background: rgb(20 20 24); }
.story-panel { order: 4; }
.story-segment { height: 5px; border-radius: 1px; }
.story-fill { background: linear-gradient(rgb(255 240 170), rgb(242 169 47)); }
.story-foot { justify-content: stretch; }
.story-foot .post-bar { flex: 1; margin: 0; }
.story-foot .like-count { font-size: 11px; }

/* "Холст" as a paint program of the 2000s: the box of tools at the left of
   the canvas, the colour in hand and the latest ones under it. */
.canvas-paint { display: flex; gap: 6px; align-items: flex-start; }
.canvas-toolbox { display: grid; flex: none; grid-template-columns: repeat(2, 30px); gap: 2px; padding: 3px; background: linear-gradient(var(--back-f7f7f7), var(--back-e4e4e4)); border: 1px solid var(--line-707070); border-radius: 3px; }
.canvas-tool { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; background: linear-gradient(var(--back-fff), var(--back-e4e4e4)); border: 1px solid var(--line-aaa); border-radius: 3px; cursor: pointer; }
.canvas-tool:hover { border-color: var(--line-333); }
.canvas-tool:active { transform: translateY(1px); }
.canvas-tool.active { background: var(--back-dde2e8); border-color: var(--line-333); box-shadow: inset 0 1px 2px rgb(0 0 0 / 35%); }
.canvas-frame { flex: 1; min-width: 0; max-width: none; border-color: var(--line-333); }
.canvas-frame[data-tool="hand"] { cursor: grab; }
.canvas-frame[data-tool="hand"].dragging { cursor: grabbing; }
.canvas-frame[data-tool="pick"], .canvas-frame[data-tool="look"] { cursor: help; }
.canvas-board { user-select: none; }
.canvas-cursor { position: absolute; top: 0; left: 0; z-index: 2; outline: 1px solid var(--line-333); box-shadow: 0 0 0 1px var(--line-fff); pointer-events: none; }
.canvas-cursor[hidden] { display: none; }
.canvas-status { min-height: 14px; margin: 6px 0; color: var(--text-626262); }
.canvas-colors { display: grid; grid-template-columns: 44px 1fr; gap: 3px 8px; align-items: start; }
.canvas-current { grid-row: span 2; width: 42px; height: 42px; border: 2px solid var(--line-333); box-shadow: inset 0 0 0 2px var(--line-fff); }
.canvas-recent { display: grid; grid-template-columns: repeat(9, 22px); gap: 3px; }
.canvas-recent .canvas-swatch { width: 22px; height: 22px; }
.canvas-swatch.empty { display: block; background: var(--back-f2f2f2); border: 1px dashed var(--line-bbb); cursor: default; }
.canvas-palette { grid-template-columns: repeat(32, 1fr); gap: 2px; margin: 0; }

.canvas-swatch.active { outline-color: var(--line-333); }

/* "Рейтинги": the podium of the first three, the rest with a bar to the
   leader. */
.top { min-height: 620px; }

#hud .game-hud-sum, #hud .hint { display: block; overflow: hidden; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.tabs.game-tabs .game-icon { display: block; }



/* "Поиск", as openvk's Search/Index: the field across the page with where
   to look at its right end and "Поиск" (#search_form), the grey bar of
   sections (mb_tabs) and "Найдено …" (summaryBar) over the list. */
.search-bar { display: flex; gap: 10px; margin: -10px -10px 0; padding: 10px; }
.search-field { position: relative; display: flex; flex: 1; min-width: 0; }
.search-field .search-input { box-sizing: border-box; flex: 1; min-width: 0; height: 22px; padding: 0 30% 0 22px; background: var(--back-fff) url("/static/c/4f8c67de4d13/icons/search-field.png") no-repeat 6px 4px; }
.search-field .search-input::-webkit-search-cancel-button { display: none; }
.search-field select { position: absolute; top: 0; right: 0; width: 30%; height: 22px; text-align: right; }
.search-tabs { margin: 0 -10px; }
.search-tabs .mb-tab { margin-right: 10px; }
.search-summary { margin-bottom: 6px; }
.search-summary:has(.summary:empty) { display: none; }

#people.searching { opacity: 0.55; }

#people .person:hover { background: var(--back-f2f5f8); }
.search-none { padding: 18px 0; color: var(--text-626262); text-align: center; }
.search-example { margin: 0 2px; }

a.game-hud-cell { color: inherit; text-decoration: none; }
a.game-hud-cell:hover { background: var(--back-f2f5f8); }
#notify-hud .game-hud-sum { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* A bold active tab would widen the row and wrap it: every board and page
   would then start lower. */
.tabs.game-tabs a.active, .tabs.game-tabs a.active:hover { font-weight: normal; }
#tabs.game-tabs { flex-wrap: nowrap; }
.gray-bar-search { flex: 1; min-width: 0; }
.gray-bar-search input { width: 100%; box-sizing: border-box; }
#create { flex: none; width: auto; }

/* The blocked page (ban-screen.js): a plain window of the site over a
   dimmed screen, as the notices of the 2000s: no sirens, no tapes. */
.ban-open, .ban-open body { overflow: hidden; }
.ban-screen { position: fixed; inset: 0; z-index: 110; display: flex; padding: 40px 16px; overflow: auto; background: rgba(0, 0, 0, .7); box-sizing: border-box; }
.ban-window { width: 100%; max-width: 560px; margin: auto; }
.ban-body { display: flex; gap: 14px; padding: 12px; }
.ban-photo { flex: none; display: block; width: 100px; height: 100px; object-fit: cover; border: 1px solid var(--line-ccc); }
.ban-gate { flex: 1; min-width: 0; line-height: 1.5; }
.ban-gate p { margin: 0 0 8px; }
.ban-facts { width: 100%; margin: 0 0 8px; border-collapse: collapse; }
.ban-facts th { width: 120px; padding: 3px 6px 3px 0; color: var(--text-686868); font-weight: normal; text-align: left; vertical-align: top; white-space: nowrap; }
.ban-facts td { padding: 3px 0; }
.ban-reason { padding: 4px 6px; background: var(--back-f7f7f7); border: 1px solid var(--line-dedede); overflow-wrap: anywhere; }
.ban-left { font-variant-numeric: tabular-nums; }
.ban-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 12px; background: var(--back-d4d4d4); border-radius: 0 0 3px 3px; }
.ban-said { color: var(--text-686868); }

/* An account of another server of the Fediverse in a list (layout.js,
   fediverseAccountNode): photo, name and address there, an action on the
   right. */
.fediverse-account { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line-ececec); }
.fediverse-account img { display: block; width: 30px; height: 30px; object-fit: cover; }
.fediverse-account-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fediverse-account-action { flex: none; cursor: pointer; }
.fediverse-follow { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.fediverse-follow input { flex: 1; min-width: 0; }

/* The videos of a post of another server (posts.js, videosNode): the
   blurhash keeps the shape of the video, the cover comes over it, a
   glossy play button in the middle and the duration in the corner. */
.post-videos { display: grid; gap: 3px; padding: 6px 4px; border-bottom: 1px solid var(--line-ececec); }
.post-video { position: relative; display: block; overflow: hidden; background: var(--back-1f1f1f); }
.post-video-blur { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.post-video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.post-video-cover.loaded { opacity: 1; }
.post-video-play { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 2px solid var(--text-fff); border-radius: 50%; background: linear-gradient(var(--back-636363), var(--back-3e3e3e)); box-shadow: 0 2px 6px rgb(0 0 0 / 50%); opacity: 0.9; }
.post-video-play::before { content: ""; position: absolute; top: 15px; left: 20px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--text-fff); }
.post-video:hover .post-video-play { opacity: 1; }
.post-video-time { position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 3px; background: rgb(0 0 0 / 75%); color: var(--text-fff); }

/* The look of the profile everywhere (the owner's word, 2026-11): a block
   of a page is the grey bar of the profile over its content, tabs are
   words, buttons are the grey buttons of openvk, and numbers stand as the
   lines of "Информация" — no icons, frames and colours only for beauty.
   It comes last, over what the pages of games and money drew before. */
.game-window { margin: 0 0 12px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.game-window-title {
  margin: 0 0 8px;
  padding: 3px 8px 3px 24px;
  background: var(--back-e6e6e6) url("/static/c/aa59ceb00500/icons/block-arrow.svg") no-repeat 0 0;
  border: 0;
  border-top: 1px solid var(--line-8b8b8b);
  border-radius: 0;
  color: var(--text-626262);
  line-height: 13px;
  text-shadow: none;
}
.game-window-title > img:first-child, .game-window-title > .game-icon:first-child,
.game-window-body { padding: 0 8px 8px; }
.game-help img { display: none; }
.game-help::before { color: var(--text-626262); font-weight: bold; content: "?"; }
.game-help:hover::before { color: var(--text-000); }

.tabs.game-tabs { gap: 0; margin: 0 -10px 10px; padding: 0 10px; border-bottom: 1px solid var(--line-707070); }
.tabs.game-tabs a { display: inline-block; margin: 0 3px 0 0; padding: 5px 10px; background: none; border: 0; border-radius: 3px 3px 0 0; color: var(--text-2b587a); }
.tabs.game-tabs a:hover { background: var(--back-e4e4e4); }
.tabs.game-tabs a.active, .tabs.game-tabs a.active:hover { background: var(--back-707070); color: var(--text-fff); font-weight: normal; }
.tabs img, .tabs.game-tabs img, .tabs.game-tabs .game-icon, .mb-tabs img { display: none; }

.game-hud, .game-hud.four { gap: 0; margin: 0 0 10px; background: none; border: 0; border-bottom: 1px solid var(--line-e8ebee); border-radius: 0; box-shadow: none; }
.game-hud-cell { gap: 1px; padding: 4px 8px 6px; background: none; }
a.game-hud-cell:hover, button.game-hud-cell:hover { background: var(--back-f2f2f2); text-decoration: none; }
.game-hud-name { color: var(--text-626262); font-weight: normal; }
.game-hud-name img, .game-hud-name .game-icon { display: none; }
.game-hud-sum { color: var(--text-000); font-size: 12px; font-weight: bold; line-height: 16px; }

.button.game-go, .button.game-go.sell { display: inline-block; width: auto; min-height: 0; background: url("/static/c/a7db0140063a/im/button.png") var(--back-595959); font-size: 11px; font-weight: normal; }
.button.game-go:active { background: var(--back-444); }
.button > img, .button > .game-icon { display: none; }

/* "Как начать" of the business: three numbered steps as plain text. */

/* Free space moves the player; controls retain their own pointer gestures. */
.player-main { cursor: grab; touch-action: none; }
.player-dragging .player-main { cursor: grabbing; user-select: none; }
.player-dragging .player-queue { display: none; }

.player.queue-below .player-queue { top: 100%; bottom: auto; margin-top: 2px; margin-bottom: 0; }
.player.player-moved .player-queue { max-height: min(200px, var(--player-queue-room)); }

/* "Отправить сообщение" of a page, openvk's window (#user-send-dialog):
   the photo with "В диалог" under it at the left, the name, whether the
   person is online and the field with the emoji at the right, what may be
   attached under it at the right edge. */
.modal-box.send-box { width: 500px; }
.send-box-centre { display: grid; grid-template-columns: auto 1fr; gap: 35px; padding: 0 0 10px; }
.send-box-left { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.send-box-left img { display: block; width: 100px; height: 100px; object-fit: cover; }
.send-box-right { min-width: 0; }
.send-box-name { font-size: 13px; font-weight: bold; }
.send-box-online { min-height: 14px; color: var(--text-777); }
.send-box .messenger-field { margin-top: 19px; }
.send-box .send-box-text { display: block; box-sizing: border-box; width: 100%; min-height: 70px; max-height: 200px; padding: 4px 28px 4px 6px; resize: none; border: 1px solid var(--line-c0cad5); font: 11px/1.35 tahoma, verdana, arial, sans-serif; }
.send-box .emoji-picker-wrap { top: calc(100% + 4px); bottom: auto; }
.send-box-attachments { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.send-box-attach { display: inline-block; width: 20px; height: 20px; background: no-repeat center / 16px; opacity: .7; cursor: pointer; }
.send-box-attach:hover { opacity: 1; }
.send-box-attach.attach-photo { background-image: url("/static/c/164547830287/icons/photo.svg"); }
.send-box-attach.attach-audio { background-image: url("/static/c/fd9d1d13919f/icons/audio.svg"); }
.send-box-attach.attach-document { background-image: url("/static/c/9a2441fd28bd/icons/document.svg"); }
.send-box-attach::before { content: none; }
.send-box .attachments, .send-box .doc-attached, .send-box .audio-attached { margin-top: 6px; }
/* openvk's "Загрузка документа" (al_docs.js): the limits and "Выбрать файл". */
.modal-box.doc-upload { width: 400px; max-width: calc(100vw - 32px); }
.modal-box.doc-upload .modal-body { padding: 15px; }
.doc-upload-limits { margin: 5px 0; padding-left: 20px; }
.doc-upload-frame { text-align: center; margin: 10px 0 2px; }
/* "Размер стикера" of the studio (sticker-fit.js): the picture in the
   square every sticker is shown in. */
.sticker-fit-square { width: 128px; margin: 8px auto; border: 1px solid var(--line-c0c0c0); background: var(--back-fff); }
.sticker-fit-canvas { display: block; width: 128px; height: 128px; cursor: move; touch-action: none; }
.sticker-fit-size { display: flex; justify-content: center; align-items: center; gap: 8px; }
/* Attachments of a message, as openvk messages.css: the photos in one
   mosaic of 380px (msg-makima-grid), a document as a sheet and its name,
   the songs in a light box, and a shared post as a card with a bar. */
.msg-attachments-container { max-width: 100%; margin-top: 4px; }
.msg-makima-grid { display: block; position: relative; max-width: 100%; border-radius: 4px; overflow: hidden; margin: 4px 0; }
.msg-makima-row { display: flex; gap: 2px; width: 100%; margin-bottom: 2px; }
.msg-makima-row:last-child { margin-bottom: 0; }
/* Each tile as wide as photoMosaic says (forward.js): the photo whole. */
.msg-media-tile { position: relative; display: flex; flex: none; min-width: 0; min-height: 0; overflow: hidden; border-radius: 2px; background: var(--back-e9ebed); }
.msg-media-tile-link { display: block; width: 100%; height: 100%; }
.msg-media-tile img.media_makima { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.im-message .attachments:not(:empty) { margin-top: 3px; }
.msg-attach-w-doc .attachment_doc { display: flex; align-items: center; gap: 1px; padding: 2px 0; user-select: none; }
.attachment_doc_icon { flex-shrink: 0; width: 8px; height: 10px; margin-top: 2px; background: url("/static/c/b8a5badda3dc/icons/doc-note.svg") no-repeat; }
.msg-attach-w-doc .attachment_note_content { display: inline-block; margin-left: 2px; }
.msg-attach-audio-player { max-width: 440px; margin: 4px 0; border: 1px solid var(--line-f0f0f0); border-radius: 3px; background: var(--back-fafafa); overflow: hidden; }
.msg-attach-audio-player .audio-list { padding: 0; }
.msg-attach-audio-player .audio-row:hover { background: var(--back-f5f5f5); }
.msg-attach-wall-card { max-width: 440px; margin: 4px 0; padding: 8px 10px; border-left: 2px solid var(--line-858585); border-radius: 0 4px 4px 0; background: var(--back-f9f9f9); cursor: pointer; }
.msg-attach-wall-card:hover { background: var(--back-f2f2f2); }
.msg-attach-wall-card.wall-card-deleted { color: var(--text-888); cursor: default; }
.wall-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wall-card-avatar { display: block; flex-shrink: 0; width: 32px; height: 32px; border-radius: 2px; object-fit: cover; }
.wall-card-author-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wall-card-author-name { overflow: hidden; color: var(--text-2a5885); font-size: 12px; font-weight: bold; white-space: nowrap; text-overflow: ellipsis; }
.wall-card-date { color: var(--text-888); font-size: 11px; }
.wall-card-text { display: -webkit-box; margin-bottom: 6px; overflow: hidden; color: var(--text-222); font-size: 12.5px; line-height: 1.4; word-break: break-word; white-space: pre-wrap; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.wall-card-empty { color: var(--text-888); font-style: italic; }
.msg-attach-wall-card .msg-makima-grid { margin: 6px 0 4px; }
.msg-attach-wall-card .attachments_m { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }

/* As openvk's input-m: "Редактирование сообщения: …" a strip over the
   whole form, "в ответ на сообщение …:" under the field, a click on it
   leading to the message; the title bold, the words grey on one line. */
.input-reply { display: flex; align-items: center; gap: 12px; cursor: default; }
.input-reply[hidden] { display: none; }
.input-edit { flex-shrink: 0; justify-content: space-between; padding: 10px 60px; background: var(--back-f2f2f2); border-top: 1px solid var(--line-595959); }
.messenger-box .input-reply { margin: 6px 0 0; padding: 6px 0; border-top: 1px solid var(--line-595959); cursor: pointer; }
.input-reply-content { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.input-type, .input-reply-title { flex-shrink: 0; font-weight: bold; color: var(--text-2b587a); }
.input-reply-text { min-width: 0; overflow: hidden; color: var(--text-656565); text-overflow: ellipsis; white-space: nowrap; }
.input-reply-text img { display: none; }
.input-close { display: flex; flex-shrink: 0; align-items: center; width: 14px; cursor: pointer; }
.input-close .cross { display: block; margin: 0; }

/* "Прикрепить" of the messenger opens upwards over the link, as openvk's
   #wallAttachmentMenu.up_direction: the items, and under them the grey
   "Прикрепить" right where the link was, which closes the list. */
.attach-header { display: none; }
.attach-up .attach-list { bottom: -7px; left: -16px; padding: 0; }
.attach-up .attach-list .attach-link { padding: 2px 6px; }
.attach-up .attach-list .attach-header { display: block; padding: 6px 15px; background: var(--back-eee); color: var(--text-2b587a); text-align: center; text-decoration: none; }

/* A document that is a picture, in a message: openvk's
   msg-attach-w-doc-image — the picture in a black box, its name and size
   in white on a dark band at its bottom. */
.msg-attach-w-doc-image { display: block; max-width: 100%; margin: 4px 0; }
.msg-attach-w-doc-image .docGalleryItem { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 280px; max-width: 100%; height: 190px; border-radius: 3px; background: rgb(0 0 0); text-decoration: none; cursor: pointer; }
.msg-attach-w-doc-image .docGalleryItem_main_preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.msg-attach-w-doc-image .doc_bottom_panel { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 3px 6px; background: rgb(1 1 1 / 70%); }
.msg-attach-w-doc-image .doc_bottom_panel span { overflow: hidden; color: var(--text-fff); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Videos of YouTube in messages, as openvk's msg-attach-j-video: the
   cover, 150px wide, with the dark play button in the middle; under the
   form, the covers of those attached, each with a cross. "Загрузить
   видео" is openvk's window of showFastVideoUpload. */
.msg-attach-videos { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.msg-attach-j-video { width: 150px; }
.compact_video { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: rgb(0 0 0); }
.compact_video .play-button { position: absolute; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 2px; background: rgb(0 0 0 / 75%); opacity: .8; }
.compact_video:hover .play-button { opacity: 1; }
.compact_video .play-button-ico { width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 12px solid var(--text-fff); opacity: .8; }
.video-attached { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.video-attached[hidden] { display: none; }
.video-attached-item { position: relative; display: grid; place-items: center; color: var(--text-fff); width: 100px; aspect-ratio: 16 / 9; background: rgb(0 0 0); }
.video-attached-remove { position: absolute; border: 0; padding: 0; top: 2px; right: 2px; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; background: var(--back-fff); cursor: pointer; }
.video-attached-remove .cross { display: block; margin: 0; }
.modal-box.video-upload { width: 500px; max-width: calc(100vw - 32px); }
.modal-box.video-upload .modal-body { padding: 0; min-height: 101px; }
.video-upload .mb-tabs { margin: 0; }
.video-upload .error { margin: 8px 10px 0; }
.video-upload-form { width: 80%; margin: 0 auto; border-spacing: 7px; }
.video-upload-label { width: 120px; vertical-align: top; }
.video-upload-form input { box-sizing: border-box; width: 100%; }
.modal-box.video-player { width: 660px; max-width: calc(100vw - 32px); }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* "Выбрать аудиозаписи", as openvk's showAudioAttachment: 580px wide, the
   search on a grey strip, the songs under it with "Прикрепить
   аудиозапись" at the right of each, greyed under the pointer. */
.modal-box.audio-attach { width: 580px; max-width: calc(100vw - 32px); }
.modal-box.audio-attach .modal-body { display: flex; flex-direction: column; height: 335px; padding: 0; }
.audio-attach-search { display: flex; flex-shrink: 0; height: 35px; padding: 10px 10px 0; box-sizing: border-box; background: var(--back-e6e6e6); }
.audio-attach-search input { box-sizing: border-box; width: 100%; height: 24px; }
.audio-attach .error { margin: 6px 9px 0; }
.audios-insert { flex: 1; min-height: 0; padding: 9px 5px 9px 9px; overflow-y: auto; }
.audio-attach-row { display: flex; align-items: center; width: 100%; }
.audio-attach-player { width: 72%; min-width: 0; }
.audio-attach-toggle { display: flex; align-items: center; justify-content: center; width: 28%; height: 37px; text-align: center; cursor: pointer; user-select: none; }
.audio-attach-toggle:hover { background: var(--back-ececec); text-decoration: none; }
.audios-insert .show-more { display: block; padding: 8px; text-align: center; cursor: pointer; }
.audios-insert .show-more[hidden] { display: none; }

/* Rooms use the same quiet blocks and controls as the profile. */
.room-toolbar { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0; }
.room-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line-ccc); }
.room-row > div { min-width: 0; overflow-wrap: anywhere; }
.room-row > div > a { font-weight: bold; }
.room-row .hint { margin-top: 4px; }
.room-row-people { display: flex; flex-shrink: 0; gap: 3px; }
.room-row-people img { width: 32px; height: 32px; object-fit: cover; }
.rooms-block { margin: 12px 0; }
/* A room: the bar of one's own buttons stays at the top while the page
   scrolls; the people in a strip with a place for each who may come; the
   shared screen with what plays, its time and the queue on the left and the
   chat of a fixed height beside it, so a film and the talk are seen at once. */
.room-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 6px; }
.room-head .room-toolbar { margin: 0; }
.room-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 26px; margin: 0 -10px 8px; padding: 6px 10px; border-top: 1px solid var(--line-dedede); border-bottom: 1px solid var(--line-dedede); background: var(--back-f7f7f7); }
.room-own-controls { display: flex; gap: 6px; }
.room-status { margin: 0; }
.room-members { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; height: 128px; margin: 0 0 8px; overflow: hidden; }
.room-member { position: relative; min-width: 0; padding: 4px 2px; text-align: center; overflow-wrap: anywhere; }
.room-member.empty { border: 1px dashed var(--line-dedede); }
.room-member img { box-sizing: border-box; width: 50px; height: 50px; object-fit: cover; border: 2px solid transparent; }
.room-member.speaking img { border-color: var(--text-45688e); }
.room-member-name { height: 26px; margin-top: 2px; overflow: hidden; line-height: 13px; }
.room-member-state { height: 13px; margin: 1px 0; }
.room-member-tools { display: grid; gap: 1px; visibility: hidden; }
.room-member:hover .room-member-tools, .room-member:focus-within .room-member-tools { visibility: visible; }
/* The screen and the chat stand side by side with one line between
   them and no gap, their grey titles one strip; the chat is as high as
   the screen (at least 460px), its own size not counted (contain). */
.room-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0; align-items: stretch; }
.room-screen-panel > :not(.section-title) { margin-right: 10px; }
.room-screen-panel > .section-title, .room-chat-panel > .section-title { margin: 0 0 8px; }
.room-screen-panel > .room-video-slot { margin-right: 0; }
.room-screen-panel, .room-chat-panel { min-width: 0; }
.room-now { margin: 6px 0 10px; }
.room-now-title { min-height: 14px; overflow: hidden; font-weight: bold; white-space: nowrap; text-overflow: ellipsis; }
.room-progress { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; }
.room-progress input { flex: 1; min-width: 0; margin: 0; accent-color: var(--back-595959); }
.room-time { width: 36px; color: var(--text-626262); font-variant-numeric: tabular-nums; }
.room-time:last-child { text-align: right; }
.room-screen-controls { display: flex; gap: 6px; margin: 8px 0 0; }
.room-queue { margin: 6px 0; padding-left: 22px; }
.room-queue li { padding: 3px 0; border-bottom: 1px solid var(--line-dedede); }
.room-queue-title { overflow-wrap: anywhere; }
.room-queue-remove { margin-left: 8px; }
.room-queue-empty { margin: 6px 0; }
.room-add { margin: 8px 0 0; }
.room-chat-panel { display: flex; flex-direction: column; min-height: 460px; border-left: 1px solid var(--line-dedede); contain: size; }
.room-chat-panel > :not(.section-title) { padding-left: 10px; }
.room-chat { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
.room-chat-empty { margin: 6px 0; }
/* A message is one line, as in the chats of the old sites: the bold name,
   then the words, wrapping under the line from its start. */
.room-chat-message { padding: 5px 0; border-bottom: 1px solid var(--line-eee); line-height: 1.4; }
.room-chat-message:last-child { border-bottom: 0; }
.room-chat-author { font-weight: bold; }
.room-chat-text { white-space: pre-wrap; }
/* A sticker is small, in the line after the colon, as a word is. */
.room-chat-message .sticker { display: inline-block; width: 40px; height: 40px; object-fit: contain; vertical-align: middle; }
.room-chat-message .im-message-text { display: inline; }
.room-chat-form { flex: none; padding-top: 6px; border-top: 1px solid var(--line-ccc); }
.room-chat-form textarea { box-sizing: border-box; width: 100%; height: 44px; resize: none; }
.room-chat-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.room-stickers { flex: none; max-height: 180px; overflow-y: auto; }
.room-video-slot { aspect-ratio: 16 / 9; margin: 6px 0 0; background: var(--back-f0f0f0); }
.room-view { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; }
.room-youtube-form { display: flex; gap: 6px; margin: 8px 0; }
.room-youtube-form input { min-width: 0; flex: 1; }
.room-media-host { position: fixed; z-index: 3; overflow: hidden; background: var(--back-fff); }
.room-media-host.room-media-away { left: -10000px !important; top: 0 !important; width: 320px !important; height: 180px !important; }
.room-media-host .room-player { position: static; inset: auto; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: var(--back-fff); }
.room-player .player-main, .room-player .player-queue, .room-player .player-close { display: none; }
.room-player .player-embed { position: static; width: 100%; height: 100%; overflow: hidden; opacity: 1; pointer-events: auto; }
.room-player .player-embed iframe { width: 100%; height: 100%; border: 0; }
/* The screen in full (room.js setFull): the video over the whole window,
   what plays under it and the chat at its right, unless it is hidden. */
.room-full .room-main { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; align-items: stretch; background: var(--back-fff); }
.room-full.room-chat-off .room-main { grid-template-columns: minmax(0, 1fr); }
.room-full.room-chat-off .room-chat-panel { display: none; }
.room-full .room-screen-panel { position: static; display: flex; flex-direction: column; min-height: 0; }
.room-full .room-screen-panel > :not(.section-title) { margin-right: 0; padding: 0 8px; }
.room-full .room-video-slot { flex: 1; min-height: 0; aspect-ratio: auto; margin: 0; padding: 0; background: var(--back-1f1f1f); }
.room-full .room-main .section-title { margin: 0; }
.room-full .room-queue-head, .room-full .room-queue, .room-full .room-queue-empty, .room-full .room-add { display: none; }
.room-full .room-chat-panel { height: auto; min-height: 0; margin: 0; contain: none; }
.room-full .room-chat { height: auto; }
.room-full .room-media-host { z-index: 71; }
.room-full { scrollbar-gutter: auto; overflow: hidden; }
.room-banner { display: none; }
.shell.with-room .room-banner { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 12px; box-sizing: border-box; height: 34px; padding: 3px 10px; border-bottom: 1px solid var(--line-ccc); background: var(--back-f0f0f0); }
.room-banner-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.shell.with-room .shell-frame { top: 34px; height: calc(100% - 34px); }
.room-voice-audio { display: none; }

/* Group pages and directories follow OpenVK's flat two-column layout. */
.club .club-section { margin: 5px 0 0; }
.club .club-section > .section-title { margin: 0; }
.club-section summary { display: block; cursor: pointer; }
.club-section summary::-webkit-details-marker { display: none; }
.club-section:not([open]) > summary { background-image: none; }
.club-section:not([open]) > summary::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 20px;
  height: 17px;
  background: url("/static/c/aa59ceb00500/icons/block-arrow.svg") no-repeat;
  transform: rotate(-90deg);
}
.club-section .info { margin: 5px 0; }
.club-section .info th { width: 30%; }
.club-section .info td, .club-preview-item { overflow-wrap: anywhere; }
.club-preview-item { padding: 6px 8px; }
.club-preview-empty { margin: 0; padding: 8px; text-align: center; }
.group-directory { margin: 0 -10px; padding: 12px; background: var(--back-f6f6f6); }
.group-directory:empty { display: none; }
.group-directory .list-row {
  margin: 0 0 6px;
  padding: 4px;
  border: 1px solid var(--line-dedede);
  background: var(--back-fff);
}
.group-directory .list-row:last-child { margin-bottom: 0; }
.club-list-row .info th { width: 1%; padding-right: 6px; white-space: nowrap; }
.club-list-type { text-transform: capitalize; }
.club-list-name { display: none; }
.group-directory .list-actions { width: 150px; }
.group-directory .list-actions .profile-link {
  box-sizing: border-box;
  width: 100%;
  padding: 3px;
  border: 0;
  border-bottom: 1px solid var(--line-ccc);
  background: transparent;
  color: var(--text-2b587a);
  font: inherit;
  text-align: left;
  text-transform: lowercase;
}
.group-directory .list-actions .profile-link:hover { background: var(--back-ededed); }
.groups-body .gray-bar { align-items: center; }
.groups-body .gray-bar-search { flex: 0 1 320px; }
.groups-body #create { margin-left: auto; }
.group-directory .info td { overflow-wrap: anywhere; }
.club-member-name { font-weight: bold; overflow-wrap: anywhere; }

/* "Перевод" and "Пополнение" are openvk's tables of its forms
   (cellspacing 7): no room kept under the fields, the recipient shown
   once picked and the fee under the button. */
.votes-form .form td { overflow-wrap: anywhere; }
.votes-form input.text { box-sizing: border-box; width: 100%; }
.votes-form .recipient-field { position: relative; }
.votes-form .recipient-options { position: absolute; z-index: 2; left: 0; right: 0; }
.votes-recipient { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.votes-recipient:has(> [hidden]) { display: none; }
.votes-recipient img { object-fit: cover; }
#transfer-fee { margin-top: 4px; }
#transfer-fee:empty { display: none; }
.votes-feedback { min-height: 2.6em; }

/* "История операций" of "Голоса": each line says what came or went, from
   or to whom, when, how much and what was left. */
.votes-flows a.active { color: var(--text-000); font-weight: bold; }
.votes-op { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-e8e8e8); }
.votes-op-about { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.votes-op-title { font-weight: bold; }
.votes-op-note { font-style: italic; }
.votes-op-date, .votes-op-balance { color: var(--text-626262); }
.votes-op-sum { flex: none; text-align: right; }
.votes-in { color: var(--text-43a047); }
.votes-out { color: var(--text-d94c4c); }
.votes-empty { margin: 8px 0; text-align: center; }


.gift-cat-info > .button { flex: none; }
.gift-sel .gift-price, .gift-sel .gift-limit { position: static; display: block; visibility: visible; width: auto; margin: 0; background: none; }

.gift-self { margin-top: 5px; }

.sidebar-form .age-confirmation { display: flex; align-items: baseline; gap: 4px; }

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-45688e);
  font: inherit;
  cursor: pointer;
}
.text-button:hover { text-decoration: underline; }

/* The keyboard's ring is for what is clicked: a field typed into keeps
   the grey line of the old sites, never the blue of the system. */
a[href]:focus-visible,
button:focus-visible,
input:is([type="checkbox"], [type="radio"], [type="range"]):focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid Highlight;
  outline-offset: 2px;
}

.help-text h2.faq-head { font-size: inherit; }

.privacy-owner-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.privacy-owner-card img { object-fit: cover; }


/* A room in the list: up to four photos of its people in the place of a
   club's picture, an empty grey square while nobody is in. */
.room-cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 37px;
  gap: 1px;
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  background: var(--back-ececec);
}
.room-cover img, .list-cover.room-cover img { width: 100%; height: 100%; }
.room-cover.single { grid-template-columns: 1fr; grid-auto-rows: 75px; }

/* "Пригласить в комнату": the friends to pick from lie over the window,
   and the line of who is picked or invited keeps its place. */
.room-invite-input { position: relative; flex: 1; }
.room-invite-input .modal-input { box-sizing: border-box; width: 100%; margin: 0; }
.room-invite-input .recipient-options { position: absolute; z-index: 2; left: 0; right: 0; }
.room-invite-place { min-height: 48px; }
.room-invite-who { display: flex; align-items: center; gap: 6px; }

/* The page of a post, as openvk's Post.latte: the comments on the left and
   the column "Действия" of the owner of the wall on the right. */
.with-acts .post-acts { float: right; box-sizing: border-box; width: 30%; margin-left: 2%; }
.with-acts .post-comments { display: flow-root; }
.post-acts .section-title { margin-bottom: 4px; }


/* "Предпросмотр фотографий": the picked photos before they are attached,
   and the votes a look at them costs. */
.photo-preview { width: 520px; }
.photo-preview-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 420px; overflow-y: auto; }
.photo-preview-list img { display: block; max-width: 100%; max-height: 300px; border: 1px solid var(--line-ccc); }
.photo-preview-price { margin: 10px 0 0; }
.photo-preview-price .price-input { width: 80px; margin: 0 4px; }
.photo-preview-price .hint { margin-left: 8px; }
.attachment-price { margin: 4px 0 0; color: var(--text-626262); }

/* OpenVK @listView.latte + components/error.latte, including its original
   center/span markup in groups.html and rooms.html. */
.ovk-empty-list { margin: 0 -10px; padding: 12px; background: var(--back-f6f6f6); }
.ovk-empty { background: var(--back-fff); border: var(--line-dedede) solid 1px; }
.ovk-empty-description { color: var(--text-707070); margin: 60px 0; display: block; }
.room-share-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 28px; margin: 6px 0; }
.room-display-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--back-1f1f1f); }
.room-full .room-share-controls { display: none; }

/* OpenVK's information block under the navigation. */
.sidebar-votes { margin: 10px 5px; padding: 8px; border: 1px solid var(--line-dedede); background: var(--back-f6f6f6); color: var(--text-707070); }
.sidebar-votes hr { margin: 6px 0; border: 0; border-top: 1px solid var(--line-dedede); }
.sidebar-votes .votes-balance { margin: 8px 0; color: var(--text-222); }
.sidebar-vote-actions { display: grid; gap: 6px; justify-items: start; }
.wallet-recipient { min-height: 32px; }
.wallet-feedback { min-height: 70px; }
.wallet-dialog .rating-field > .modal-input { flex: 1; min-width: 0; }
.room-video-actions { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; gap: 4px; }
.room-video-actions button { padding: 5px 8px; border: 1px solid var(--line-777); background: var(--back-3e3e3e); color: var(--text-fff); cursor: pointer; font: inherit; }
.room-video-actions .room-video-full { font-size: 20px; line-height: 18px; }
.room-full .room-screen-panel > .section-title,
.room-full .room-now { display: none; }
.room-full.shell .shell-frame { top: 0; height: 100%; }
.room-full.shell .room-banner,
.room-full.shell .player:not(.room-player) { display: none; }
.room-full .room-media-host { z-index: 71; }

/* The navigation scrolls independently when magnification makes it tall. */
html:has(.im-page) { overflow-y: hidden; }
.layout:has(.im-page) { display: flex; flex-direction: column; height: var(--view-height, 100dvh); min-height: 0; overflow-y: clip; }
.layout:has(.im-page) .columns { flex: 1; min-height: 0; }
.layout:has(.im-page) .sidebar { max-height: calc(100% - 4px); overflow-y: auto; overscroll-behavior: contain; margin-bottom: 0; }
.im-page { min-height: 0; }

/* Broadcasts use OpenVK's video page and profile sections. */
.broadcast-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 26px; }
.broadcast-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin: 6px 0; }
.broadcast-main { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 0; }
.broadcast-main .section-title { margin: 0; }
.broadcast-screen, .broadcast-chat-panel { min-width: 0; }
.broadcast-video-slot { position: relative; aspect-ratio: 16 / 9; background: var(--back-1f1f1f); }
.broadcast-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 20px; color: var(--text-fff); text-align: center; }
.broadcast-video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--back-1f1f1f); }
.broadcast-video-mirrored { transform: scaleX(-1); }
.broadcast-description { padding: 10px 0; overflow-wrap: anywhere; }
.broadcast-description p { white-space: pre-wrap; }
.broadcast-chat-panel { display: flex; flex-direction: column; min-height: 360px; height: 460px; border-left: 1px solid var(--line-dedede); }
.broadcast-chat-panel .room-chat { flex: 1; min-height: 0; overflow-y: auto; }
.broadcast-chat-panel > .hint { padding: 0 8px; }
.broadcast-list-row .list-cover img { width: 75px; height: 75px; object-fit: cover; }
.broadcast-list-description { color: var(--text-626262); margin: 6px 0 0; white-space: pre-wrap; }
.shell.with-broadcast .broadcast-banner { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 12px; box-sizing: border-box; height: 34px; padding: 3px 10px; border-bottom: 1px solid var(--line-ccc); background: var(--back-f0f0f0); }
.broadcast-banner a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell.with-broadcast .shell-frame { top: 34px; height: calc(100% - 34px); }
.broadcast-full { overflow: hidden; scrollbar-gutter: auto; }
.broadcast-full .broadcast-main { position: fixed; inset: 0; z-index: 70; grid-template-columns: minmax(0,1fr) 280px; background: var(--back-fff); }
.broadcast-full .broadcast-screen { display: flex; min-height: 0; }
.broadcast-full .broadcast-video-slot { flex: 1; aspect-ratio: auto; }
.broadcast-full .broadcast-chat-panel { height: auto; min-height: 0; }
.broadcast-full .broadcast-screen > .section-title, .broadcast-full .broadcast-description { display: none; }
.broadcast-full .broadcast-media-host { z-index: 71; }
.broadcast-full.broadcast-chat-off .broadcast-main { grid-template-columns: minmax(0,1fr); }
.broadcast-full.broadcast-chat-off .broadcast-chat-panel { display: none; }
.broadcast-full.shell .shell-frame { top: 0; height: 100%; }
.broadcast-full.shell .broadcast-banner { display: none; }
