@charset "UTF-8";
.telegram-profile-actions {
  margin-top: 18px
}
.telegram-profile-actions small {
  display: block;
  margin-top: 9px;
  line-height: 1.7
}
.telegram-profile-message {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
  margin-top: 10px;
  overflow-wrap: anywhere
}
.telegram-profile-message:empty {
  display: none
}
.telegram-profile-message[data-state=loading] {
  color: #4654c9
}
.telegram-profile-message[data-state=success] {
  color: #18764b
}
.telegram-profile-message[data-state=error] {
  color: #b42336
}
.admin-body {
  background: #f5f6fb;
  font-size: 13px
}
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px 20px;
  background: radial-gradient(ellipse at 20% 20%,#e8edff,transparent 50%),#f8f9fd
}
.login-screen>.brand {
  margin-bottom: 28px
}
.login-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 15px 70px #3845740c;
  padding: 35px;
  width: min(410px,100%)
}
.login-card h1 {
  font-size: 27px;
  margin: 8px 0
}
.login-card form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin-top: 20px
}
.login-card input {
  font-size: 12px
}
.login-back {
  font-size: 11px;
  color: #929ab2;
  margin-top: 25px
}
.install-note {
  font-size: 11px;
  line-height: 1.8;
  color: #9099ac;
  margin-top: 20px
}
.install-note code {
  overflow-wrap: anywhere
}
.admin-app {
  display: flex;
  min-height: 100vh
}
.admin-sidebar {
  width: 228px;
  background: #19213a;
  color: #adb5cc;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 30px 20px 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #65718e #19213a
}
.admin-sidebar>* {
  flex-shrink: 0
}
.admin-sidebar>.brand {
  color: #f7f8ff;
  font-size: 22px;
  gap: 9px;
  margin-left: 4px
}
.admin-sidebar .brand-icon {
  width: 32px;
  height: 32px;
  font-size: 26px
}
.workspace-label {
  font-size: 9px;
  color: #75809c;
  margin: 14px 4px 28px;
  display: flex;
  align-items: center;
  gap: 10px
}
.workspace-label span {
  border: 1px solid #3b435e;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 8px;
  color: #838fae
}
.sidebar-group-label {
  font-size: 9px;
  color: #606d8c;
  letter-spacing: 1px;
  padding: 0 14px;
  margin: 6px 0 10px
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  gap: 5px;
  margin-bottom: 26px
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: #96a1bd
}
.sidebar-nav a.active {
  color: #fff;
  background: #5865f2
}
.sidebar-nav a:hover {
  color: white
}
.sidebar-nav a:after {
  display: none
}
.sidebar-nav a>span {
  font-size: 19px;
  line-height: 1;
  width: 18px;
  text-align: center;
  color: #7d8aa9
}
.sidebar-nav a.active>span {
  color: #c4caff
}
.sidebar-nav small {
  margin-left: auto;
  background: #ffffff22;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9px;
  color: #e8ebff
}
.sidebar-bottom {
  margin-top: auto
}
.sidebar-tip {
  background: linear-gradient(120deg,#293251,#232d48);
  border: 1px solid #35405d;
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 25px
}
.sidebar-tip>span {
  font-size: 23px;
  color: #99a5e6;
  display: block
}
.sidebar-tip strong {
  font-size: 11px;
  color: #c2cae3;
  font-weight: 550;
  display: block;
  margin-top: 5px
}
.sidebar-tip p {
  font-size: 9px;
  line-height: 1.9;
  color: #7a88aa;
  margin-top: 7px
}
.sidebar-tip a {
  display: block;
  margin-top: 11px;
  font-size: 9px;
  color: #9ca9e2
}
.sidebar-account {
  border-top: 1px solid #2c354f;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #e9ecff;
  color: #727ad4;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600
}
.sidebar-account .account-avatar {
  background: #34405f;
  color: #bbc7e6
}
.sidebar-account strong {
  display: block;
  font-size: 11px;
  color: #bfc8df;
  font-weight: 500
}
.sidebar-account small {
  font-size: 9px;
  color: #617090
}
.sidebar-account>button {
  margin-left: auto;
  color: #8895b1;
  font-size: 20px
}
.admin-main {
  margin-left: 228px;
  flex: 1;
  min-width: 0
}
.admin-topbar {
  height: 71px;
  background: white;
  border-bottom: 1px solid #ebedf4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px
}
.breadcrumb {
  font-size: 11px;
  color: #a2aabd;
  display: flex;
  align-items: center;
  gap: 12px
}
.breadcrumb strong {
  color: #6d7690;
  font-weight: 500
}
.breadcrumb>span {
  color: #d5d9e5
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #929bb0
}
.topbar-right>a {
  margin-left: 20px;
  padding: 5px 12px;
  border-left: 1px solid #eceef5
}
.topbar-right>.account-avatar {
  margin-left: 10px;
  width: 29px;
  height: 29px
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #72b996;
  border-radius: 50%
}
.admin-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 34px 40px;
  min-height: calc(100vh - 130px)
}
.admin-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px
}
.admin-page-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #9ba4bd
}
.admin-page-heading h1 {
  font-size: 26px;
  font-weight: 650;
  margin-top: 3px;
  letter-spacing: -.5px
}
.admin-page-heading p {
  font-size: 11px;
  color: #949eb3;
  margin-top: 7px
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px
}
.heading-actions .button {
  font-size: 11px;
  gap: 6px;
  padding: 9px 15px
}
.heading-actions .button-white {
  color: #7e89a4;
  border: 1px solid #e4e8f2
}
.welcome-note {
  border: 1px solid #e3e7ff;
  background: linear-gradient(110deg,#eef0ff,#f2f5ff);
  border-radius: 10px;
  padding: 16px 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px
}
.welcome-note>span {
  font-size: 28px;
  color: #8592e4
}
.welcome-note strong {
  font-size: 12px;
  font-weight: 550;
  color: #6975ab
}
.welcome-note p {
  font-size: 10px;
  color: #96a0c0;
  margin-top: 3px
}
.welcome-note :is(button, a) {
  margin-left: auto;
  font-size: 10px;
  color: #6577d0;
  white-space: nowrap
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
  margin-bottom: 23px
}
.metric-card {
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 11px;
  padding: 20px
}
.metric-card>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8c96ad;
  font-size: 11px
}
.metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef0ff;
  color: #7f8ced;
  display: grid;
  place-items: center;
  font-size: 20px
}
.metric-1 {
  color: #6ab9af;
  background: #edf8f6
}
.metric-2 {
  color: #dcad72;
  background: #fff8ee
}
.metric-3 {
  color: #ae8eda;
  background: #f6f0fe
}
.metric-card>strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  color: #313c59;
  margin-top: 6px;
  font-weight: 650
}
.metric-card p {
  border-top: 1px solid #f0f2f7;
  padding-top: 11px;
  margin-top: 13px;
  color: #a4adbf;
  font-size: 9px
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr);
  gap: 22px
}
.admin-panel {
  background: white;
  border: 1px solid #e7ebf4;
  border-radius: 12px;
  padding: 23px;
  min-width: 0
}
.admin-panel h2 {
  font-size: 14px;
  font-weight: 600;
  color: #4b5875
}
.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px
}
.admin-panel-heading p {
  font-size: 10px;
  color: #a1aabe;
  margin-top: 5px
}
.admin-panel-heading :is(button, a),.admin-panel-heading>span {
  color: #9aa5bf;
  font-size: 10px
}
.admin-panel-heading .subtle-badge {
  color: #8f9ade;
  background: transparent;
  font-size: 9px
}
.trend-svg {
  display: block;
  width: 100%;
  margin-top: 25px
}
.chart-label {
  font-size: 9px;
  fill: #a3adc1
}
.distribution {
  margin-top: 24px
}
.distribution-row {
  margin-top: 15px
}
.distribution-row>div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #939eb4;
  margin-bottom: 6px
}
.distribution-row strong {
  font-size: 10px;
  font-weight: 500;
  color: #73809b
}
.distribution-row svg {
  display: block;
  width: 100%;
  height: 7px
}
.bar-0 {
  fill: #8792ee
}
.bar-1 {
  fill: #b199e0
}
.bar-2 {
  fill: #dcaccd
}
.bar-3 {
  fill: #89c9b7
}
.bar-4 {
  fill: #ddc389
}
.bar-5 {
  fill: #8bc5d5
}
.recent-panel {
  padding-bottom: 15px
}
.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #99a3b7;
  border-bottom: 1px solid #f0f2f7;
  padding: 11px 0
}
.system-row strong {
  font-weight: 500;
  color: #75839f;
  font-size: 10px
}
.integration-note {
  font-size: 9px;
  color: #a8b0c2;
  line-height: 1.9;
  margin-top: 15px
}
.table-scroll {
  overflow: auto;
  margin: 0 -23px
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 11px
}
th {
  background: #f9fafd;
  padding: 12px 19px;
  color: #a1aabd;
  font-size: 10px;
  font-weight: 500
}
td {
  padding: 16px 19px;
  border-bottom: 1px solid #f1f3f8;
  color: #8793ab;
  font-size: 10px
}
td strong {
  font-weight: 550;
  color: #66758f;
  font-size: 11px
}
td small {
  display: block;
  font-size: 9px;
  color: #a5afc2;
  margin-top: 4px
}
tbody tr:last-child td {
  border-bottom: none
}
tbody tr:hover {
  background: #fdfdff
}
.table-link,.actions button {
  font-size: 10px;
  color: #7583d6;
  padding: 0
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 71px
}
.actions button.danger {
  color: #cc8a91
}
.panel-empty {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9fa9bd;
  font-size: 12px;
  text-align: center
}
.panel-empty>span {
  display: grid;
  place-items: center;
  background: #f4f6fd;
  color: #a7b4d5;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 12px
}
.panel-empty small {
  font-size: 10px;
  color: #b4bccd;
  margin-top: 6px
}
.status-badge {
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 9px;
  display: inline-block
}
.status-badge.approved {
  color: #76b29c;
  background: #edf8f3
}
.status-badge.pending {
  color: #cba466;
  background: #fff8ec
}
.status-badge.rejected {
  color: #ce8994;
  background: #fdf0f3
}
.status-badge.disabled {
  color: #a0aabc;
  background: #f1f3f8
}
.warning-text {
  color: #caa16e
}
.list-panel {
  padding-top: 20px
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px
}
.list-toolbar>div {
  display: flex;
  align-items: center;
  gap: 12px
}
.list-toolbar>div>span {
  font-size: 10px;
  color: #a8b1c4
}
.list-toolbar form {
  display: flex;
  gap: 8px
}
.list-toolbar input,.list-toolbar select {
  font-size: 10px;
  padding: 8px 11px
}
.list-toolbar input {
  width: 180px
}
.list-toolbar .button {
  font-size: 10px;
  padding: 8px 12px
}
.list-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid #f0f2f7;
  font-size: 10px;
  color: #a7b1c5
}
.list-pagination>div {
  display: flex;
  gap: 7px
}
.list-pagination :is(button, a) {
  border: 1px solid #e7ebf4;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 9px;
  color: #94a0b8
}
.info-notice {
  font-size: 11px;
  line-height: 1.9;
  color: #8b96b4;
  background: #edf0fc;
  border: 1px solid #e4e9fa;
  border-radius: 9px;
  padding: 13px 17px;
  margin-bottom: 18px
}
.settings-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  align-items: start
}
.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #8693ad;
  margin-top: 20px
}
.settings-form input,.settings-form textarea {
  font-size: 12px
}
.settings-form small {
  font-size: 10px;
  color: #a2aec3;
  line-height: 1.9
}
.settings-form .button {
  margin-top: 25px;
  font-size: 11px
}
.integration-panel {
  margin-top: 22px
}
.integration-panel p {
  font-size: 11px;
  line-height: 1.9;
  color: #99a5bb;
  margin-top: 17px
}
.integration-panel>.subtle-badge {
  display: inline-block;
  margin-top: 20px
}
.log-detail {
  display: block;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px
}
.admin-footer {
  border-top: 1px solid #e8ecf5;
  padding: 18px 34px;
  display: flex;
  justify-content: space-between;
  color: #aeb7c9;
  font-size: 9px
}
#mobile-menu {
  display: none
}
@media(min-width:1500px) {
  .admin-content {
    padding-top: 40px
  }
  .metric-card {
    padding: 25px
  }
  .admin-panel {
    padding: 27px
  }
  .table-scroll {
    margin: 0 -27px
  }
  .dashboard-grid {
    grid-template-columns: minmax(0,1.75fr) minmax(310px,1fr)
  }
}
@media(max-width:1200px) {
  .admin-sidebar {
    width: 207px;
    padding: 25px 15px 0
  }
  .admin-main {
    margin-left: 207px
  }
  .admin-content {
    padding: 27px 23px
  }
  .admin-topbar {
    padding: 0 23px
  }
  .metric-card {
    padding: 16px
  }
  .metric-grid {
    gap: 12px
  }
  .dashboard-grid {
    grid-template-columns: minmax(0,1.3fr) minmax(240px,1fr);
    gap: 17px
  }
  .admin-panel {
    padding: 19px
  }
  .table-scroll {
    margin: 0 -19px
  }
  .admin-page-heading h1 {
    font-size: 24px
  }
  .metric-card p {
    font-size: 8px
  }
  .settings-layout {
    gap: 17px
  }
}
@media(max-width:960px) {
  .admin-sidebar {
    width: 190px
  }
  .admin-sidebar>.brand {
    font-size: 20px
  }
  .admin-main {
    margin-left: 190px
  }
  .dashboard-grid {
    grid-template-columns: 1fr
  }
  .metric-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .settings-layout {
    grid-template-columns: 1fr
  }
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column
  }
  .sidebar-tip {
    display: none
  }
  .admin-page-heading {
    align-items: flex-start
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end
  }
  .topbar-right>span:not(.status-dot) {
    display: none
  }
  .admin-page-heading .eyebrow {
    font-size: 7px
  }
  .heading-actions .button {
    font-size: 10px;
    padding: 8px 12px
  }
  .admin-page-heading p {
    max-width: 270px
  }
  .trend-svg {
    max-height: 280px
  }
}
@media(max-width:680px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 225px;
    transition: transform .2s;
    box-shadow: 10px 0 30px #16214315
  }
  .admin-sidebar.visible {
    transform: translateX(0)
  }
  .admin-main {
    margin-left: 0
  }
  .admin-topbar {
    height: 60px;
    padding: 0 18px;
    gap: 14px
  }
  #mobile-menu {
    display: grid;
    font-size: 18px;
    width: 25px
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px
  }
  .topbar-right .status-dot {
    display: none
  }
  .topbar-right>a {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 9px
  }
  .topbar-right .account-avatar {
    width: 26px;
    height: 26px;
    margin-left: 7px
  }
  .admin-content {
    padding: 23px 17px
  }
  .admin-page-heading {
    gap: 13px;
    margin-bottom: 20px
  }
  .admin-page-heading .eyebrow {
    display: none
  }
  .admin-page-heading h1 {
    font-size: 22px
  }
  .admin-page-heading p {
    font-size: 10px;
    max-width: 205px
  }
  .heading-actions {
    gap: 6px;
    max-width: 120px
  }
  .heading-actions .button {
    font-size: 9px;
    padding: 7px 10px;
    width: 100%
  }
  .heading-actions #refresh-button {
    display: none
  }
  .welcome-note {
    padding: 13px;
    gap: 9px
  }
  .welcome-note>span {
    font-size: 22px
  }
  .welcome-note strong {
    font-size: 10px
  }
  .welcome-note p {
    font-size: 9px
  }
  .welcome-note :is(button, a) {
    font-size: 9px
  }
  .metric-grid {
    gap: 11px;
    margin-bottom: 18px
  }
  .metric-card {
    padding: 15px
  }
  .metric-card>strong {
    font-size: 28px
  }
  .metric-card>div {
    font-size: 10px
  }
  .metric-card p {
    font-size: 8px
  }
  .admin-panel {
    padding: 18px
  }
  .table-scroll {
    margin: 0 -18px
  }
  .dashboard-grid {
    gap: 17px
  }
  .admin-footer {
    padding: 18px 17px;
    font-size: 8px;
    flex-direction: column;
    gap: 7px
  }
  .list-toolbar>div {
    gap: 9px
  }
  .list-toolbar form {
    flex-wrap: wrap;
    width: 100%
  }
  .list-toolbar input {
    flex: 1;
    min-width: 100px;
    width: 100px
  }
  .list-toolbar select {
    max-width: 105px
  }
  .list-toolbar .button {
    padding: 8px
  }
  .login-card {
    padding: 28px
  }
  .list-pagination :is(button, a) {
    font-size: 9px
  }
  .admin-panel h2 {
    font-size: 13px
  }
}
.ai-admin-layout {
  display: grid;
  gap: 20px
}
.ai-hero-panel {
  position: relative;
  overflow: hidden
}
.ai-hero-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: #fff3d9;
  color: #bd7a19;
  font-size: 29px;
  flex: 0 0 auto
}
.ai-state-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid #e8e4d9;
  border-radius: 11px;
  background: #fffdf7;
  color: #6c6a60;
  font-size: 12px
}
.ai-settings-form {
  max-width: 760px
}
.ai-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}
.ai-help-card {
  padding: 23px 25px
}
.ai-help-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #637089;
  font-size: 12px;
  line-height: 2
}
.ai-help-card>p {
  margin-top: 18px;
  color: #637089;
  font-size: 12px;
  line-height: 1.9
}
@media(max-width:680px) {
  .ai-help-grid { grid-template-columns: 1fr }
  .ai-hero-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 22px }
  .ai-state-card { align-items: flex-start; flex-direction: column; gap: 7px }
}
.settings-form label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px
}
.settings-form label.checkbox input[type=hidden] {
  display: none
}
.settings-form label.checkbox input[type=checkbox] {
  width: auto;
  margin: 0
}
.telegram-tools {
  margin-top: 22px;
  padding: 15px;
  background: #f8f9fd;
  border: 1px solid #edf0f6;
  border-radius: 8px
}
.telegram-tools h4 {
  font-size: 11px;
  color: #69758f;
  font-weight: 600;
  margin-bottom: 10px
}
.telegram-tools p {
  font-size: 10px;
  color: #8f9ab0;
  line-height: 1.8
}
.telegram-tools code {
  font-size: 9px;
  overflow-wrap: anywhere
}
.telegram-tools .button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px
}
.telegram-tools .button {
  font-size: 10px;
  padding: 7px 10px
}
.admin-body {
  font-size: 14px
}
.admin-content {
  padding-top: 38px
}
.admin-page-heading {
  margin-bottom: 30px
}
.admin-page-heading h1 {
  font-size: 30px;
  letter-spacing: 0
}
.admin-page-heading p {
  font-size: 13px
}
.admin-panel {
  padding: 28px;
  border-radius: 10px
}
.admin-panel h2 {
  font-size: 17px
}
.admin-panel-heading p {
  font-size: 12px
}
.metric-card>div {
  font-size: 13px
}
.metric-card p {
  font-size: 11px
}
.system-row {
  font-size: 12px
}
.system-row strong {
  font-size: 12px
}
.integration-note {
  font-size: 11px
}
.list-toolbar>div>span,.list-pagination {
  font-size: 12px
}
th {
  font-size: 12px;
  padding: 14px 20px
}
td {
  font-size: 12px;
  padding: 17px 20px
}
td strong {
  font-size: 13px
}
td small {
  font-size: 11px
}
.list-toolbar input,.list-toolbar select {
  font-size: 12px;
  padding: 10px 12px
}
.list-toolbar .button,.list-pagination :is(button, a) {
  font-size: 11px
}
.settings-layout {
  gap: 28px
}
.settings-form label {
  font-size: 13px;
  margin-top: 24px;
  gap: 9px
}
.settings-form input,.settings-form textarea {
  font-size: 14px;
  padding: 12px 13px
}
.settings-form small {
  font-size: 11px
}
.settings-form h3 {
  font-size: 16px;
  color: #4d5b78;
  border-top: 1px solid #e8ecf4;
  padding-top: 22px;
  margin: 34px 0 -4px
}
.settings-form h3:first-of-type {
  margin-top: 12px
}
.settings-form .button {
  font-size: 13px;
  padding: 11px 17px
}
.telegram-tools {
  padding: 18px
}
.telegram-tools h4 {
  font-size: 13px
}
.telegram-tools p {
  font-size: 12px
}
.telegram-tools .button {
  font-size: 11px;
  padding: 8px 12px
}
.settings-form label.checkbox {
  font-size: 13px
}
@media(max-width:680px) {
  .admin-content {
    padding-top: 24px
  }
  .admin-page-heading h1 {
    font-size: 25px
  }
  .admin-page-heading p {
    font-size: 12px
  }
  .admin-panel {
    padding: 21px
  }
  .admin-panel h2 {
    font-size: 16px
  }
  .settings-form input,.settings-form textarea {
    font-size: 14px
  }
  .settings-form h3 {
    font-size: 15px
  }
}
.secret-input {
  position: relative;
  display: block
}
.secret-input input {
  width: 100%;
  padding-right: 44px
}
.secret-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  color: #8d98b0;
  font-size: 15px;
  display: grid;
  place-items: center
}
.secret-toggle:hover {
  color: #5865f2;
  background: #f0f2ff;
  border-radius: 6px
}
.content-preview-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(430px,48vw)
}
.content-preview {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}
.content-preview-cell .table-link {
  flex: none;
  white-space: nowrap
}
.content-dialog {
  width: min(760px,calc(100% - 30px))
}
.content-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #f5f7fb;
  border-radius: 9px;
  color: #5c6982;
  font-size: 12px
}
.content-full {
  margin-top: 16px;
  padding: 17px;
  background: #fbfcfe;
  border: 1px solid #e5e9f2;
  border-radius: 9px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  max-height: 60vh;
  overflow: auto;
  color: #26334c;
  font-size: 14px
}
/* Readability pass: keep the dashboard calm, dark and clearly grouped. */ .admin-body {
  font-size: 15px;
  color: #20263e;
  line-height: 1.65
}
.admin-main,.admin-content {
  color: #20263e
}
.admin-topbar {
  height: 76px
}
.breadcrumb {
  font-size: 13px;
  color: #68738b
}
.breadcrumb strong {
  font-size: 14px;
  color: #20263e;
  font-weight: 700
}
.topbar-right {
  font-size: 12px;
  color: #536078
}
.sidebar-group-label {
  font-size: 11px;
  font-weight: 700;
  color: #aeb8d2;
  letter-spacing: .08em
}
.sidebar-nav {
  gap: 7px
}
.sidebar-nav a {
  font-size: 14px;
  font-weight: 600;
  padding: 13px 14px;
  color: #c4cce0
}
.sidebar-nav a>span {
  font-size: 20px
}
.workspace-label {
  font-size: 11px
}
.sidebar-account strong {
  font-size: 13px;
  font-weight: 700
}
.sidebar-account small {
  font-size: 11px
}
.admin-page-heading h1 {
  font-size: 31px;
  font-weight: 750;
  color: #171e32
}
.admin-page-heading p {
  font-size: 14px;
  color: #58647b
}
.admin-page-heading .eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: #5865f2
}
.admin-panel {
  padding: 29px;
  border-color: #dfe4ef
}
.admin-panel h2 {
  font-size: 19px;
  font-weight: 750;
  color: #1b2438
}
.admin-panel-heading p {
  font-size: 13px;
  color: #64708a
}
.admin-panel-heading>span,.admin-panel-heading :is(button, a) {
  font-size: 12px;
  color: #596681
}
.metric-card>div {
  font-size: 14px;
  font-weight: 650;
  color: #4c5870
}
.metric-card>strong {
  font-size: 34px;
  color: #172039;
  font-weight: 750
}
.metric-card p {
  font-size: 12px;
  color: #69758c
}
.welcome-note strong {
  font-size: 14px;
  color: #27345c;
  font-weight: 750
}
.welcome-note p {
  font-size: 12px;
  color: #5f6d8b
}
.system-row {
  font-size: 13px;
  color: #5c6880;
  padding: 13px 0
}
.system-row strong {
  font-size: 13px;
  color: #202b43;
  font-weight: 700
}
.integration-note {
  font-size: 12px;
  color: #5e6b82;
  line-height: 1.8
}
.table-scroll {
  margin: 0 -29px
}
table {
  font-size: 13px
}
th {
  font-size: 12px;
  font-weight: 750;
  color: #3d4962;
  background: #f3f5f9;
  padding: 14px 22px
}
td {
  font-size: 13px;
  color: #39465e;
  padding: 17px 22px
}
td strong {
  font-size: 14px;
  color: #1e2a42;
  font-weight: 750
}
td small {
  font-size: 12px;
  color: #69758b
}
.table-link,.actions button {
  font-size: 12px;
  font-weight: 700
}
.list-toolbar>div>span,.list-pagination {
  font-size: 13px;
  color: #5f6c84
}
.list-toolbar input,.list-toolbar select {
  font-size: 13px
}
.status-badge {
  font-size: 11px;
  font-weight: 700
}
.settings-layout {
  gap: 30px
}
.settings-form label {
  font-size: 14px;
  font-weight: 650;
  color: #26324a;
  margin-top: 22px
}
.settings-form input,.settings-form textarea {
  font-size: 15px;
  color: #182238;
  padding: 13px 14px
}
.settings-form small {
  font-size: 12px;
  color: #5e6b82;
  line-height: 1.8
}
.settings-form h3.settings-section-title {
  font-size: 19px;
  font-weight: 800;
  color: #172039;
  border-top: 2px solid #dfe4ef;
  padding: 20px 0 0;
  margin: 31px 0 0
}
.settings-form h3.settings-section-title:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 5px
}
.settings-block {
  border: 1px solid #e3e8f1;
  border-radius: 14px;
  background: #fbfcfe;
  padding: 22px 24px 24px;
  box-shadow: 0 5px 18px rgba(34, 48, 79, .04)
}
.settings-block + .settings-block {
  margin-top: 18px
}
.settings-block .settings-section-title {
  margin-top: 0!important;
  padding-top: 0!important;
  border-top: 0!important
}
.settings-block .telegram-tools {
  border: 1px solid #dfe6f0;
  border-radius: 11px;
  background: #f4f7fb
}
.settings-block > .button-primary {
  margin-top: 22px
}
.telegram-admin-layout {
  display: grid;
  gap: 20px
}
.telegram-hero-panel {
  position: relative;
  overflow: hidden
}
.telegram-hero-panel .admin-panel-heading {
  align-items: flex-start
}
.telegram-hero-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: #e9edff;
  color: #5865f2;
  font-size: 29px;
  flex: 0 0 auto
}
.telegram-status-card {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #e2e7f1;
  border-radius: 11px;
  background: #f8faff
}
.telegram-action-row {
  margin-top: 17px
}
.button-danger-soft {
  color: #ae5360!important;
  background: #fff5f6!important;
  border-color: #f0d5d9!important
}
.telegram-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}
.telegram-info-card,.telegram-deploy-card {
  padding: 23px 25px
}
.panel-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px
}
.panel-card-heading>span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f0f3ff;
  color: #626edc;
  font-size: 17px;
  flex: 0 0 auto
}
.panel-card-heading h3 {
  margin: 0;
  color: #1a2540;
  font-size: 16px
}
.panel-card-heading p {
  margin-top: 4px;
  color: #6b7891;
  font-size: 12px;
  line-height: 1.7
}
.telegram-check-list,.telegram-worker-list {
  list-style: none;
  padding: 0;
  margin: 20px 0
}
.telegram-check-list li,.telegram-worker-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #edf0f5
}
.telegram-check-list li>span {
  color: #8a96b0;
  font-size: 11px;
  font-weight: 700
}
.telegram-check-list strong,.telegram-worker-list code {
  display: block;
  color: #26334d;
  font-size: 12px
}
.telegram-check-list small,.telegram-worker-list small {
  display: block;
  margin-top: 3px;
  color: #718097;
  font-size: 11px
}
.telegram-worker-list code {
  padding: 3px 6px;
  border-radius: 5px;
  background: #f1f3f8;
  color: #4854a6;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 11px
}
.telegram-deploy-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  padding: 0;
  margin: 21px 0 0;
  list-style: none;
  counter-reset: deploy
}
.telegram-deploy-steps li {
  position: relative;
  min-height: 78px;
  padding: 14px;
  border: 1px solid #e5e9f1;
  border-radius: 10px;
  background: #fbfcfe;
  counter-increment: deploy
}
.telegram-deploy-steps li:before {
  content: counter(deploy,decimal-leading-zero);
  display: block;
  margin-bottom: 9px;
  color: #6571df;
  font-size: 11px;
  font-weight: 800
}
.telegram-deploy-steps strong,.telegram-deploy-steps span {
  display: block
}
.telegram-deploy-steps strong {
  color: #283650;
  font-size: 12px
}
.telegram-deploy-steps span {
  margin-top: 5px;
  color: #718097;
  font-size: 11px;
  line-height: 1.6
}
@media(max-width:850px) {
  .telegram-deploy-steps { grid-template-columns: 1fr 1fr }
}
@media(max-width:680px) {
  .settings-block { padding: 18px 17px 20px }
  .telegram-admin-grid { grid-template-columns: 1fr }
  .telegram-info-card,.telegram-deploy-card { padding: 20px 18px }
  .telegram-deploy-steps { grid-template-columns: 1fr }
  .telegram-hero-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 22px }
}
.settings-section-note {
  font-size: 13px;
  color: #64718a;
  margin-top: 5px
}
.settings-form label.checkbox {
  font-size: 14px;
  color: #26324a
}
.telegram-tools {
  padding: 19px;
  background: #f4f6fb;
  border-color: #dfe4ef
}
.telegram-tools h4 {
  font-size: 14px;
  color: #24314a;
  font-weight: 800
}
.telegram-tools p {
  font-size: 13px;
  color: #53617a
}
.telegram-tools .button {
  font-size: 12px;
  font-weight: 700
}
.info-notice {
  font-size: 13px;
  color: #3f4d68;
  line-height: 1.8
}
.panel-empty {
  font-size: 14px;
  color: #596780
}
.panel-empty small {
  font-size: 12px;
  color: #69758b
}
.muted {
  font-size: 13px;
  color: #65728a
}
.warning-text {
  font-weight: 650
}
@media(max-width:1200px) {
  .table-scroll {
    margin: 0 -19px
  }
}
@media(max-width:680px) {
  .admin-body {
    font-size: 14px
  }
  .admin-panel {
    padding: 21px
  }
  .table-scroll {
    margin: 0 -21px
  }
  .settings-form h3.settings-section-title {
    font-size: 18px
  }
  .settings-section-note {
    font-size: 12px
  }
}
.queue-deploy-help {
  margin-bottom: 22px;
  padding: 0;
  overflow: hidden
}
.queue-deploy-help summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 750;
  color: #27345c;
  background: #f4f6ff
}
.queue-deploy-help summary::-webkit-details-marker {
  display: none
}
.queue-deploy-help summary:before {
  content: '＋';
  display: inline-block;
  width: 22px;
  color: #5865f2
}
.queue-deploy-help[open] summary:before {
  content: '−'
}
.queue-deploy-help .settings-section-note {
  padding: 3px 22px 18px;
  margin: 0
}
.queue-deploy-help p {
  margin-top: 13px;
  line-height: 1.8
}
.queue-deploy-help code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef1f8;
  color: #263b72;
  font-size: 12px;
  overflow-wrap: anywhere
}

