.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.channel-address {
  overflow-wrap: anywhere;
}
.card-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.ad-color-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.ad-color-controls input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 3px;
  flex-shrink: 0;
}
.ad-color-controls input[type="text"],
.ad-color-controls input[name="color"] {
  min-width: 100px;
  flex: 1;
}
.ad-color-controls button {
  white-space: nowrap;
  flex-shrink: 0;
}
.card-filter input {
  flex: 1;
  min-width: 220px;
}
.card-filter select {
  width: 160px;
}
.user-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.user-filter input {
  flex: 1 1 240px;
  min-width: 0;
}
.user-filter select {
  width: 150px;
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.user-cards {
  display: none;
}
.user-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: #526d7f;
}
.user-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: #526d7f;
}
.user-pagination p {
  margin: 0;
}
.pagination-controls,
#user-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
#user-page-form label {
  margin: 0;
  white-space: nowrap;
}
#user-page {
  width: 82px;
  padding: 8px;
}
:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  color: #34485c;
  background: #f5f7fa;
  --teal: #119d89;
  --border: #e4eaf0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #119d8940;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
#login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-decoration {
  background: linear-gradient(145deg, #132b36, #24564e);
  color: #fff;
  padding: 12vh 14%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.logo-large {
  width: 70px;
  height: 70px;
  background: #2b7061;
  border: 1px solid #ffffff26;
  border-radius: 19px;
  display: grid;
  place-items: center;
  font-size: 40px;
  margin-bottom: 65px;
  position: relative;
}
.logo-large span {
  color: #74dcc1;
  position: absolute;
  right: 15px;
  bottom: 3px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #76b3a1;
  margin-bottom: 17px;
}
.login-decoration h1 {
  font-size: 35px;
  font-weight: 500;
  letter-spacing: 2px;
  margin: 0 0 22px;
  white-space: nowrap;
}
.login-decoration p {
  color: #94b6b0;
  font-size: 13px;
  line-height: 2.2;
}
.login-foot {
  font-size: 10px;
  color: #638f85;
  margin-top: 80px;
}
.login-form-wrap {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form-wrap form {
  width: 330px;
}
.mini-logo {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #139f8b;
  color: #fff;
  font-size: 21px;
  font-weight: 600;
}
.login-form-wrap h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 28px 0 12px;
}
.login-form-wrap p {
  color: #9aa7b4;
  font-size: 11px;
  margin-bottom: 30px;
}
.login-form-wrap small {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #a2aeb9;
  margin-top: 22px;
}
label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #7a8e9e;
  gap: 9px;
  margin-bottom: 20px;
}
#mail-form fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
#mail-form fieldset[hidden] {
  display: none;
}
.mail-guide {
  margin-top: 20px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #dae3e9;
  border-radius: 6px;
  padding: 11px 12px;
  color: #435e70;
  background: #fff;
}
input::placeholder,
textarea::placeholder {
  color: #afb9c3;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: #5ab6a4;
  box-shadow: 0 0 0 3px #119d8910;
}
textarea {
  resize: vertical;
  line-height: 1.8;
  min-height: 80px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dce5eb;
  color: #718596;
  border-radius: 6px;
  min-height: 35px;
  padding: 0 15px;
  font-size: 11px;
  white-space: nowrap;
}
.btn:hover {
  border-color: #7db7a9;
  color: #208f79;
}
.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.btn.primary:hover {
  background: #0c8677;
}
.btn.danger {
  color: #bf7280;
  border-color: #eed7db;
}
.btn.full {
  width: 100%;
  height: 41px;
}
.btn.small {
  min-height: 29px;
  padding: 0 10px;
  font-size: 10px;
}
.error {
  color: #b36573;
  background: #fff1f4;
  font-size: 11px;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  display: none;
}
.error:not(:empty) {
  display: block;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e9f2f1;
  padding: 33px 25px 40px;
  font-size: 16px;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #789487;
  margin-top: 7px;
  letter-spacing: 2px;
}
#console {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 220px;
  background: #162934;
  color: #8da2af;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
}
.nav-caption {
  font-size: 10px;
  color: #5e7a88;
  padding: 0 27px 15px;
  letter-spacing: 2px;
}
nav {
  padding: 0 15px;
}
nav button {
  border: 0;
  background: none;
  border-radius: 6px;
  color: #93a7b3;
  text-align: left;
  padding: 13px 15px;
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
}
nav button.active {
  background: #204640;
  color: #7ed0b5;
  box-shadow: inset 3px 0 #30ae8a;
}
nav button:hover {
  background: #263f48;
}
nav span {
  margin-left: auto;
  font-size: 10px;
  color: #76ac98;
}
.aside-foot {
  position: absolute;
  bottom: 28px;
  left: 27px;
  font-size: 11px;
  color: #8ba89e;
}
.aside-foot small {
  display: block;
  font-size: 9px;
  margin-top: 10px;
  color: #4d7580;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #32bb95;
  border-radius: 50%;
  margin-right: 7px;
}
.console-main {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
header {
  height: 70px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 11px;
  color: #98a7b4;
}
header b {
  font-weight: 400;
  color: #526d7f;
}
header span {
  padding: 0 13px;
  color: #c1cbd4;
}
.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.header-actions span {
  padding: 0;
  color: #739181;
}
main {
  padding: 35px 36px;
  flex: 1;
}
footer {
  padding: 16px 36px;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 1px;
  color: #9eacb7;
}
footer span {
  float: right;
  letter-spacing: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}
.page-head h1 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 600;
  color: #263e50;
}
.page-head p {
  margin: 0;
  color: #97a7b4;
  font-size: 11px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 26px;
  box-shadow: 0 3px 5px #1d3d4a03;
}
.card h2 {
  font-size: 14px;
  font-weight: 550;
  margin: 0 0 9px;
}
.card > p {
  font-size: 11px;
  line-height: 1.9;
  color: #97a8b5;
  margin-bottom: 25px;
}
.grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.full-field {
  grid-column: 1/-1;
}
.hint {
  font-size: 10px;
  color: #a0aeb8;
  line-height: 1.8;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid #ecf1f4;
}
.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}
.switch-row p {
  font-size: 10px;
  color: #a0acb6;
  line-height: 1.8;
}
.note {
  font-size: 11px;
  line-height: 2;
  color: #739b88;
  background: #eff8f3;
  border: 1px solid #deede4;
  border-radius: 6px;
  padding: 14px 16px;
}
.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 23px;
  gap: 9px;
}
.preview {
  background: #f4f8f6;
  border: 1px dashed #ccddd3;
  border-radius: 8px;
  padding: 24px;
  margin-top: 20px;
}
.preview strong {
  color: #2c6557;
  font-size: 18px;
  font-weight: 550;
}
.preview p {
  color: #87a297;
  font-size: 11px;
}
.preview .announcement-preview {
  border-top: 1px solid #dfeae5;
  margin-top: 20px;
  padding-top: 15px;
  line-height: 1.8;
  font-size: 11px;
  color: #7b9b8b;
}
.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ad-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.ad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  background: #f1f5f8;
  color: #8a9dab;
  border-radius: 4px;
  font-size: 10px;
}
.badge.green {
  background: #edf8f1;
  color: #5a9b77;
}
.badge.gray {
  background: #f5f3f3;
  color: #ac969a;
}
.ad-card h3 {
  font-size: 15px;
  font-weight: 550;
  color: #486776;
  margin: 22px 0 10px;
}
.ad-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #98a9b6;
  min-height: 20px;
}
.ad-card img {
  max-width: 100%;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 10px 0;
  border-radius: 5px;
}
.ad-url {
  font:
    10px Consolas,
    monospace;
  color: #9ab1bd;
  word-break: break-all;
}
.ad-foot {
  border-top: 1px solid #edf1f4;
  margin-top: 20px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ad-foot > div {
  display: flex;
  gap: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  font-size: 11px;
  color: #8ea2b1;
}
.stat strong {
  display: block;
  font-size: 27px;
  color: #466f6b;
  font-weight: 550;
  margin-top: 12px;
}
.table-card {
  padding: 0;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f8fafb;
  font-size: 10px;
  color: #91a3b1;
  padding: 14px 19px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 19px;
  font-size: 11px;
  color: #7c96a6;
  border-bottom: 1px solid #edf2f5;
}
td strong {
  color: #4b687b;
  font-weight: 500;
}
.empty {
  padding: 70px 30px;
  text-align: center;
  color: #9bb0bb;
}
.empty h3 {
  font-weight: 500;
  color: #73948b;
  font-size: 16px;
}
.empty p {
  font-size: 11px;
  line-height: 1.9;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #162d4766;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(3px);
  padding: 25px;
}
.modal {
  background: #fff;
  border-radius: 11px;
  width: 640px;
  max-width: 95vw;
  max-height: 94vh;
  overflow: auto;
  box-shadow: 0 10px 90px #152d4155;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 16px;
  font-weight: 550;
  margin: 0;
}
.close {
  border: 0;
  background: none;
  font-size: 24px;
  color: #a3afba;
}
.modal-body {
  padding: 24px 26px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #f8fafb;
  padding: 17px 26px;
  border-top: 1px solid var(--border);
}
#toast {
  position: fixed;
  left: calc(50% + 80px);
  bottom: 35px;
  transform: translateX(-50%);
  background: #245447;
  color: #ddf1e6;
  border-radius: 7px;
  padding: 13px 23px;
  font-size: 12px;
  z-index: 100;
  display: none;
  box-shadow: 0 3px 16px #203d4120;
}
#toast.visible {
  display: block;
}
#toast.error-toast {
  background: #85545d;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .ads-grid {
    grid-template-columns: 1fr;
  }
  .login-decoration {
    padding: 70px 12%;
  }
  .login-decoration h1 {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  #login-screen {
    display: block;
  }
  .login-decoration {
    display: none;
  }
  .login-form-wrap {
    min-height: 100vh;
  }
  aside {
    width: 170px;
  }
  .console-main {
    margin-left: 170px;
  }
  main {
    padding: 25px 18px;
  }
  header {
    padding: 0 18px;
  }
  .brand {
    padding-left: 20px;
    font-size: 14px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 21px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-menu,
.menu-backdrop {
  display: none;
}
@media (max-width: 700px) {
  .desktop-crumb {
    display: none;
  }
  .console-main header b {
    white-space: nowrap;
  }
}
.table-card {
  max-width: 100%;
  overflow-x: auto;
}
.card {
  min-width: 0;
}
.card-filter {
  min-width: 0;
}
@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }
  .console-main {
    margin-left: 0;
    min-width: 0;
  }
  aside {
    width: 250px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.18s;
    z-index: 55;
  }
  .menu-open aside {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-menu {
    display: block;
    flex: none;
  }
  .menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #132f4266;
    z-index: 50;
  }
  .console-main header {
    padding: 12px;
    gap: 10px;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }
  .console-main header > div:first-of-type {
    flex: 1;
    font-size: 12px;
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  #admin-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  main {
    padding: 22px 14px;
  }
  .page-head {
    flex-wrap: wrap;
    gap: 14px;
  }
  .card {
    padding: 18px;
  }
  .table-card {
    padding: 0;
  }
  .table-card table {
    min-width: 680px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat strong {
    font-size: 23px;
  }
  .card-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .card-filter select,
  .card-filter input {
    width: 100%;
    min-width: 0;
  }
  .card-filter input {
    grid-column: 1/-1;
  }
  .card-filter button {
    grid-column: 1/-1;
  }
  .form-grid input,
  .form-grid select,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .submit-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 90dvh;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    flex-wrap: wrap;
    padding: 16px;
  }
  .modal-footer .btn {
    flex: 1;
    white-space: nowrap;
  }
  footer {
    padding: 18px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
  }
  #toast {
    left: 50%;
    width: calc(100% - 28px);
    text-align: center;
    bottom: 18px;
  }
  .login-form-wrap {
    padding: 30px 20px;
  }
  .note {
    overflow-wrap: anywhere;
  }
  .grid,
  .ads-grid {
    min-width: 0;
  }
}

