:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #6b7280;
  --line: #e7e2d5;
  --paper: #fff8e6;
  --blue: #1594d2;
  --red: #e43124;
  --yellow: #ffd43b;
  --green: #3caf58;
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 16px 42px rgba(29, 38, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 212, 59, 0.28), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(21, 148, 210, 0.22), transparent 26%),
    linear-gradient(110deg, #fff8e6 0 48%, #eaf8ff 48% 100%);
}

body:has(.loginPage) {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 212, 59, 0.38), transparent 22%),
    radial-gradient(circle at 86% 12%, rgba(21, 148, 210, 0.3), transparent 24%),
    linear-gradient(120deg, #fff8e6 0 50%, #e8f7ff 50% 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: rgba(20, 20, 20, 0.94);
  color: #fff;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}

.brandMark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 3px;
}

nav {
  display: grid;
  gap: 8px;
}

nav a {
  color: #d1d5db;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
}

nav a.active,
nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.adminLink {
  display: block;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.balanceCard {
  position: absolute;
  right: 22px;
  bottom: 26px;
  left: 22px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.balanceCard span,
.quickStats span,
.panelHead span {
  color: var(--muted);
  font-size: 13px;
}

.balanceCard strong {
  display: block;
  margin-top: 6px;
  font-size: 38px;
}

main {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.topbar p,
.topbar h1 {
  margin: 0;
}

.topbar p {
  color: var(--muted);
  font-weight: 700;
}

.topbar h1 {
  margin-top: 5px;
  font-size: 32px;
}

.ghostBtn,
.primaryBtn,
.redeemForm button,
.providerForm button,
.packageCard button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.ghostBtn {
  padding: 11px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.topActions {
  display: flex;
  gap: 10px;
}

.authPanel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
  border: 1px solid rgba(231, 226, 213, 0.85);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.authCopy h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.authCopy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.authForm {
  display: grid;
  gap: 10px;
}

.authButtons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.authButtons button,
.authForm > button,
.inlineFields button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.inlineFields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.demoText {
  margin-top: 12px !important;
  color: #111827 !important;
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

.generator,
.panel,
.previewPanel {
  border: 1px solid rgba(231, 226, 213, 0.85);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.generator,
.panel {
  padding: 20px;
}

.field label,
.controlGrid label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.65;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

.controlGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.primaryBtn {
  width: 100%;
  height: 52px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
}

.formMsg {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--blue);
  font-weight: 700;
}

.qualityHint {
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.complianceBox {
  margin-top: 28px;
  min-height: 230px;
  padding: 22px 24px;
  border: 2px solid #ef4444;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
  color: #7f1d1d;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.08);
}

.complianceBox strong {
  display: block;
  margin-bottom: 8px;
  color: #b91c1c;
  font-size: 20px;
}

.complianceBox p {
  margin: 12px 0 0;
  max-width: 780px;
  line-height: 1.8;
  font-weight: 700;
}

.previewPanel {
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 24px;
  display: flex;
  max-height: calc(100vh - 48px);
  flex-direction: column;
}

.previewTools {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
  background: #fff;
}

.previewDownloadBtn {
  padding: 10px 14px;
  font-weight: 800;
}

.previewDownloadBtn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.previewImage {
  display: grid;
  width: 100%;
  height: clamp(360px, 58vh, 620px);
  min-height: 0;
  padding: 18px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(224, 47, 33, 0.12), transparent 45%),
    linear-gradient(45deg, rgba(21, 148, 210, 0.12), transparent 42%),
    #fffdf6;
}

.previewImage img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  max-height: 100%;
  object-fit: contain;
  background: #fffdf6;
  border: 1px solid rgba(231, 226, 213, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(29, 38, 58, 0.18);
  cursor: zoom-in;
}

.previewImage span {
  color: var(--muted);
  font-weight: 800;
}

.quickStats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
}

.quickStats div {
  padding: 18px;
}

.quickStats div + div {
  border-left: 1px solid var(--line);
}

.quickStats strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.sectionGrid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  margin-top: 20px;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.statsGrid div {
  border: 1px solid rgba(231, 226, 213, 0.85);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.statsGrid span {
  color: var(--muted);
}

.statsGrid strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.panel {
  margin-top: 20px;
}

.sectionGrid .panel {
  margin-top: 0;
}

.panelHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panelHead h2 {
  margin: 0;
  font-size: 21px;
}

.redeemForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px 120px;
  gap: 10px;
}

.redeemForm button,
.providerForm button,
.packageCard button {
  background: var(--ink);
  color: #fff;
}

.secondaryBtn {
  height: 44px;
  border: 1px solid #dbe3ea !important;
  border-radius: 8px;
  background: #fff !important;
  color: #334155 !important;
  font-weight: 900;
}

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.packageCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  padding: 16px;
}

.packageCard strong {
  display: block;
  font-size: 24px;
  margin: 6px 0 12px;
}

.packageCard button {
  width: 100%;
  height: 40px;
}

.wechatContacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wechatCard {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  padding: 16px;
}

.wechatCard strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.wechatCard span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.wechatCard img {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  justify-self: center;
  border: 1px solid rgba(231, 226, 213, 0.9);
  border-radius: 8px;
  background: #fff;
}

.worksGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.workCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workCard img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fffdf6;
  cursor: zoom-in;
}

.failedWork {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  place-items: center;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 900;
}

.customerPage.hidden {
  display: none !important;
}

.imageModal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(15, 23, 42, 0.82);
}

.imageModalBar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
}

