/* static/hero-sms.css */
.hero-admin-settings {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #e0e5e9;
  border-bottom: 1px solid #e0e5e9;
}
[data-panel=heroSms] button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #dfe5eb;
  border-radius: 6px;
  background: #fff;
  color: #243344;
  font: inherit;
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
[data-panel=heroSms] button.primary {
  background: #ff9500;
  color: #fff;
  border-color: #ff9500;
}
[data-panel=heroSms] button:disabled {
  opacity: .5;
  cursor: wait;
}
[data-panel=heroSms] input:not([type=checkbox]),[data-panel=heroSms] select {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #dfe5eb;
  border-radius: 6px;
  background: #fff;
  color: #243344;
  font: inherit;
  font-size: 14px;
}
[data-panel=heroSms] input[type=checkbox] {
  accent-color: #ff9500;
}
[data-panel=heroSms] .toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
#heroSettingsForm>button {
  justify-self: start;
  min-width: 120px;
}
#heroKeyState {
  align-self: center;
  font-size: 13px;
  color: #7c8794;
}
#heroSettingsForm button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #ff9500;
  border-radius: 6px;
  background: #ff9500;
  color: #fff;
  font: inherit;
  font-size: 14px;
}
#heroSettingsForm button:disabled {
  opacity: .5;
  cursor: wait;
}
#heroSettingsForm input[type=checkbox] {
  accent-color: #ff9500;
}
#heroSettingsForm label.check-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
#heroSettingsForm label.check-line input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
}
.hero-admin-settings label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}
.hero-admin-settings label.check-line {
  flex-direction: row;
  align-items: center;
}
.hero-admin-settings input:not([type=checkbox]) {
  width: 100%;
  min-width: 0;
}
.hero-admin-wide {
  grid-column: 1/-1;
}
.hero-admin-sync {
  margin-top: 20px;
}
.hero-admin-sync select {
  max-width: 350px;
  min-width: 0;
}
[data-panel=heroSms] .toolbar {
  flex-wrap: wrap;
}
[data-panel=heroSms] td small {
  display: block;
  color: #7c8794;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.hero-bulk-pricing #heroMarkupPercent {
  width: 110px;
  flex: 0 0 110px;
}
.hero-bulk-pricing label {
  margin: 0;
}
.hero-bulk-pricing #heroBulkNotice {
  font-size: 13px;
  color: #626c76;
}
[data-panel=heroSms] td input[type=number] {
  width: 120px;
}
[data-panel=heroSms] td input[type=checkbox] {
  width: 18px;
  height: 18px;
}
[data-panel=heroSms] .hero-price-error {
  color: #c03939;
}
[data-panel=heroSms] input[aria-invalid=true] {
  border-color: #c03939;
}
[data-panel=heroSms] .table-panel {
  overflow-x: auto;
}
[data-panel=heroSms] table {
  min-width: 740px;
}
#heroBindDialog {
  max-width: 420px;
  width: calc(100% - 32px);
}
#heroBindDialog input {
  width: 100%;
}
#heroBindOrder {
  overflow-wrap: anywhere;
}
#heroOrderPanel .table-panel {
  overflow-x: auto;
}
#heroOrderPanel table {
  min-width: 740px;
}
#heroOrderPanel td small {
  display: block;
  color: #7c8794;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