/* Touch layouts keep account actions visible without sideways scrolling. */
@media (max-width: 700px) {
  aside {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top);
  }
  body.menu-open {
    overflow: hidden;
  }
  #menu-close {
    position: absolute;
    right: 8px;
    top: max(8px, env(safe-area-inset-top));
    min-width: 44px;
    min-height: 44px;
    color: #d9eae8;
  }
  aside .brand {
    padding: 28px 22px;
  }
  aside nav {
    padding-bottom: 16px;
  }
  .aside-foot {
    position: static;
    margin-top: auto;
    padding: 22px 27px max(24px, env(safe-area-inset-bottom));
    flex-shrink: 0;
  }
  .console-main header {
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .header-actions {
    flex-wrap: wrap;
  }
  .page-head p {
    font-size: 13px;
    color: #526d7f;
    line-height: 1.8;
  }
  .user-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .user-stats .stat {
    padding: 14px 10px;
    font-size: 11px;
    color: #526d7f;
  }
  .user-stats .stat strong {
    font-size: clamp(18px, 5.2vw, 24px);
    overflow-wrap: anywhere;
  }
  .users-table {
    display: none;
  }
  .user-cards {
    display: grid;
    gap: 14px;
  }
  .user-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .user-card-head > div {
    min-width: 0;
  }
  .user-card h2 {
    font-size: 16px;
    color: #263e50;
    overflow-wrap: anywhere;
  }
  .user-card .badge {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .user-card dl {
    margin: 16px 0;
    padding: 14px 0;
    border-top: 1px solid #dce5eb;
    border-bottom: 1px solid #dce5eb;
  }
  .user-card dl > div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.7;
  }
  .user-card dl > div:last-child {
    margin-bottom: 0;
  }
  .user-card dt {
    color: #637d8d;
  }
  .user-card dd {
    margin: 0;
    color: #263e50;
    overflow-wrap: anywhere;
  }
  .user-card dd small {
    display: block;
    color: #637d8d;
  }
  .user-card .hint {
    color: #637d8d;
    font-size: 12px;
  }
  .user-card .user-actions .btn {
    flex: 1;
  }
  .user-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .user-filter input {
    width: 100%;
    grid-column: 1/-1;
  }
  .user-filter select {
    width: 100%;
    min-width: 0;
  }
  .user-filter .btn {
    padding: 0 12px;
  }
  .user-list-head {
    gap: 8px;
    font-size: 12px;
  }
  .user-pagination {
    justify-content: center;
    gap: 14px;
  }
  .user-pagination > p {
    width: 100%;
    text-align: center;
    line-height: 1.8;
  }
  .pagination-controls {
    justify-content: space-between;
    width: 100%;
    gap: 6px;
  }
  .pagination-controls > span {
    font-size: 12px;
    white-space: nowrap;
  }
  .btn,
  .btn.small,
  .close {
    min-height: 44px;
    font-size: 13px;
  }
  label,
  .card > p,
  .note,
  .hint,
  .switch-row p {
    font-size: 12px;
    color: #637d8d;
  }
  label,
  .form-grid > *,
  .switch-row > div {
    min-width: 0;
  }
  .switch-row {
    gap: 16px;
    line-height: 1.8;
  }
  .switch-row input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .ad-foot,
  .ad-foot > div {
    flex-wrap: wrap;
  }
  .modal {
    max-height: calc(100dvh - 24px);
  }
  .modal-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    padding: 16px;
  }
  .modal-head h2 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .modal-head .close {
    flex-shrink: 0;
    min-width: 44px;
  }
  .modal-body {
    overflow-wrap: anywhere;
  }
}