.imageModalBar button {
  height: 40px;
  min-width: 78px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 900;
}

.imageModalStage {
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 28px;
}

.imageModalStage img {
  max-width: min(92vw, 1200px);
  max-height: none;
  transform-origin: top center;
  transition: transform 0.12s ease;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.workCard div {
  padding: 12px;
}

.workCard strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workCard span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.workCard details {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.workCard pre {
  max-height: 140px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  white-space: pre-wrap;
}

.tableList {
  display: grid;
  gap: 10px;
}

.tableRow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.9fr) minmax(120px, 0.6fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  padding: 12px 14px;
}

.tableRow strong,
.tableRow span,
.tableRow em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tableRow span {
  color: var(--muted);
}

.tableRow em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.providerLayout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 16px;
}

.providerForm {
  display: grid;
  gap: 10px;
}

.providerCard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.providerCard h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 900;
}

.providerForm button {
  height: 44px;
}

.providerList {
  display: grid;
  gap: 10px;
}

.providerItem {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  padding: 14px;
}

.providerItem strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(60, 175, 88, 0.14);
  color: #1b7f39;
  font-size: 12px;
}

.badge.disabled {
  background: rgba(107, 114, 128, 0.14);
  color: #4b5563;
}

.empty {
  color: var(--muted);
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.adminShell {
  grid-template-columns: 256px minmax(0, 1fr);
  background: linear-gradient(105deg, #f8fafc 0 55%, #e8f9f7 55% 100%);
}

.adminShell .sidebar {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border-right: 1px solid #e5e7eb;
}

.adminShell .brand span {
  color: #6b7280;
}

.adminShell nav a {
  color: #4b5563;
  font-weight: 700;
}

.adminShell nav a.active,
.adminShell nav a:hover {
  background: #e9fbf6;
  color: #0f9f8f;
}

.adminShell .adminLink {
  border-color: #e5e7eb;
  color: #111827;
}

.adminShell main {
  padding: 0;
}

.adminTopbar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 20px 32px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.adminShell #adminArea,
.adminShell #adminAuthPanel {
  margin: 24px 32px;
}

.adminShell .statsGrid {
  margin-bottom: 20px;
}

.adminShell .statsGrid div,
.adminShell .panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e5e7eb;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.moneyPill {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e9fbf6;
  color: #079386;
  font-weight: 900;
}

.statusGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.statusPanel,
.monitorGrid article {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  padding: 18px;
}

.statusPanel h3,
.monitorGrid h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.statusItem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.statusItem:first-child {
  border-top: 0;
}

.statusItem span {
  color: #64748b;
}

.statusItem strong {
  color: #111827;
}

.okText {
  color: #159447 !important;
}

.warnText {
  color: #b7791f !important;
}

.badText {
  color: #dc2626 !important;
}

.monitorGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.primaryBtn {
  padding: 11px 18px;
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.22);
}

