:root {
  --teal: #0092a3;
  --teal-hover: #01c1d7;
  --dark: #212835;
  --table: #404a56;
  --page: #edecf2;
  --block: #e2e1e5;
  --line: #dbdade;
  --text: #3e3936;
  --muted: #888;
}

* { box-sizing: content-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--page);
  font: 12px Tahoma, Verdana, sans-serif;
}
img { border: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; }
p { line-height: 1.5; }
h1, h2, h3 { color: #343a42; font-family: "Arial Narrow", Tahoma, sans-serif; font-weight: 300; }
h1 { margin: 0 0 10px; font-size: 22px; }
h2 { margin: 20px 0 10px; font-size: 22px; }
h3 { margin: 12px 0 6px; font-size: 15px; }
hr { margin: 5px 0 10px; border: 0; border-bottom: 1px dashed #333; }
code { overflow-wrap: anywhere; }
.wrapper {
  width: 960px;
  max-width: calc(100% - 24px);
  margin-left: auto;
  margin-right: auto;
  clear: both;
}
.wrapper::after, .main::after, .home-bottom::after { content: ""; display: block; clear: both; }

/* A-DS desktop shell. */
.top { width: 100%; height: 100px; background: url("../img/bg.3f8ae32c1084.png") var(--dark); }
.top-inner { height: 100px; }
.logo { float: left; width: 209px; height: 100px; margin-left: 1px; }
.logo img { display: block; width: 209px; height: 100px; }
.banner {
  float: right;
  display: grid;
  width: 468px;
  height: 60px;
  margin-top: 20px;
  padding: 8px 12px;
  grid-template: 1fr 1fr / 1fr auto;
  align-items: center;
  color: #dce4e9;
  box-sizing: border-box;
  border: 1px solid #495564;
  background: rgb(255 255 255 / 6%);
}
.banner:hover { color: #fff; border-color: #657383; text-decoration: none; }
.banner span { font-size: 13px; letter-spacing: .08em; }
.banner b { grid-row: 1 / 3; grid-column: 2; color: #fff; font-size: 25px; font-weight: 400; }
.banner small { color: #8ea5ac; font-size: 10px; }

.menu_bg { width: 100%; height: 30px; background: var(--teal); }
.menu-wrap { height: 30px; }
ul.menu { width: 960px; height: 30px; margin: 0; padding: 0; list-style: none; }
ul.menu li { float: left; margin: 0 10px 0 0; padding: 0 15px 0 0; line-height: 27px; }
ul.menu li.item { float: right; margin: 0; padding: 0; }
ul.menu a, ul.menu button {
  padding: 0;
  color: #edecf2;
  border: 0;
  background: none;
  font: 16px/27px Tahoma, Verdana, sans-serif;
  cursor: pointer;
}
ul.menu a:hover, ul.menu button:hover { color: #fff; text-decoration: none; }
ul.menu a.active { color: #b4d6da; background: var(--teal); cursor: default; }
ul.menu form { margin: 0; }
.nav-toggle { display: none; }

.main {
  width: 960px;
  max-width: calc(100% - 24px);
  margin: 20px auto;
}
.main_info { float: left; width: 630px; padding-bottom: 10px; font-size: 13px; }
.auth-column { float: right; width: 320px; }
.auth-column #blok { float: right; width: 280px; }
#blok { margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); background: var(--block); }

/* Right authorization panel. */
.auth-head { min-height: 24px; font-size: 17px; font-weight: 400; }
.auth-head b { font-weight: 400; }
.auth-head a { float: right; font-size: 12px; line-height: 24px; }
.auth-login-table { width: 100%; padding-top: 6px; border: 0 !important; border-collapse: collapse; }
.auth-login-table td { padding: 0; border: 0 !important; background: transparent !important; text-align: left !important; }
.auth-login-table tr:nth-child(1) td { padding-top: 10px; padding-bottom: 10px; }
.auth-login-table tr:nth-child(2) td { padding-top: 10px; padding-bottom: 14px; }
.auth-login-table td:first-child { width: 65px; color: #333; }
.auth-login-table td:last-child { padding-right: 4px; }
.auth-login-table input { width: 100%; height: 25px; padding: 3px 5px; border: 1px solid #c7c7c7; background: #fff; font: 12px Tahoma, Verdana, sans-serif; }
.auth-login-table .auth-submit { text-align: right !important; }
.vtb_login { height: 36px; padding: 3px 0; overflow: hidden; border-bottom: 1px dashed #c9c9cb; font-size: 14px; line-height: 30px; }
.vtb_login b { font-size: 17px; font-weight: 400; }
.vtb_login.centered { text-align: center; }
.vtb { min-height: 26px; padding: 3px 0; border-bottom: 1px dashed #c9c9cb; line-height: 20px; }
.vtb::after { content: ""; display: block; clear: both; }
.vtlb { float: left; width: 136px; color: #111; border-right: 1px dashed #c9c9cb; font-size: 12px; }
.vtrb { float: left; width: 130px; margin-left: 6px; overflow-wrap: anywhere; }
.dash-link { border-bottom: 1px dashed var(--teal); text-decoration: none !important; }
.mini-help { display: inline-block; width: 14px; color: #9a4d18; border: 1px solid #fad28f; background: #fff6bd; font-size: 11px; line-height: 13px; text-align: center; cursor: help; }
.mini-warning { margin: 6px 0; padding: 5px; color: #7b5c00; border: 1px dashed #d18900; background: #fff8dc; }

/* Legacy buttons and flat forms. */
button, .button {
  display: inline-block;
  padding: 4px 16px;
  color: #fff;
  border: 1px solid #017d8c;
  border-radius: 0;
  background: var(--teal);
  box-sizing: border-box;
  font: 12px/16px Tahoma, Verdana, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { color: #fff; border-color: #01abbe; background: var(--teal-hover); text-decoration: none; }
button[disabled], .button.disabled { color: #fff; border-color: #999; background: #aaa; cursor: not-allowed; opacity: .8; }
.button.ghost { color: var(--teal); border-color: #9dc9ce; background: #fff; }
.button.ghost:hover { background: #f4ffff; }
.button.compact { padding: 3px 9px; }
.button.wide { width: 100%; text-align: center; }
.button.danger { border-color: #9e3333; background: #b64545; }
.button.danger:hover { background: #ca5353; }
.button.danger.ghost { color: #9e3333; border-color: #c99; background: #fff; }
.goback { color: var(--teal); border: 0; background: none; }
.goback:hover { color: var(--teal); background: none; text-decoration: underline; }
.link-button { padding: 0; color: var(--teal); border: 0; background: none; }
.form p { margin: 0 0 10px; }
.form label, .catalog-filter label, .deposit-box label { display: block; margin-bottom: 3px; font-weight: 700; }
.form input, .form textarea, .form select,
.catalog-filter input, .catalog-filter select,
.copy-row input, .copy-row textarea, .ledger-filter input, .ledger-filter select {
  box-sizing: border-box; width: 100%; padding: 6px; color: var(--text); border: 1px solid #c5c5c5; border-radius: 0; background: #fff; font: 12px Tahoma, Verdana, sans-serif;
}
.form textarea { min-height: 100px; resize: vertical; }
.form input[type="checkbox"], .catalog-filter input[type="checkbox"] { width: auto; }
.form .helptext { display: block; padding-top: 2px; color: var(--muted); font-size: 10px; }
.form-actions, .panel-actions, .row-actions, .row-gap { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline-block; margin: 5px 0; }
.errorlist { margin: 0; padding: 3px 0; color: #c40000; list-style: none; }

.notice, .warning, .message, .error { margin: 0 0 10px; padding: 8px; border: 1px dashed; background: #fff; }
.notice, .message.success { color: #286c33; border-color: #61a36d; background: #f2fff3; }
.warning, .message.warning { color: #7d5b14; border-color: #d3a344; background: #fff9e6; }
.error, .message.error { color: #e50303; border-color: #e50303; background: #fff2f2; }
.messages { margin-bottom: 10px; }
.muted, .table-sub { color: var(--muted); }
.error-text { color: #c00; }
.bold { font-weight: 700; }

/* Market tables. */
.table-wrap, .market-table-wrap { width: 100%; overflow-x: auto; }
.m_table, .all_table, table:not(.side-table):not(.auth-login-table) { width: 100%; border-collapse: collapse; border-bottom: 4px solid var(--table); }
.m_table td, .all_table td,
table:not(.side-table):not(.auth-login-table) th,
table:not(.side-table):not(.auth-login-table) td {
  padding: 5px 4px;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  background: #fff;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
}
.m_table td.a_site, table:not(.side-table):not(.auth-login-table) td:first-child { text-align: left; }
.m_table td.a_title, .all_table td.all_title, table:not(.side-table):not(.auth-login-table) th {
  color: #edecf2;
  border: 1px solid var(--table);
  background: var(--table);
  font-weight: 400;
}
.m_table td.a_title a, table:not(.side-table):not(.auth-login-table) th a { color: #edecf2; }
.m_table td:last-child, .all_table td:last-child,
table:not(.side-table):not(.auth-login-table) th:last-child,
table:not(.side-table):not(.auth-login-table) td:last-child { border-right: 0; }
.a_site small { display: block; margin-top: 2px; color: var(--muted); }
.market-table { min-width: 760px; }
.table-buy { display: inline-block; padding: 3px 7px; color: #fff !important; background: var(--teal); text-decoration: none; }
.table-buy:hover { background: var(--teal-hover); text-decoration: none; }

.catalog-filter, .ledger-filter {
  display: grid;
  gap: 8px;
  margin: 12px 0 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--block);
}
.catalog-filter { grid-template-columns: 1.5fr 1fr 1.25fr 85px 85px; }
.catalog-filter > div:nth-child(6) { grid-column: 1 / 3; }
.catalog-filter button { align-self: end; width: max-content; }
.filter-check { align-self: end; font-weight: 400 !important; }
.ledger-filter { grid-template-columns: 1.2fr 1fr 1fr auto auto; align-items: end; }
.ledger-filter .button { height: 29px; }

/* Flat content panels. */
.panel, .content-card, .checkout-card, .role-card, .placement-card, .news-card, .kpi, .wallet-hero {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.kpi, .wallet-hero { background: var(--block); }
.page-head, .section-head, .panel-head, .title-row, .wallet-hero { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.page-head h1, .compact-head h1, .title-row h1 { margin: 0; }
.page-head p { margin: 4px 0; }
.eyebrow { display: block; margin-bottom: 3px; color: var(--teal); font-size: 10px; text-transform: uppercase; }
.dashboard-layout { display: block; }
.account-nav, .account-user { display: none !important; }
.dashboard-main { display: block; width: 100%; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.kpi { margin: 0; }
.kpi small, .kpi span { display: block; color: #777; }
.kpi strong { display: block; margin-top: 6px; font-size: 20px; }
.two-col, .split-list, .detail-layout, .detail-grid, .checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-layout { grid-template-columns: 1.25fr .75fr; }
.sticky { align-self: start; position: sticky; top: 10px; }
.summary-list { margin: 0; }
.summary-list div, .detail-list > div { display: flex; gap: 10px; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #ddd; }
.summary-list dd, .detail-list dd { margin: 0; text-align: right; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 10px; border: 1px solid #ddd; background: #ddd; }
.facts-grid > div { padding: 8px; background: #fff; }
.facts-grid small { display: block; color: var(--muted); }
.facts-grid strong { display: block; margin-top: 3px; }
.price-xl { margin: 5px 0; color: var(--table); font-size: 24px; }
.price-xl span { font-size: 12px; }
.site-url { word-break: break-all; }
.report-link { display: block; margin-top: 9px; text-align: center; font-size: 11px; }
.placement-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #ddd; }
.placement-row h2 { margin: 2px 0; font: 14px Tahoma, Verdana, sans-serif; }
.cards-list { padding: 0 10px; border: 1px solid #ddd; background: #fff; }
.copy-row { display: flex; gap: 6px; margin-bottom: 8px; }
.copy-row > :first-child { flex: 1; }
.code-box { display: block; padding: 10px; border: 1px dashed #999; background: #fff; overflow-wrap: anywhere; }
.color-list { display: flex; gap: 5px; flex-wrap: wrap; }
.color-chip { padding: 3px 5px; border: 1px solid #ccc; background: #fff; }
.teaser-preview { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.teaser-preview img { width: 96px; height: 72px; object-fit: cover; }
.creative-preview-image { max-width: 100%; height: auto; }
.operation { display: grid; grid-template-columns: max-content 1fr; gap: 3px 8px; padding: 7px 0; border-bottom: 1px dashed #ddd; }
.operation strong { text-align: right; }
.operation small { grid-column: 1 / -1; }
.order-total { display: flex; justify-content: space-between; margin-top: 10px; padding: 8px 0; border-top: 1px dashed #aaa; }
.ticket, .news-item { padding: 10px 0; border-bottom: 1px dashed #aaa; }
.ticket-reply { margin: 8px 0 0; padding: 8px; border-left: 3px solid var(--teal); background: #f2ffff; }
.danger-zone { border-color: #d5aaaa; }
.number-list, .check-list { padding-left: 22px; }
.empty-state { padding: 20px; border: 1px solid #ddd; background: #fff; }
.prose { line-height: 1.5; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 12px 0; }
.pagination a, .pagination span { padding: 3px 6px; border: 1px solid #ccc; background: #fff; }
.badge, .status, .health, .format-badge { display: inline-block; padding: 2px 5px; border: 1px solid #ccc; background: #f7f7f7; font-size: 10px; }
.health.healthy, .status.active, .status.success, .status.credited, .status.answered { color: #18762b; border-color: #9cc9a3; background: #f0fff2; }
.health.warning, .status.review, .status.sweeping, .status.submitted { color: #8a6800; border-color: #d5bd65; background: #fffce9; }
.health.failed, .status.cancelled, .status.failed, .status.closed { color: #a00000; border-color: #dba1a1; background: #fff0f0; }

/* Home screen. */
.home_reg { height: 20px; margin: 20px 0 24px; overflow: hidden; }
.home_reg img { float: left; height: 20px; margin-right: 10px; }
.home_reg a { float: left; font-size: 20px; line-height: 19px; }
.home_reg a:hover { text-decoration: none; }
.m_news { float: left; width: 600px; margin: 0 0 20px; }
.m_news_title { float: left; width: 600px; margin-bottom: 5px; color: var(--muted); font-size: 15px; }
.m_news_title b { color: var(--text); }
.m_news_date { float: right; font-size: 13px; }
.m_news_text { float: left; width: 600px; text-align: justify; }
.infograf { width: 100%; height: 260px; clear: both; background: #fbfbfb url("../img/stripes.a91f24371135.png"); }
.infograf-inner { height: 260px; }
.ig_block { float: left; width: 172px; margin: 26px 90px 34px 0; text-align: center; }
.ig_block.last { margin-right: 0; }
.ig_block p { margin: 2px 0 0; font-size: 15px; }
.round { width: 172px; height: 120px; border-radius: 120px; }
.round img { max-width: 92px; max-height: 92px; margin-top: 20px; }
.ig_num { margin-top: 15px; color: var(--teal); font: 300 25px "Arial Narrow", Tahoma, sans-serif; }
.home-bottom { padding-top: 0; }
.left_mblocks { float: left; width: 635px; }
.rv_block { float: left; width: 295px; margin: 20px 20px 0 0; }
.rv_block.last { width: 320px; margin-right: 0; }
.rv_block h2 { margin: 0 0 10px; font-size: 22px; }
.rv_block ul { margin: 0; padding: 0; list-style: none; }
.rv_block li { margin: 0 0 3px; padding-left: 22px; background: url("../img/arrow.14a3a2c1f982.png") left center no-repeat; font-size: 14px; line-height: 18px; }
.links { float: right; width: 300px; margin: 20px 0 10px; overflow: hidden; }
/* Promo «Разместить ссылку» — etalon .sld geometry (l4 scaled for 0.025 USDT) */
.sld { width: 300px; height: 140px; position: relative; overflow: hidden; margin: 0; }
.sld a { display: block; width: 300px; height: 140px; margin: 0; padding: 0; color: #333b45; line-height: 0; text-decoration: none; }
.sld a:hover { color: #333b45; text-decoration: none; }
.sld .l1 { position: absolute; top: 14px; left: 17px; font: 24px Georgia, "Times New Roman", Times, serif; }
.sld .l2 { position: absolute; top: 18px; left: 0; font: 58px Georgia, "Times New Roman", Times, serif; }
/* одна линия цены: за 0.025 USDT */
.sld .l3 { position: absolute; top: 98px; left: 6px; font: 28px/1 Georgia, "Times New Roman", Times, serif; }
.sld .l4 { position: absolute; top: 94px; left: 48px; font: 32px/1 Georgia, "Times New Roman", Times, serif; letter-spacing: -0.5px; }
.sld .l5 { position: absolute; top: 102px; left: 150px; font: 16px/1 Georgia, "Times New Roman", Times, serif; }
.home-links-slot { margin-top: 8px; text-align: center; }
.home-links-slot .ads-widget { display: block; width: 100%; }
.home-links-slot .ads-link-buy { margin-top: 6px; }

/* Footer: menu first, two text columns below. */
.f_content { clear: both; width: 100%; height: 98px; min-height: 98px; margin-top: 40px; padding-top: 15px; color: #ebebeb; border-top: 10px solid var(--teal); background: #333b45; }
.footer-menu { margin-bottom: 5px !important; }
.f_left { float: left; margin: 0; padding: 0; color: #ebebeb; line-height: 18px; }
.f_right { float: right; padding-right: 20px; color: #ebebeb; line-height: 18px; text-align: right; }
.f_content a { color: #c6e7ea; }

@media (max-width: 980px) {
  .wrapper, .main { width: calc(100% - 24px); max-width: calc(100% - 24px); }
  ul.menu { width: 100%; }
  ul.menu li { margin-right: 5px; padding-right: 9px; }
  ul.menu a, ul.menu button { font-size: 14px; }
  .banner { width: 430px; }
  .main_info { width: calc(100% - 330px); }
  .auth-column { width: 320px; }
  .ig_block { width: 25%; margin: 26px 0 34px; }
  .round { margin: 0 auto; }
  .left_mblocks { width: calc(100% - 326px); }
  .rv_block, .rv_block.last { width: 48%; margin-right: 2%; }
}

@media (max-width: 760px) {
  .top, .top-inner { height: 80px; }
  .logo, .logo img { width: 167px; height: 80px; }
  .banner { display: none; }
  .menu_bg, .menu-wrap { height: auto; min-height: 36px; }
  .nav-toggle { display: block; margin: 5px 0; padding: 4px 10px; border-color: #006e7b; background: #007f8e; }
  ul.menu { display: none; height: auto; padding-bottom: 6px; }
  ul.menu.is-open, ul.menu.footer-menu { display: block; }
  ul.menu li, ul.menu li.item { float: none; margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / 12%); line-height: 30px; }
  ul.menu a, ul.menu button { display: block; width: 100%; font-size: 15px; text-align: left; }
  .main_info, .auth-column { float: none; width: 100%; }
  .auth-column { margin-top: 15px; }
  .auth-column #blok { float: none; width: 100%; }
  .main { margin-top: 14px; }
  .m_news, .m_news_title, .m_news_text { width: 100%; }
  .infograf, .infograf-inner { height: auto; }
  .infograf-inner { display: grid; grid-template-columns: 1fr 1fr; padding: 20px 0; }
  .ig_block, .ig_block.last { float: none; width: auto; margin: 0 0 18px; }
  .left_mblocks, .links { float: none; width: 100%; }
  .rv_block, .rv_block.last { float: none; width: 100%; margin: 12px 0; }
  .two-col, .split-list, .detail-layout, .detail-grid, .checkout-layout { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .catalog-filter, .ledger-filter { grid-template-columns: 1fr 1fr; }
  .catalog-filter > div:nth-child(6), .ledger-filter > div:first-child { grid-column: 1 / -1; }
  .page-head, .section-head, .panel-head, .title-row { display: block; }
  .page-head .button { margin-top: 6px; }
  .sticky { position: static; }
  .f_content { height: auto; min-height: 160px; }
  .f_left, .f_right { float: none; padding: 3px 0; text-align: left; }
}

@media (max-width: 430px) {
  .wrapper, .main { width: calc(100% - 16px); }
  .infograf-inner, .kpi-grid, .catalog-filter, .ledger-filter { grid-template-columns: 1fr; }
  .ig_block, .ig_block.last { margin-bottom: 12px; }
  .catalog-filter > div:nth-child(6), .ledger-filter > div:first-child { grid-column: auto; }
  .copy-row, .placement-row { display: block; }
  .copy-row > * { margin-bottom: 5px; }
  .row-actions { margin-top: 5px; }
  .vtlb { width: 48%; }
  .vtrb { width: 49%; margin-left: 3%; }
}

/* Legacy page primitives. */
.m_left { float: left; width: 600px; }
.m_l { float: left; width: 600px; margin: 0 0 10px; }
.m_name { float: left; width: 100px; margin: 0; font-weight: 700; line-height: 26px; }
.m_pole { float: left; width: 490px; margin-left: 10px; }
.pay_btn { float: left; width: 600px; margin: 5px 0 10px; }
.comment { float: left; margin: 11px 0 0 10px; }

.cart-cell { width: 42px; }
.cart-link { display: inline-block; width: 24px; height: 22px; overflow: hidden; vertical-align: middle; }
.cart-link img { display: block; max-width: 24px; max-height: 22px; margin: 0 auto; }
.catalog-note { min-height: 18px; margin: 8px 0 0; color: #666; font-size: 11px; }
.catalog-note img { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.placement-detail { width: 600px; }
.detail-trust { float: left; width: 600px; margin-top: 8px; }
.detail-trust p { margin: 6px 0; }
.buy-line { display: flex; gap: 8px; align-items: center; }
.buy-line img { width: 18px; height: 18px; }
.report-link-inline { margin-left: 10px; font-size: 11px; }
.ops-box p { margin: 4px 0; }
.transparency-table td:first-child { width: 145px; font-weight: 700; }
.support-form { width: 600px; }
.ticket .table-sub { display: block; margin: 4px 0; }

/* Desktop first: 960px composition. */
@media (min-width: 981px) {
  .top, .top-inner { height: 100px; }
  .main { width: 960px; margin: 20px auto; }
  .main_info { width: 630px; min-height: 0; }
  .auth-column { width: 320px; }
  .auth-column #blok { width: 280px; }
  .banner { width: 468px; height: 60px; margin: 20px 0 0; }
  .f_content { height: 98px; min-height: 98px; }
}

@media (max-width: 760px) {
  .m_left, .m_l, .placement-detail, .detail-trust, .support-form, .pay_btn { float: none; width: 100%; }
}
.auth-login-table input { box-sizing: border-box; }
@media (max-width: 760px) { .auth-column #blok { box-sizing: border-box; } }

/* Form geometry, adapted for validation and mobile. */
.m_name2 { float: left; width: 150px; margin: 0; font-weight: 700; line-height: 26px; }
.m_pole2 { float: left; width: 440px; margin: 0 0 0 10px; }
.m_line { float: left; width: 340px; margin: 0 0 5px; }
.m_left .m_line { width: 600px; }
.legacy-field::after, .legacy-form::after, .legacy-actions::after, .balance-actions::after { content: ""; display: block; clear: both; }
.legacy-form { float: left; width: 600px; margin: 0 0 10px; }
.legacy-form .m_pole2 input:not([type="checkbox"]):not([type="radio"]),
.legacy-form .m_pole2 select, .legacy-form .m_pole2 textarea {
  width: 100%; padding: 5px 6px; border: 1px solid #c5c5c5; border-radius: 0;
  background: #fff; box-sizing: border-box; color: var(--text); font: 12px Tahoma, Verdana, sans-serif;
}
.legacy-form .m_pole2 textarea { min-height: 84px; resize: vertical; }
.legacy-form .m_pole2 input[type="checkbox"], .legacy-form .m_pole2 input[type="radio"] { width: auto; margin: 5px 4px 0 0; }
.legacy-form .helptext, .legacy-field .helptext { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 14px; }
.legacy-form .errorlist, .field-error { margin: 2px 0 0; padding: 0; color: #c40000; font-size: 11px; list-style: none; }
.legacy-clear { clear: both; }
.legacy-copy { display: flex; gap: 6px; align-items: center; }
.legacy-copy input, .legacy-copy textarea { flex: 1; }
.legacy-inline-icon { width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; }
.legacy-code { display: block; max-width: 100%; padding: 8px; border: 1px dashed #999; background: #fff; overflow-wrap: anywhere; white-space: pre-wrap; }
.legacy-actions, .balance-actions { margin: 7px 0 10px; }
.legacy-actions > *, .balance-actions > * { float: left; margin: 0 7px 5px 0; }
.balance-line { margin: 0 0 10px; padding: 8px 0; border-top: 1px dashed #bbb; border-bottom: 1px dashed #bbb; font-size: 14px; }
.balance-line b { font-size: 18px; font-weight: 400; }
.legacy-filter { margin: 8px 0 10px; padding: 8px; border: 1px solid var(--line); background: var(--block); }
.legacy-filter label { margin-right: 8px; font-weight: 700; }
.legacy-filter input, .legacy-filter select { margin-right: 8px; padding: 4px; border: 1px solid #c5c5c5; background: #fff; }
.legacy-ops-table { min-width: 620px; }
.legacy-ops-table img { max-width: 18px; max-height: 18px; vertical-align: middle; }
.icon-form { display: inline; margin: 0; }
.icon-button, button.icon-button { width: 24px; height: 22px; margin: 0; padding: 0; border: 0; background: transparent; vertical-align: middle; }
.icon-button:hover, button.icon-button:hover { border: 0; background: transparent; }
.icon-button img { display: block; max-width: 20px; max-height: 20px; margin: 0 auto; }
button.danger { border-color: #9e3333; background: #b64545; }
button.danger:hover { background: #ca5353; }
.legend-table { width: auto !important; margin: 8px 0; border: 0 !important; }
.legend-table td { padding: 2px 10px 2px 0 !important; border: 0 !important; background: transparent !important; text-align: left !important; }
.legend-table img { width: 16px; height: 16px; vertical-align: -3px; }
.pay-icon { max-width: 64px; max-height: 30px; margin-right: 8px; vertical-align: middle; }
.order-total-legacy { margin: 10px 0; padding: 7px 0; border-top: 1px dashed #aaa; border-bottom: 1px dashed #aaa; font-size: 14px; }
.order-total-legacy b { font-size: 18px; }
.legacy-deposit { margin: 8px 0 12px; padding: 10px; border: 1px solid var(--line); background: var(--block); }
.legacy-deposit code { display: block; margin: 5px 0; padding: 7px; border: 1px dashed #999; background: #fff; }
.okey span { border-bottom: 1px dashed var(--teal); }
.okey:hover { text-decoration: none; }

@media (max-width: 760px) {
  .m_name2, .m_pole2 { float: none; width: 100%; margin-left: 0; }
  .m_name2 { line-height: 20px; }
  .legacy-form, .m_left .m_line { float: none; width: 100%; }
  .legacy-copy { display: block; }
  .legacy-copy > * { margin-bottom: 5px; }
  .legacy-filter label, .legacy-filter input, .legacy-filter select { display: block; width: 100%; margin: 0 0 6px; box-sizing: border-box; }
}

/* Catalog controls. */
.legacy-market-tabs { line-height: 22px; }
.legacy-market-tabs a { border-bottom: 1px dashed var(--teal); text-decoration: none; }
.legacy-market-tabs a.active { font-weight: 700; }
.legacy-market-filter { float: left; width: 600px; margin: 0 0 12px; }
.legacy-market-filter > select, .legacy-market-filter > input { height: 27px; margin-right: 3px; padding: 3px 5px; border: 1px solid #c5c5c5; border-radius: 0; background: #fff; box-sizing: border-box; font: 12px Tahoma,Verdana,sans-serif; }
.legacy-market-filter .market-category { width: 250px; }
.legacy-market-filter .market-price { width: 95px; }
.legacy-market-extra { display: flex; gap: 5px; align-items: center; margin-top: 7px; }
.legacy-market-extra > input { width: 250px; padding: 5px; border: 1px solid #c5c5c5; box-sizing: border-box; }
.legacy-market-extra > select { width: 165px; padding: 4px; border: 1px solid #c5c5c5; }
.legacy-market-extra label { font-weight: 400; white-space: nowrap; }
@media (max-width: 760px) {
  .legacy-market-filter { float: none; width: 100%; }
  .legacy-market-filter > select, .legacy-market-filter > input, .legacy-market-filter .market-category, .legacy-market-filter .market-price { width: 100%; margin: 0 0 5px; }
  .legacy-market-extra { display: block; }
  .legacy-market-extra > input, .legacy-market-extra > select { width: 100%; margin: 0 0 5px; box-sizing: border-box; }
}


/* Official A-DS host slots on a-ds.ru */
.banner.ads-host-banner {
  display: block;
  width: 468px;
  height: 60px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  box-sizing: content-box;
}
.ads-host-banner > div { width: 468px; height: 60px; }
.ads-host-banner .ads-widget,
.ads-host-banner .ads-banner { display: block; width: 468px !important; height: 60px !important; max-width: 468px; }
