:root {
  --text: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --green: #16a34a;
  --green-dark: #15803d;
  --blue: #2563eb;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: Consolas, Menlo, "Courier New", monospace;
}

.recharge-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(59, 130, 246, 0.14), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(45, 212, 191, 0.16), transparent 30%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 50%, #eafafa 100%);
  color: var(--text);
}

.top-header {
  height: 64px;
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.service-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dff7ee;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #10b981;
}

.service-status.is-closed {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.service-status.is-closed .status-dot {
  background: #f97316;
}

.page-main {
  width: 100%;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 32px;
}

.hero-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-section h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-section p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 17px;
}

.feature-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #cfe0f5;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.service-metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.service-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: rgba(239, 246, 255, 0.86);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.service-metrics b {
  color: #2563eb;
  font-weight: 900;
}

.announcement-panel {
  width: 980px;
  max-width: calc(100vw - 48px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: -8px auto 26px;
  padding: 20px 22px;
  border: 1px solid rgba(96, 165, 250, 0.9);
  border-left: 5px solid #2563eb;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.14);
  box-sizing: border-box;
}

.announcement-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26);
}

.announcement-body {
  min-width: 0;
}

.announcement-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.announcement-content {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.recharge-card {
  width: 980px;
  max-width: calc(100vw - 48px);
  min-width: min(900px, calc(100vw - 48px));
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 58px;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.tabs .tab {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 58px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 8px;
  line-height: 1;
}

.tabs .tab.active {
  color: var(--green);
}

.tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--green);
}

.tabs .tab:hover:not(.active) {
  color: var(--text);
  background: rgba(248, 250, 252, 0.74);
}

.card-panel {
  padding: 0;
}

.steps-area {
  background: #f8fbff;
  padding: 36px 64px 28px;
  border-bottom: 1px solid var(--border-light);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: max-content;
}

.stp {
  min-width: 86px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stp-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: var(--muted-light);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.stp.active .stp-dot {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.stp.done .stp-dot {
  background: var(--green);
  color: #fff;
}

.stp-lbl {
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.stp.active .stp-lbl {
  color: var(--blue);
}

.stp.done .stp-lbl {
  color: var(--green);
}

.stp-line {
  width: 84px;
  height: 2px;
  flex: 0 0 84px;
  align-self: flex-start;
  margin-top: 21px;
  background: #dbeafe;
}

.form-area {
  padding: 38px 44px 40px;
}

.step-section {
  padding: 0;
}

#page-query.card-panel,
#page-tutorial.card-panel {
  padding: 38px 44px 40px;
}

.form-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.form-title-row h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.form-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.card-head h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-size: 18px;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

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

.flabel {
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.required {
  color: #ef4444;
}

.opt {
  color: var(--muted);
  font-weight: 500;
}

.finput {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.finput {
  min-height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.6;
}

.finput:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hint {
  display: block;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4f9ff;
  border: 1px solid #d8eaff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn-row.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.btn-primary,
.btn-success,
.submit-button,
button[type="submit"]:not(.btn-ghost) {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.16);
}

.btn-primary:hover,
.btn-success:hover,
.submit-button:hover,
button[type="submit"]:not(.btn-ghost):hover {
  background: var(--green-dark);
}

.full-btn,
.submit-button,
#verifyForm button[type="submit"] {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  font-size: 16px;
}

.btn-ghost {
  background: #f8fafc;
  color: #475569;
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #eef2f7;
}

.pkg-banner {
  margin-bottom: 20px;
  padding: 15px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 14px;
  line-height: 1.75;
}

.pkg-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 900;
}

.pkg-banner .muted-line {
  color: var(--blue);
  font-size: 13px;
  margin-top: 4px;
}

.session-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #d8eaff;
}

.session-action-panel strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
}

.session-action-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.session-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.session-btn {
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
}

.confirm-box,
.result-detail,
.order-result {
  margin-bottom: 18px;
  padding: 6px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.c-row,
.r-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed #dbe4ef;
  font-size: 14px;
}

.c-row:last-child,
.r-row:last-child {
  border-bottom: 0;
}

.c-row span,
.r-row span {
  min-width: 88px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
}

.c-row b,
.r-row b {
  word-break: break-all;
}

.success-hero {
  text-align: center;
  padding: 16px 0 24px;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.success-hero h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.success-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.result-detail strong {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 850;
}

.status.pending {
  color: #92400e;
  background: #fef3c7;
}

.status.processing {
  color: #1e40af;
  background: #dbeafe;
}

.status.completed {
  color: #14532d;
  background: #dcfce7;
}

.status.failed,
.status.problem,
.status.cancelled {
  color: #991b1b;
  background: #fee2e2;
}

.status.unused,
.status.returned {
  color: #713f12;
  background: #fefce8;
}

.status.disabled,
.status.expired,
.status.missing,
.status.unknown {
  color: #7f1d1d;
  background: #ffe4e6;
}

.tab-bar {
  display: flex;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.tab-bar .tab {
  position: relative;
  border: 0;
  background: none;
  padding: 0 22px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.tab-bar .tab.active {
  color: var(--green);
}

.tab-bar .tab.active::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--green);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.s-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}

.s-card:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
}