.toolbarActions {
  display: flex;
  gap: 10px;
}

.providerForm h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.adminFilters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 12px;
}

.adminTable {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.adminTableHead,
.adminTableRow {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.adminTableHead {
  color: #64748b;
  background: #f8fafc;
  font-weight: 800;
}

.adminTableRow {
  border-top: 1px solid #edf2f7;
}

.adminTableRow strong,
.adminTableRow span,
.adminTableRow small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adminTableRow small {
  margin-top: 5px;
  color: #64748b;
}

.providerTableRow {
  grid-template-columns: minmax(150px, 1fr) minmax(280px, 1.6fr) minmax(140px, 0.8fr) 90px 190px;
}

.rowActions {
  display: flex;
  gap: 8px;
}

.rowActions button {
  height: 34px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 800;
}

.rowActions button:first-child {
  background: #0f9f8f;
  border-color: #0f9f8f;
  color: #fff;
}

.rowActions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.adminPage.hidden {
  display: none !important;
}

.codesPageHead {
  align-items: center;
}

.codesFilters {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) 160px 160px;
  gap: 14px;
  margin-bottom: 16px;
}

.codesTableWrap {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.codesTableHead,
.codesTableRow {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) 110px 120px 120px minmax(200px, 1.2fr) 180px 100px;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

.codesTableHead {
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}

.codesTableRow {
  border-top: 1px solid #eef2f7;
  min-height: 72px;
}

.codeCell {
  min-width: 0;
  color: #334155;
}

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

.codeValueCell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  color: #0f172a;
}

.iconCopyBtn,
.textActionBtn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 700;
}

.iconCopyBtn:hover,
.textActionBtn:hover {
  color: #0f766e;
}

.typeTag,
.statusTag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.typeTag {
  background: #dcfce7;
  color: #16a34a;
}

.statusTag.is-unused {
  background: #dcfce7;
  color: #16a34a;
}

.statusTag.is-used {
  background: #eef2f7;
  color: #64748b;
}

.mutedDash {
  color: #94a3b8;
}

.codeActions {
  display: flex;
  justify-content: flex-end;
}

.codesFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: #64748b;
  font-size: 14px;
}

.usersPageHead {
  align-items: center;
}

.usersFilters {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) 160px 180px;
  gap: 14px;
  margin-bottom: 14px;
}

.usersTableWrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.usersTable {
  min-width: 1260px;
}

.usersTableHead,
.usersTableRow {
  display: grid;
  grid-template-columns: minmax(260px, 1.9fr) minmax(126px, 0.95fr) minmax(150px, 1fr) 84px 96px 90px 100px 156px 138px;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
}

.usersTableHead {
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}

.usersTableRow {
  border-top: 1px solid #eef2f7;
  min-height: 84px;
}

.usersTableHead > span,
.usersTableRow > div {
  min-width: 0;
}

.userMainCell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.userMainCell strong,
.userMainCell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userMainCell strong {
  color: #0f172a;
  font-size: 17px;
}

.userMainCell small {
  margin-top: 4px;
  color: #94a3b8;
}

.userIdCell,
.userNameCell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
}

.userIdCell {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.userNameCell {
  font-weight: 600;
}

.userAvatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #c4fbf1;
  color: #0f766e;
  font-weight: 900;
  flex: 0 0 auto;
}

.roleTag,
.verifyTag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.roleTag {
  background: #f1f5f9;
  color: #475569;
}

.verifyTag.is-verified {
  background: #dcfce7;
  color: #16a34a;
}

.verifyTag.is-unverified,
.statusTag.is-banned {
  background: #fee2e2;
  color: #dc2626;
}

.statusTag.is-active {
  background: #dcfce7;
  color: #16a34a;
}