/* Improve readability across dense admin tables, especially operation logs. */
.admin-panel table {
  font-size: 13px;
}
.admin-panel-heading p,
.list-toolbar > div > span,
.list-pagination,
.info-notice {
  font-size: 13px;
  line-height: 1.7;
}
.list-toolbar h2 {
  font-size: 18px;
  color: #273650;
}
.list-toolbar > div > span {
  color: #69768e;
}
.info-notice {
  padding: 12px 15px;
  border: 1px solid #e1e7f2;
  border-radius: 9px;
  background: #f7f9fd;
  color: #44536e;
}
.list-pagination {
  color: #63718a;
}
.list-pagination a {
  font-size: 13px;
  color: #5363c7;
}
.admin-panel th {
  color: #65728a;
  font-size: 12px;
  letter-spacing: .02em;
}
.admin-panel td {
  color: #26344d;
  line-height: 1.55;
  vertical-align: middle;
}
.admin-panel td small {
  color: #6d7a91;
  font-size: 12px;
  line-height: 1.5;
}
.admin-panel .actions {
  white-space: normal;
  min-width: 150px;
}
.admin-panel .actions button,
.admin-panel .table-link {
  margin: 2px 4px 2px 0;
  font-size: 12px;
}
.log-detail {
  display: block;
  max-width: 560px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #25324b;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  background: #f6f8fc;
  border: 1px solid #e3e8f1;
  border-radius: 8px;
  padding: 10px 12px;
}
body.admin-body[data-admin-view="logs"] .list-panel {
  padding-bottom: 30px;
}
body.admin-body[data-admin-view="logs"] table {
  min-width: 900px;
}
body.admin-body[data-admin-view="logs"] td {
  vertical-align: top;
  padding-top: 15px;
  padding-bottom: 15px;
}
@media(max-width:680px) {
  .log-detail { max-width: 100%; }
}
.cache-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
