/* Bitrix24.Market app page (site/templates/pages/bitrix24-app.php): close to the Bitrix24
   interface (Market rule: «дизайн, близкий к интерфейсу Битрикс24»): light grey canvas, white
   cards, Open Sans / system font, blue primary and light buttons, Bitrix24-style switch. */
:root {
  --b24a-bg: #eef2f4;
  --b24a-card: #fff;
  --b24a-text: #333;
  --b24a-muted: #828b95;
  --b24a-line: #e3e8ec;
  --b24a-blue: #2fc6f6;
  --b24a-blue-dark: #11b0e0;
  --b24a-green: #9dcf00;
  --b24a-red: #ff5752;
  --b24a-red-bg: #fff3f3;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--b24a-bg); }
body {
  font: 14px/1.5 "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--b24a-text);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.b24a { max-width: 960px; margin: 0 auto; padding: 16px; }
.b24a__card {
  background: var(--b24a-card);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.b24a__h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.b24a__h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.b24a__lead { margin: 0; color: #525c69; }
.b24a__muted { color: var(--b24a-muted); margin: 0; }
.b24a__small { font-size: 12px; margin-top: 8px; }
.b24a__alert {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--b24a-red-bg);
  color: #a3302d;
}
.b24a__sites { list-style: none; margin: 0; padding: 0; }
.b24a__site { border-top: 1px solid var(--b24a-line); padding: 14px 0; }
.b24a__site:first-child { border-top: 0; padding-top: 4px; }
.b24a__site-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.b24a__site-title { font-weight: 600; }
.b24a__site-domain { color: #2067b0; text-decoration: none; font-size: 13px; word-break: break-all; }
.b24a__site-domain:hover { text-decoration: underline; }
.b24a__site-st { margin: 8px 0 0; color: var(--b24a-muted); font-size: 13px; }
.b24a__site-st.is-on { color: #5f8a00; }
.b24a__site-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.b24a__switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; font-size: 13px; }
.b24a__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b24a__switch-ui {
  position: relative; width: 36px; height: 20px; border-radius: 10px;
  background: #c6cdd3; transition: background .15s;
}
.b24a__switch-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.b24a__switch input:checked + .b24a__switch-ui { background: var(--b24a-green); }
.b24a__switch input:checked + .b24a__switch-ui::after { transform: translateX(16px); }
.b24a__switch input:focus-visible + .b24a__switch-ui { outline: 2px solid var(--b24a-blue); outline-offset: 2px; }
.b24a__switch input:disabled + .b24a__switch-ui { opacity: .5; }
.b24a__btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: 18px; border: 1px solid transparent;
  font: 600 12px/1 "Open Sans", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.b24a__btn--primary { background: var(--b24a-blue); color: #fff; }
.b24a__btn--primary:hover { background: var(--b24a-blue-dark); }
.b24a__btn--light { background: #fff; color: #535c69; border-color: #c6cdd3; }
.b24a__btn--light:hover { border-color: #828b95; }
.b24a__btn:disabled, .b24a__btn.is-busy { opacity: .6; cursor: default; }
.b24a__foot { border-top: 1px solid var(--b24a-line); margin-top: 8px; padding-top: 14px; }
.b24a__how { margin: 0 0 4px; padding-left: 20px; color: #525c69; }
.b24a__how li { margin-bottom: 6px; }
@media (max-width: 600px) {
  .b24a { padding: 8px; }
  .b24a__card { padding: 16px; }
  .b24a__site-head { flex-direction: column; align-items: flex-start; }
}