.balanceCell strong {
  color: #0f172a;
}

.userActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.warnActionBtn {
  color: #dc2626;
}

.warnActionBtn:hover {
  color: #b91c1c;
}

.usersFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: #64748b;
  font-size: 14px;
}

.codeGenModal {
  width: min(560px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(15, 23, 42, 0.24);
}

.codeGenModal header,
.codeGenForm footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.codeGenModal header {
  padding: 28px 32px 14px;
}

.codeGenModal header h2,
.codeGenModal header p {
  margin: 0;
}

.codeGenModal header h2 {
  font-size: 24px;
  line-height: 1.15;
}

.codeGenModal header p {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
}

.codeGenModal header button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eef4fb;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
}

.codeGenForm {
  display: grid;
  gap: 18px;
  padding: 8px 32px 32px;
}

.codeGenForm label {
  display: grid;
  gap: 10px;
  color: #334155;
  font-weight: 700;
  font-size: 15px;
}

.codeGenForm input,
.codeGenForm select {
  height: 56px;
  padding: 0 16px;
  border: 1px solid #e7dcc3;
  border-radius: 14px;
  background: #fffcf4;
  color: #1e293b;
}

.codeGenForm input::placeholder {
  color: #94a3b8;
}

.codeGenForm select:disabled {
  opacity: 1;
  color: #334155;
  -webkit-text-fill-color: #334155;
}

.codeGenForm footer {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-top: 10px;
}

.codeGenForm footer .ghostBtn,
.codeGenForm footer .primaryBtn {
  width: 100%;
  height: 64px;
  padding: 0 20px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 800;
}

.codeGenForm footer .ghostBtn {
  box-shadow: none;
  border: 1px solid #e5e7eb;
  color: #334155;
}

.codeGenForm footer .primaryBtn {
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.24);
}

