.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 11px;
  background: #14b8a6;
}

.logo-large {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: cover;
  border-radius: 17px;
  background: #14b8a6;
}

.footer-logo-link {
  display: block;
  margin: 18px auto 0;
  width: calc(100% + 30px);
  max-width: 222px;
  margin-left: -15px;
  border-radius: 10px;
  background: #06172c;
}

.footer-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 10px;
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-logo-link:hover .footer-logo {
  opacity: .94;
  transform: translateY(-2px);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sidebar-bottom .made-by {
  width: 100%;
  text-align: center;
}

/* A quiet orientation marker: it must not compete with the product logo. */
.platform-context {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 10px 17px;
  padding: 4px 0;
  color: #b5cbd7;
  letter-spacing: normal;
}

.platform-context-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 7px;
  color: #fff;
}

.platform-context-mark img { display: block; width: 100%; height: 100%; }
.platform-context-telegram .platform-context-mark { background: #2aabee; }
.platform-context-telegram .platform-context-mark img { width: 68%; height: 68%; }

.platform-context-copy {
  display: grid;
  gap: 1px;
  line-height: 1.12;
}

.platform-context-copy small {
  color: #91acbc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.platform-context-copy strong {
  color: #e7f3f8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.token-setup {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 62%);
}

.setup-steps {
  margin: 14px 0 18px;
  padding-left: 23px;
  color: #334155;
  line-height: 1.65;
}

.setup-steps a {
  color: #0f766e;
  font-weight: 700;
}

.setup-steps code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #ccfbf1;
  color: #115e59;
}

.token-field input {
  margin-top: 7px;
}

.support-grid article small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.good { color: #0f766e; }
.warn { color: #b45309; }

.support-report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: #99f6e4;
}

.support-report h2 { margin-bottom: 8px; }
.support-report p { margin: 0; color: #475569; line-height: 1.55; }
.backup-status h2 { margin-bottom: 7px; }
.backup-status p { margin: 0; color: #475569; }

.updates-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: #b9e7df; background: linear-gradient(115deg, #f1fbf8, #fff 62%); }
.updates-panel h2 { margin: 4px 0 8px; }
.updates-panel-copy > p:not(.eyebrow) { margin: 0; max-width: 760px; color: #475569; line-height: 1.55; }
.update-history { margin-top: 13px !important; padding: 9px 11px; border-radius: 8px; background: #fff; color: #42605f !important; font-size: 13px; }
.update-note { margin: -8px 0 22px; }
.update-actions { display: grid; gap: 10px; min-width: 210px; }
.update-actions form { margin: 0; }
.update-actions button { width: 100%; }
.update-log { margin-top: -4px; }
.update-log h2 { margin-bottom: 10px; }
.update-log ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.update-log li { padding: 10px 12px; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 13px; line-height: 1.4; }
.update-log li strong { color: #0f766e; text-transform: uppercase; font-size: 11px; }
.update-log li span { color: #94a3b8; white-space: nowrap; }

.channel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-status {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
}

.channel-status.ok { color: #0f766e; }
.channel-status.error { color: #b45309; }

.channel-add-form { grid-template-columns: minmax(0, 1fr) auto; }
.channel-guide { border-color: #bde5de; background: linear-gradient(135deg, #f1fbf8, #fff 72%); }
.channel-guide h2 { margin: 4px 0 7px; }
.channel-guide .hint { margin: 0; max-width: 750px; }
.channel-guide ol { margin: 20px 0 0; padding-left: 23px; color: #334e5a; line-height: 1.65; }
.channel-guide li + li { margin-top: 7px; }
.channel-guide-note { margin: 18px 0 0; padding: 11px 13px; border-radius: 10px; background: #fff8e7; color: #805b17; font-size: 13px; }
.channel-guide code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bot-username { display: inline-flex; align-items: center; gap: 8px; margin: 0 4px; padding: 3px 4px 3px 9px; border: 1px solid #a9ded5; border-radius: 9px; background: #e8f8f5; box-shadow: inset 0 1px 0 rgb(255 255 255 / .72); vertical-align: middle; white-space: nowrap; }
.bot-username code { color: #0b6860; font-size: 12px; font-weight: 800; }
.copy-username { min-height: 27px; padding: 0 10px; border: 0; border-radius: 6px; background: #0d766d; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; line-height: 1; transition: background .15s ease, transform .15s ease; }
.copy-username:hover { background: #0b625b; }
.copy-username:active { transform: translateY(1px); }

@media (max-width: 900px) {
  .channel-add-form { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .bot-username { margin: 4px 0; }
}

.quality-options {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #ccfbf1;
  border-radius: 12px;
  background: #f0fdfa;
}

.quality-options > .hint { margin: 6px 0 12px; }

.quality-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.quality-checks label {
  color: #134e4a;
  font-weight: 700;
}

.quality-checks input { accent-color: #0f766e; }

.platform {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6fffb;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .support-report { align-items: flex-start; flex-direction: column; }
  .updates-panel { align-items: flex-start; flex-direction: column; }
  .update-actions { width: 100%; }
  .channel-actions { align-items: flex-end; flex-direction: column; }
}