.s-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.s-card strong {
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
}

.s-card.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.s-card.ok strong {
  color: var(--green);
}

.s-card.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.s-card.warn strong {
  color: var(--warning);
}

.s-card.fail {
  border-color: #fecaca;
  background: #fff1f2;
}

.s-card.fail strong {
  color: var(--danger);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.fbtn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 800;
}

.fbtn.active,
.fbtn:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.fbtn-export {
  margin-left: auto;
  color: var(--green);
  border-color: #bbf7d0;
}

.q-table-wrap {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}

.q-table-wrap table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.q-table-wrap th,
.q-table-wrap td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.q-table-wrap th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.q-table-wrap tr:last-child td {
  border-bottom: 0;
}

.q-table-wrap tr.row-ok td {
  background: #fafffd;
}

.queue-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.queue-pill.waiting {
  background: #fff7ed;
  color: #c2410c;
}

.queue-pill.ready {
  background: #ecfdf5;
  color: #047857;
}

.queue-pill.muted {
  background: #f1f5f9;
  color: var(--muted);
}

.q-table-wrap tr.row-pending td {
  background: #fffffb;
}

.q-table-wrap tr.row-fail td {
  background: #fffafa;
}

.q-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.q-act {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  padding: 2px 4px;
}

.q-act-danger {
  color: var(--danger);
}

.q-act:hover {
  text-decoration: underline;
}

.empty-msg {
  text-align: center;
  color: var(--muted);
  padding: 34px 20px;
  font-size: 14px;
}

.or-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.tut-list {
  display: grid;
  gap: 14px;
}

.tut-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.tut-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.tut-num-faq {
  background: var(--green);
}

.tut-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.tut-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tut-body code {
  color: var(--blue);
  font-weight: 800;
}

.code-block {
  margin-top: 10px;
  background: var(--text);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Consolas, Menlo, "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
}

.tip-box {
  margin-top: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  color: #1e3a8a;
  font-size: 13px;
}

.tip-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.faq-q {
  font-weight: 850;
  color: var(--text);
}

.faq-a {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

.contact-bar {
  width: 980px;
  max-width: calc(100vw - 48px);
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #475569;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
}

.page-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted-light);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  padding: 11px 15px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  font-size: 14px;
}

@media (max-width: 768px) {
  .top-header {
    padding: 0 16px;
  }

  .brand {
    font-size: 15px;
  }

  .service-status {
    padding: 7px 10px;
    font-size: 12px;
  }

  .page-main {
    padding: 40px 12px 24px;
  }

  .hero-section {
    margin-bottom: 26px;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .hero-section p {
    font-size: 15px;
  }

  .feature-tags {
    gap: 8px;
  }

  .feature-tags span {
    padding: 7px 12px;
    font-size: 12px;
  }

  .announcement-panel,
  .recharge-card,
  .contact-bar {
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 24px);
    border-radius: 18px;
  }

  .announcement-panel {
    margin: -6px auto 18px;
    padding: 16px;
    gap: 12px;
  }

  .announcement-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 20px;
  }

  .announcement-title {
    font-size: 16px;
  }

  .announcement-content {
    font-size: 15px;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 54px;
  }

  .tabs .tab {
    height: 54px;
    padding: 0 4px;
    font-size: 13px;
  }

  .tabs .tab.active::after {
    width: 42px;
  }

  .steps-area {
    padding: 28px 20px;
    overflow-x: auto;
  }

  .stepper {
    justify-content: flex-start;
    gap: 16px;
  }

  .stp {
    min-width: 74px;
  }

  .stp-dot {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .stp-line {
    width: 48px;
    flex-basis: 48px;
    margin-top: 18px;
  }

  .stp-lbl {
    font-size: 12px;
  }

  .form-area,
  #page-query.card-panel,
  #page-tutorial.card-panel {
    padding: 26px 22px 28px;
  }

  .form-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .field-row,
  .summary-row {
    grid-template-columns: 1fr;
  }

  .btn-row {
    align-items: stretch;
  }

  .btn-row .btn {
    flex: 1 1 auto;
  }

  .session-action-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .session-action-buttons {
    width: 100%;
  }

  .session-action-buttons .btn {
    flex: 1 1 0;
  }

  .tab-bar .tab {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fbtn-export {
    margin-left: 0;
  }

  .tut-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .top-header {
    gap: 10px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    font-size: 17px;
  }

  .brand {
    font-size: 14px;
  }

  .service-status {
    gap: 6px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .hero-section h1 {
    font-size: 30px;
  }

  .tabs .tab {
    font-size: 12px;
  }
}