@media (max-width: 640px) {
  .codeGenModal {
    width: calc(100vw - 20px);
  }

  .codeGenModal header,
  .codeGenForm {
    padding-left: 22px;
    padding-right: 22px;
  }

  .codeGenForm footer {
    grid-template-columns: 1fr;
  }
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.testModal {
  width: min(640px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.testModal header,
.testModal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.testModal header {
  border-bottom: 1px solid #e5e7eb;
}

.testModal header h2,
.testModal header p {
  margin: 0;
}

.testModal header p {
  margin-top: 6px;
  color: #64748b;
}

.testModal header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 24px;
}

.testChannelCard {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 20px 24px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.playIcon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #14b8a6;
  color: #fff;
  font-size: 24px;
}

.testChannelCard strong,
.testChannelCard span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testChannelCard span {
  margin-top: 5px;
  color: #64748b;
}

.testChannelCard em {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-style: normal;
  font-weight: 900;
}

.testChannelCard em.ok {
  background: #dcfce7;
  color: #159447;
}

.testChannelCard em.bad {
  background: #fee2e2;
  color: #dc2626;
}

.testSelect {
  display: grid;
  gap: 8px;
  margin: 0 24px 20px;
  color: #475569;
  font-weight: 800;
}

.testConsole {
  height: 150px;
  overflow: auto;
  margin: 0 24px;
  padding: 16px;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  font-family: Consolas, "Courier New", monospace;
}

.testConsole p {
  margin: 0 0 8px;
}

.testConsole .success {
  color: #86efac;
}

.testConsole .error {
  color: #fca5a5;
}

.testConsole .muted {
  color: #cbd5e1;
}

.testModal footer {
  border-top: 1px solid #e5e7eb;
}

.testModal footer span {
  color: #64748b;
}

.testModal footer button {
  height: 44px;
  min-width: 120px;
  border: 0;
  border-radius: 8px;
  background: #14b8a6;
  color: #fff;
  font-weight: 900;
}

.loginPage {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 0.8fr);
  gap: 34px;
  min-height: 100vh;
  align-items: center;
  padding: 54px;
}

.loginHero {
  max-width: 760px;
}

.loginBrand {
  margin-bottom: 42px;
}

.loginBrand strong {
  font-size: 22px;
}

.loginHero h1 {
  max-width: 680px;
  margin: 0;
  color: #111827;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: 0;
}

.loginHero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.loginDemo {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(231, 226, 213, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.loginDemo strong {
  font-size: 15px;
}

.loginDemo span {
  color: #374151;
  font-weight: 700;
}

.loginCard {
  width: min(100%, 500px);
  justify-self: center;
  padding: 26px;
  border: 1px solid rgba(231, 226, 213, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(29, 38, 58, 0.18);
}

.authTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 8px;
  background: #f3f4f6;
}

.authTabs button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  font-weight: 900;
}

.authTabs button.active {
  background: #111827;
  color: #fff;
}

.loginCard .authForm input {
  height: 48px;
  background: #fffdf7;
}

.loginCard .authForm > button,
.loginCard .inlineFields button {
  height: 48px;
  background: var(--red);
}

.helperRow {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.textBtn {
  border: 0;
  background: transparent;
  color: #0f4c81;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 0;
  line-height: 1.3;
}

.textBtn:hover {
  text-decoration: underline;
}

.textBtnStrong {
  color: #0b3e6d;
}

.linkPillBtn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d9e7f4;
  background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
  color: #0b3e6d;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.linkPillBtn:hover {
  text-decoration: none;
  border-color: #9ec3e6;
  background: linear-gradient(180deg, #edf6ff 0%, #dff0ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(21, 148, 210, 0.18);
}

.linkPillBtn:active {
  transform: translateY(0);
}

.linkPillBtnLite {
  border-color: #e4e7ec;
  background: #f8fafc;
  color: #334155;
}

.linkPillBtnLite:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.agreeRow {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 2px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.agreeRow input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.agreeRow a {
  color: #234f87;
  text-decoration: none;
}

.agreeRow a:hover {
  text-decoration: underline;
}

.agreeHint {
  margin: -2px 0 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.authPolicyLinks {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  border-top: 1px solid #e8edf4;
  padding-top: 12px;
}

.authPolicyLinks a {
  color: #475569;
  font-size: 13px;
  text-decoration: none;
}

.authPolicyLinks a:hover {
  color: #1d4ed8;
}

.modernCustomer {
  grid-template-columns: 210px minmax(0, 1fr);
  background: linear-gradient(120deg, #f8f9ff 0%, #f4f7ff 45%, #f5fbff 100%);
}

.modernSidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 18px;
  padding-right: 18px;
  padding-bottom: 18px;
  padding-left: 18px;
  background: radial-gradient(circle at 20% 0%, #1f2b63 0%, #0e1635 55%, #080d20 100%);
}

.modernBrand {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px !important;
}

.modernBrand > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  gap: 2px;
}

.modernBrand .brandMark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff3d2e 0%, #ff7d2d 100%);
  font-size: 24px;
  margin-top: 2px;
}

.modernBrand strong {
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 0.95;
}

.modernBrand span {
  color: #bfc6de;
  font-size: 12px;
  margin-top: 0;
  line-height: 1.15;
}

.modernNav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0 !important;
  padding-top: 0;
  align-items: stretch;
}

.modernNav a {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 900;
  color: #d8dff4;
}

.modernNav a.active,
.modernNav a:hover {
  background: linear-gradient(90deg, #6b2fff 0%, #ff3ec9 100%);
  color: #fff;
}

.modernBalanceCard {
  position: static;
  margin-top: auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modernBalanceCard span {
  color: #d6ddf8;
}

.modernBalanceCard strong {
  margin-top: 10px;
  font-size: 48px;
}

.modernSidebar .balanceCard {
  left: auto;
  right: auto;
  bottom: auto;
}

.chargeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 38px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5a35ff 0%, #f024ca 100%);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.modernMain {
  padding: 30px;
}

.modernTopbar {
  margin-bottom: 16px;
}

.modernTopbar h1 {
  margin-top: 0;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.modernTopbar p {
  margin-top: 8px;
  font-size: 22px;
  color: #64748b;
}

.accountBadge {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 800;
}

.ghostPrimary {
  color: #fff;
  background: linear-gradient(90deg, #5b3bff 0%, #1f6fff 100%);
}

.modernWorkspace {
  display: grid;
  grid-template-columns: minmax(450px, 0.95fr) minmax(460px, 1.05fr);
  gap: 18px;
}

.composerCard,
.previewCard {
  margin-top: 0;
  border-radius: 20px;
  border: 1px solid #e9eefe;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 20px 50px rgba(62, 78, 122, 0.12);
}

.panelSection h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.panelSection + .panelSection {
  margin-top: 18px;
}

.counter {
  margin-top: 8px;
  text-align: right;
  color: #64748b;
  font-weight: 700;
}

.optionGroup + .optionGroup {
  margin-top: 12px;
}

.optionGroup label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 900;
  color: #1e293b;
}

.chipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chipOption {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  transition: all 0.14s ease;
}

.chipOption:hover {
  border-color: #a5b4fc;
  color: #312e81;
}

.chipOption.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #6c2fff 0%, #f028c8 100%);
}

.ratioRow .chipOption {
  min-width: 68px;
}

.generateBtn {
  width: 100%;
  height: 58px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #f028c8 0%, #ff8530 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .codesFilters {
    grid-template-columns: 1fr 1fr;
  }

  .codesFilters input {
    grid-column: 1 / -1;
  }

  .codesTableHead,
  .codesTableRow {
    grid-template-columns: minmax(220px, 2fr) 100px 100px 110px minmax(180px, 1fr) 160px 90px;
    font-size: 14px;
  }

  .usersFilters {
    grid-template-columns: 1fr 1fr;
  }

  .usersFilters input {
    grid-column: 1 / -1;
  }

  .usersTableHead,
  .usersTableRow {
    grid-template-columns: minmax(240px, 1.8fr) minmax(120px, 0.95fr) minmax(136px, 1fr) 80px 90px 90px 100px 140px 124px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .codesFilters,
  .toolbarActions {
    grid-template-columns: 1fr;
  }

  .codesPageHead {
    align-items: flex-start;
  }

  .codesTableWrap {
    overflow-x: auto;
  }

  .codesTable {
    min-width: 980px;
  }

  .usersTableWrap {
    overflow-x: auto;
  }

  .usersTable {
    min-width: 1260px;
  }
}

.generateTip {
  margin: 10px 0 0;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.complianceNotice {
  margin-top: 14px;
  border: 1px solid #f2c3c3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8f8 0%, #fffdfd 100%);
  padding: 12px 14px;
}

.complianceNotice p {
  margin: 0;
  color: #7a2533;
  font-size: 13px;
  line-height: 1.6;
}

.complianceNotice p + p {
  margin-top: 6px;
}

.complianceLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.complianceLinks a {
  color: #174780;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.complianceLinks a:hover {
  text-decoration: underline;
}

.policyPage {
  min-height: 100vh;
  padding: 36px 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 212, 59, 0.2), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(21, 148, 210, 0.2), transparent 24%),
    linear-gradient(120deg, #f7f9ff 0%, #eef5ff 100%);
}

.policyCard {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid #dde8f8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 28px 26px;
  box-shadow: 0 20px 50px rgba(35, 66, 122, 0.12);
}

.policyTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.policyBack {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 800;
}

.policyCard h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.policyMeta {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
}

.policySection h2 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.policySection p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

.previewHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.previewHead h2 {
  margin: 0;
  font-size: 30px;
}

.miniBtn {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.previewCanvas {
  display: grid;
  min-height: 250px;
  place-items: center;
  border-radius: 16px;
  border: 1px solid #edf1ff;
  background: linear-gradient(135deg, #f7f2ff 0%, #eef4ff 100%);
}

.previewCanvas img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 14px;
  cursor: zoom-in;
}

.previewCanvas span {
  color: #64748b;
  font-weight: 800;
}

.historyHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}

.historyHead h3 {
  margin: 0;
  font-size: 24px;
}

.historyHead a {
  color: #5b39ff;
  text-decoration: none;
  font-weight: 800;
}

.historyGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workTile {
  overflow: hidden;
  border: 1px solid #edf1ff;
  border-radius: 14px;
  background: #fff;
}

.workThumb img,
.workThumb .failedWork {
  display: block;
  width: 100%;
  height: 155px;
  object-fit: cover;
}

.workMeta {
  padding: 10px 12px 0;
}

.workMeta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
}

.workMeta span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.workActions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 12px;
}

.workActions button {
  height: 34px;
  border: 1px solid #dbe3ea;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.workActions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.summaryRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.summaryCard {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0edff 0%, #f5fbff 100%);
  border: 1px solid #e8ecff;
}

.summaryCard.warm {
  background: linear-gradient(135deg, #fff2e9 0%, #fff8ee 100%);
}

.summaryCard span {
  color: #64748b;
}

.summaryCard strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  color: #0f172a;
}

.customerApp .yhSide {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding: 22px 18px 20px;
  background:
    linear-gradient(180deg, rgba(70, 61, 255, 0.18) 0%, rgba(5, 10, 30, 0) 34%),
    #081027;
  color: #fff;
}

.customerApp .yhBrand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  margin: 0 0 18px;
}

.customerApp .yhLogo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2d25 0%, #ff7a2e 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.customerApp .yhBrandText {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 1px;
}