#channel-node-form label.switch-row,
#channel-node-form label.channel-enabled {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  color: #344e63;
}
#channel-node-form label.channel-enabled input {
  width: 20px;
  height: 20px;
  flex: none;
  order: 1;
}
#channel-node-form label.switch-row input {
  flex: none;
}
#channel-node-form .modal-footer {
  position: sticky;
  bottom: 0;
}

label.quota-control {
  padding: 14px;
  background: #edf7f4;
  border: 1px solid #75a99b;
  border-radius: 8px;
  color: #183f3a;
  font-weight: 600;
}
label.quota-control input {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
}

/* Full codes remain searchable and selectable at desktop and mobile widths. */
.full-card-code{display:block;min-width:240px;max-width:360px;white-space:normal;overflow-wrap:anywhere;font:600 12px/1.7 Consolas,"Courier New",monospace;color:#173f52;user-select:text}
.card-code-note{display:block;max-width:320px;white-space:normal;overflow-wrap:anywhere;color:#8a5736;font-size:12px;line-height:1.7}
.channel-node-list{margin-bottom:18px}
.channel-node-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.channel-node-heading h2{margin:0}.channel-node-heading h2 span{font-size:12px;font-weight:400;color:#607885;margin-left:8px}
.channel-node-heading p{font-size:12px;color:#607885}
.channel-node-table{width:100%;min-width:760px}
.channel-node-table td{vertical-align:middle;padding:14px 12px}
.channel-node-table td:first-child{width:23%;white-space:normal;overflow-wrap:anywhere}
.node-id{display:block;color:#718694;font:11px/1.8 Consolas,monospace;user-select:text}
.channel-node-table .channel-address{white-space:normal;min-width:270px;max-width:420px;padding:10px 12px}
.channel-address code{display:block;font:12px/1.8 Consolas,monospace;overflow-wrap:anywhere;user-select:text}
.channel-node-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:140px}
.node-enabled{display:inline-block;border-radius:4px;padding:3px 7px;white-space:nowrap;font-size:12px}
.node-enabled.on{color:#216e60;background:#e8f5f0}.node-enabled.off{color:#6e737b;background:#eef0f3}
.channel-node-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px;font-size:12px}
.channel-node-pagination>span{margin-right:auto}.channel-node-pagination label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0}
.channel-node-pagination input{width:70px;min-height:34px;padding:5px}
@media(max-width:640px){.channel-node-heading{align-items:flex-start;flex-direction:column;gap:0}.channel-node-heading p{margin:4px 0 12px}.channel-node-pagination{justify-content:flex-start}.channel-node-pagination>span{width:100%}.channel-node-list .card-filter{margin-top:12px}}

.channel-quota-details{margin-bottom:18px}.channel-quota-details summary{font-size:15px;font-weight:700;color:#1b5149;cursor:pointer;padding:4px 0}.channel-quota-details[open] summary{margin-bottom:14px}

.payment-table{width:100%;min-width:760px}.payment-table small{display:block;color:#607986;font-size:12px;white-space:normal;overflow-wrap:anywhere;margin-top:5px}.table-scroll{overflow:auto;max-width:100%}.payment-table td{vertical-align:top}.payment-config textarea{font:12px/1.7 Consolas,monospace;min-height:78px;resize:vertical}.payment-config [data-certificate][hidden]{display:none}.payment-check{display:flex;align-items:flex-start;gap:9px;margin:15px 0;font-size:13px}.payment-check input[type=checkbox]{width:17px;height:17px;flex-shrink:0;margin-top:3px}.payment-inline-status{display:block;font-size:13px;color:#a24e46;margin:12px 0;overflow-wrap:anywhere}.payment-modal{max-width:780px;width:calc(100vw - 32px);max-height:90vh;overflow:auto}.payment-detail{padding:24px}.payment-order-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.payment-refund{border:1px solid #e1d2c8;border-radius:9px;padding:14px;margin:18px 0}.payment-refund summary{cursor:pointer;font-weight:700;color:#986041}.payment-detail code{overflow-wrap:anywhere;font-size:12px}@media(max-width:640px){.payment-modal{max-height:94vh}.payment-detail{padding:18px}.payment-config{padding:20px}.payment-order-actions{flex-direction:column}.payment-table{min-width:690px}}

/* Keep long desktop and mobile navigation inside the available height. */
aside{display:flex;flex-direction:column;overflow:hidden}aside .brand,aside .nav-caption{flex-shrink:0}aside nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px}.aside-foot{position:static;flex-shrink:0;margin:0;padding:16px 27px 22px}

[data-product-member][hidden],[data-product-channel][hidden]{display:none!important}

.channel-package-entry{border-color:#79b6a8;background:#f8fcfa;margin-bottom:18px}.channel-package-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.channel-package-heading h2{margin-top:0}.channel-package-heading p{margin:6px 0;color:#607986;font-size:13px}.channel-package-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}.channel-package-list{margin-top:14px;border-top:1px solid #d5e4df}.channel-package-item{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #d5e4df}.channel-package-item strong,.channel-package-item span{display:block;overflow-wrap:anywhere}.channel-package-item span{font-size:12px;color:#607986;margin-top:5px}.channel-package-item .btn{flex-shrink:0}.channel-package-empty{padding:15px;background:#eaf4f0;border-radius:7px;font-size:13px;color:#406b61}@media(max-width:800px){.channel-package-heading{flex-direction:column}.channel-package-actions{width:100%}.channel-package-actions .btn{flex:1}.channel-package-item{align-items:flex-start}}@media(max-width:420px){.channel-package-actions{flex-direction:column}.channel-package-item{flex-direction:column;gap:8px}}

[data-wechat-version][hidden]{display:none!important}.payment-config details{border:1px solid #cbded6;border-radius:8px;padding:12px;margin:14px 0}.payment-config details summary{cursor:pointer;font-weight:600}