[data-panel=orders] .hidden {
  display: none!important;
}
[data-api-provider][hidden],#saveSiteConfig[hidden] {
  display: none!important;
}
.api-provider-tabs {
  grid-column: 1/-1;
}
#apiProviderTabs.active {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.api-provider-tabs button {
  flex: 1 1 0;
  width: auto;
  min-height: 40px;
  min-width: 0;
  border: 1px solid #dfe5eb;
  border-radius: 6px;
  background: #fff;
  color: #243344;
  font: inherit;
  font-size: 14px;
  padding: 8px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.api-provider-tabs button[aria-selected=true] {
  color: #d47700;
  border-color: #ffb44d;
  background: #fff7eb;
}
[data-panel=orders] .admin-order-kind-tabs {
  grid-template-columns: repeat(3,minmax(0,1fr));
  height: 42px;
  width: min(100%,390px);
  flex-shrink: 0;
}
[data-panel=orders] .admin-order-kind-tabs button {
  padding: 0 8px;
  font-size: 14px;
  white-space: nowrap;
}
#heroOrderPanel .toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
}
#heroOrderPanel button {
  min-height: 36px;
  padding: 6px 12px;
  background: #fff;
  color: #243344;
  border: 1px solid #dfe5eb;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
}
#heroOrderPanel button:disabled {
  opacity: .5;
}
#heroOrderPanel th:first-child {
  width: 23%;
}
#heroOrderPanel th:nth-child(2) {
  width: 21%;
}
#heroOrderPanel th:nth-child(3) {
  width: 20%;
}
#heroOrderPanel th:nth-child(4) {
  width: 10%;
}
#heroOrderPanel th:nth-child(5) {
  width: 16%;
}
@media(max-width:760px) {
  .hero-admin-settings {
    grid-template-columns: 1fr;
  }
  .hero-admin-sync select {
    max-width: 100%;
    width: 100%;
  }
}
#heroSyncProgress {
  width: 100%;
  height: 8px;
  accent-color: #ff9500;
}
#heroSyncNotice {
  font-size: 14px;
  overflow-wrap: anywhere;
}
#heroSyncFailures {
  margin: 8px 0;
  color: #a33232;
}
#heroSyncFailureItems {
  max-height: 200px;
  overflow: auto;
  padding-left: 24px;
}
/* static/ui-consistency.css */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
dialog.user-product-price-dialog {
  box-sizing: border-box;
  width: 940px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  padding: 20px;
  color: #17212e;
}
.user-price-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.user-price-heading h2 {
  font-size: 17px;
  line-height: 24px;
  margin: 0;
  overflow-wrap: anywhere;
}
.user-product-price-dialog button {
  border: 1px solid #e2e7ed;
  border-radius: 6px;
  background: #fff;
  color: #34465a;
  min-height: 36px;
  padding: 6px 12px;
  cursor: pointer;
}
.user-price-query {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 18px;
}
.user-price-query label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  min-width: 0;
  flex: 1;
}
.user-product-price-dialog input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e7ed;
  border-radius: 6px;
  font: inherit;
}
.user-product-price-dialog p {
  font-size: 13px;
  color: #64748b;
  overflow-wrap: anywhere;
}
.user-price-table {
  max-height: 480px;
  overflow: auto;
  min-width: 0;
}
.user-price-table table {
  width: 100%;
  min-width: 570px;
  border-collapse: collapse;
  font-size: 13px;
}
.user-price-table :is(th,td) {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e7ebef;
}
.user-price-table th {
  position: sticky;
  top: 0;
  background: #f7f8fa;
  font-weight: 600;
  white-space: nowrap;
}
.user-price-table small {
  display: block;
  margin-top: 4px;
  color: #7a8797;
  overflow-wrap: anywhere;
}
.user-price-table [data-cost-edit] {
  display: block;
  margin-top: 6px;
  min-height: 32px;
  padding: 4px 6px;
  font-size: 12px;
}
dialog.user-cost-dialog {
  width: 480px;
}
.user-cost-dialog h2 {
  font-size: 17px;
  margin: 0;
}
.user-cost-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.user-cost-dialog [type=submit] {
  background: #ff9500;
  color: #fff;
  border-color: #ff9500;
}
@media(max-width:600px) {
  dialog.user-product-price-dialog {
    padding: 14px;
  }
  .user-price-heading h2 {
    font-size: 15px;
  }
  .user-price-table table {
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }
  .user-price-table :is(th,td) {
    padding: 8px 5px;
    overflow-wrap: anywhere;
  }
  .user-price-table th {
    white-space: normal;
    width: 22%;
  }
  .user-price-table th:first-child {
    width: 34%;
  }
}
.settings-card-head.settings-record-heading,.panel-head.settings-record-heading {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.settings-record-heading .add-row-btn {
  width: auto;
  min-width: 88px;
  margin: 0 0 0 auto;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 6px;
  flex: none;
}
[data-panel=settings] .settings-config-section {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7ebef;
}
[data-panel=settings] .settings-config-section h3,[data-panel=settings] .settings-record-heading h3 {
  font-size: 15px;
  line-height: 22px;
  margin: 0;
}
#groupMessageSettings .settings-form-grid {
  gap: 10px 16px;
}
#groupMessageSettings .structured-check,[data-settings-panel=agent]>.structured-check {
  min-height: 40px;
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}
[data-panel=settings] details.settings-group-moderation {
  display: block;
  padding-bottom: 12px;
}
.settings-group-moderation summary {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  padding: 0 0 8px;
}
.settings-group-moderation[open] summary {
  margin-bottom: 8px;
}
#groupMessageSettings .settings-keyword-field {
  grid-column: 1/-1;
}
#groupMessageSettings .settings-keyword-field textarea {
  min-height: 76px;
  height: 76px;
  resize: vertical;
}
#vipInviteTiers .vip-invite-tier {
  display: block;
  padding: 10px 12px;
  border: 1px solid #e7ebef;
}
#vipInviteTiers .structured-row-head {
  margin: 0;
}
#addVipInviteTier {
  width: auto;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 14px;
  border: 1px solid #ffca8a;
  border-radius: 6px;
  background: #fff;
  color: #975500;
}
.hero-product-filters {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin: 0 0 14px;
  align-items: end;
}
.hero-product-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: #627286;
  font-size: 13px;
}
[data-panel=heroSms] .hero-product-filters :is(input,select) {
  min-width: 0;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
}
#heroSingleSync {
  margin: 0 0 12px;
  color: #536578;
  font-size: 14px;
}
#heroSingleSync summary {
  cursor: pointer;
  padding: 8px 0;
}
#heroFilterNotice {
  color: #b43131;
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media(max-width:700px) {
  .hero-product-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
}
.compact-settings-records {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.compact-settings-records .structured-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.compact-settings-records .structured-row {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  min-width: 0;
  border-radius: 8px;
}
#settingContactsEditor.compact-settings-records .structured-row,#settingCryptoChannelsEditor.compact-settings-records .structured-row {
  display: block;
}
#settingContactsEditor.compact-settings-records .structured-row-head,#settingCryptoChannelsEditor.compact-settings-records .structured-row-head {
  flex-direction: row;
  align-items: center;
}
.compact-settings-records .structured-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-width: 0;
}
.compact-settings-records .structured-fields[hidden] {
  display: none!important;
}
.settings-record-summary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-record-summary strong,.settings-record-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
}
.settings-record-summary span {
  color: #67778b;
  font-size: 12px;
}
.compact-settings-records .row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.compact-settings-records button:not(.add-row-btn) {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}
.settings-record-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.compact-settings-records .row-actions .settings-record-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.compact-settings-records .row-actions .settings-record-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: #ff9800;
}
.compact-settings-records .structured-row-head button[data-record-edit] {
  color: #42556b;
}
dialog.settings-record-dialog {
  box-sizing: border-box;
  width: 640px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  overflow: auto;
  color: #15202b;
  background: #fff;
}
.settings-record-dialog::backdrop {
  background: rgba(15,23,42,.4);
}
.settings-record-dialog form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.settings-record-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-record-dialog-head h2 {
  font-size: 18px;
  margin: 0;
}
.settings-record-dialog-head button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 24px;
}
.settings-record-dialog .structured-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.settings-record-dialog :is(input:not([type=checkbox]),textarea,select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.settings-record-dialog textarea {
  min-height: 100px;
  max-height: 260px;
  resize: vertical;
}
.settings-record-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.settings-record-dialog button {
  border: 1px solid #e4e7eb;
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 14px;
  background: #fff;
  color: #243346;
  font: inherit;
  cursor: pointer;
}
.settings-record-dialog button.primary {
  border-color: #ff9800;
  background: #ff9800;
  color: #fff;
}
.settings-record-dialog .structured-row-head[hidden] {
  display: none!important;
}
.compact-settings-records .settings-record-dialog .structured-fields:not([hidden]) {
  display: grid;
}
.compact-settings-records .settings-record-dialog .structured-row {
  padding: 0;
  border: 0;
  background: transparent;
}
@media(max-width:600px) {
  .compact-settings-records .structured-row-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .compact-settings-records .settings-record-summary {
    flex-basis: 100%;
  }
  .compact-settings-records .row-actions {
    flex-wrap: wrap;
  }
  dialog.settings-record-dialog {
    padding: 16px;
  }
  .settings-record-dialog .structured-fields {
    grid-template-columns: minmax(0,1fr);
  }
}