.customerApp .yhBrandText strong {
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.customerApp .yhBrandText span {
  margin-top: 8px;
  color: #b9c5e8;
  font-size: 13px;
  line-height: 1.2;
}

.customerApp .yhNav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.customerApp .yhNav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  color: #dbe5ff;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.customerApp .yhNav a.active,
.customerApp .yhNav a:hover {
  background: linear-gradient(90deg, #6236ff 0%, #f431c5 100%);
  color: #fff;
}

.customerApp .yhBalance {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
}

.customerApp .yhBalance span {
  display: block;
  color: #d6ddf8;
  font-size: 13px;
}

.customerApp .yhBalance strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
}

@media (max-width: 980px) {
  .app,
  .loginPage,
  .workspace,
  .modernWorkspace,
  .sectionGrid,
  .providerLayout,
  .authPanel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .customerApp .yhSide {
    position: static;
    height: auto;
  }

  .balanceCard {
    position: static;
    margin-top: 18px;
  }

  .worksGrid,
  .packages,
  .wechatContacts,
  .statsGrid,
  .statusGrid,
  .monitorGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tableRow {
    grid-template-columns: 1fr;
  }

  .tableRow em {
    text-align: left;
  }

  .inlineFields {
    grid-template-columns: 1fr;
  }

  .providerTableRow,
  .adminFilters {
    grid-template-columns: 1fr;
  }

  .loginPage {
    padding: 28px;
  }

  .loginHero h1 {
    font-size: 42px;
  }

  .modernTopbar h1 {
    font-size: 36px;
  }

  .modernTopbar p {
    font-size: 16px;
  }

  .previewPanel {
    position: static;
    max-height: none;
  }

  .previewImage {
    height: min(64vh, 560px);
  }
}

@media (max-width: 620px) {
  main {
    padding: 18px;
  }

  .modernMain {
    padding: 14px;
  }

  .loginPage {
    padding: 18px;
  }

  .loginHero h1 {
    font-size: 34px;
  }

  .controlGrid,
  .worksGrid,
  .historyGrid,
  .packages,
  .wechatContacts,
  .statsGrid,
  .statusGrid,
  .monitorGrid {
    grid-template-columns: 1fr;
  }

  .modernCustomer {
    grid-template-columns: 1fr;
  }

  .customerApp .yhBrandText strong {
    font-size: 26px;
  }

  .modernSidebar {
    gap: 14px;
  }

  .modernBrand {
    margin-bottom: 0;
  }

  .modernBrand strong {
    font-size: 28px;
  }

  .previewImage {
    height: min(62vh, 460px);
  }

  .previewImage img {
    max-width: min(100%, 320px);
  }
}
