:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --ok: #059669;
  --err: #dc2626;
  --warn: #d97706;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #1C222C;
  min-height: 100vh;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  min-height: 100vh;
}

.shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.hero {
  text-align: center;
  color: #e2e8f0;
  margin-bottom: 28px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
}
.hero p { margin: 0; color: #94a3b8; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card.narrow { width: min(440px, 100%); }
.card h1, .card h2 { margin-top: 0; }

.login-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn:disabled, .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-block { width: 100%; }
.btn-ghost {
  background: #f1f5f9;
  color: #0f172a;
}
.btn-ghost:hover { background: #e2e8f0; }
.btn-qq { background: #12b7f5; }
.btn-qq:hover { background: #0ea5e9; }
.btn-agg { background: #2563eb; }
.btn-agg:hover { background: #1d4ed8; }
.btn-danger { background: var(--err); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ok { color: var(--ok); }
.err { color: var(--err); }
.warn { color: var(--warn); }

.flash {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.flash.ok { background: #ecfdf5; color: #065f46; }
.flash.err { background: #fef2f2; color: #991b1b; }

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: #e2e8f0;
}
.user-bar .who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.user-bar img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff;
}
.user-bar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(520px, 70%);
}
.reject-reason {
  display: inline-block;
  max-width: min(320px, 55vw);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(254, 226, 226, 0.95);
  color: #991b1b;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.form-section {
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }
.form-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #0f172a;
}
.form-block {
  margin-bottom: 16px;
  padding: 14px 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}
.form-block:last-child { margin-bottom: 0; }
.form-block h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choice-pill {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 9px 14px;
  text-align: center;
  line-height: 1.3;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.choice-pill input:checked + span {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #0369a1;
}
.choice-pill input:disabled + span {
  opacity: .55;
  cursor: not-allowed;
}
.scene-fields.is-hidden { display: none !important; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }

label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
label.field span.req::after {
  content: " *";
  color: var(--err);
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
textarea { min-height: 90px; resize: vertical; }

.file-box {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}
.file-box input[type="file"] { width: 100%; font-size: 13px; }
.preview {
  margin-top: 8px;
  max-width: 160px;
  max-height: 120px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

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

/* Admin */
.admin-body {
  background: #f1f5f9;
  min-height: 100vh;
}
.admin-nav {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-nav a { color: #cbd5e1; margin-right: 14px; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; }
.admin-wrap { width: min(1200px, 100%); margin: 0 auto; padding: 24px 16px 40px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.stat .n { font-size: 28px; font-weight: 700; margin-top: 4px; }
.stat .l { color: var(--muted); font-size: 13px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  align-items: end;
}
.toolbar .field { min-width: 160px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
table.data th, table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}
table.data th { background: #f8fafc; color: var(--muted); font-weight: 600; }
table.data tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.pending { background: #fffbeb; color: #b45309; }
.badge.passed { background: #ecfdf5; color: #047857; }
.badge.rejected { background: #fef2f2; color: #b91c1c; }

.pager {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.detail-item { background: #f8fafc; border-radius: 10px; padding: 12px; }
.detail-item .k { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.detail-item .v { font-size: 14px; word-break: break-all; }
.img-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.img-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.img-preview-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}
.img-row img { width: 100%; height: 160px; object-fit: cover; display: block; }
.img-row .cap { font-size: 12px; color: var(--muted); }
.img-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}
.img-empty {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #f8fafc;
}
.detail-item .k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.copy-mini {
  border: none;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.copy-mini:hover { background: #bae6fd; }
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.img-lightbox[hidden] { display: none !important; }
.img-lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}
.img-lightbox-panel {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 92vh;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}
.img-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #e2e8f0;
  font-size: 14px;
  background: #1e293b;
}
.img-lightbox-panel img {
  max-width: 96vw;
  max-height: calc(92vh - 52px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
}
.feedback-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.feedback-qr-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.feedback-qr-item .k {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.feedback-qr-item .img-preview-btn {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  cursor: zoom-in;
}
.feedback-qr-item img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  background: #fff;
  display: block;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .feedback-qr-grid { grid-template-columns: 1fr; }
}

/* 申请进度页 */
.status-body {
  padding: 28px 16px 40px;
}
.status-shell {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(2, 12, 36, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  padding: 22px 22px 26px;
  animation: statusIn .35s ease-out;
  backdrop-filter: blur(8px);
}
.status-shell.is-pass { width: min(640px, 100%); }
@keyframes statusIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.status-top .who {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}
.status-top .who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0f2fe;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.2);
}
.status-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(14, 165, 233, 0.16), transparent 60%),
    linear-gradient(145deg, #f8fafc, #eff6ff);
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
}
.status-shell.is-pass .status-hero {
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(145deg, #f0fdf4, #ecfdf5);
  border-color: #bbf7d0;
}
.status-shell.is-reject .status-hero {
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(239, 68, 68, 0.14), transparent 60%),
    linear-gradient(145deg, #fff1f2, #fef2f2);
  border-color: #fecaca;
}
.status-shell.is-pending .status-hero {
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(245, 158, 11, 0.16), transparent 60%),
    linear-gradient(145deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}
.status-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.status-shell.is-pass .status-mark { background: linear-gradient(145deg, #34d399, #059669); }
.status-shell.is-reject .status-mark { background: linear-gradient(145deg, #f87171, #dc2626); }
.status-shell.is-pending .status-mark { background: linear-gradient(145deg, #fbbf24, #d97706); }
.status-hero-text { min-width: 0; }
.status-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}
.status-hero-text h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
  color: #0f172a;
}
.status-no {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0284c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.status-no:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
}
.status-msg {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.status-reject-reason {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  word-break: break-word;
}
.status-actions { margin-top: 14px; }
.status-qr {
  margin-top: 4px;
  gap: 14px;
}
.status-qr .feedback-qr-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 12px 16px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.status-qr .feedback-qr-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}
.status-qr .feedback-qr-item.is-alipay {
  border-top: 3px solid #0ea5e9;
}
.status-qr .feedback-qr-item.is-wechat {
  border-top: 3px solid #22c55e;
}
.status-qr .feedback-qr-item .k {
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 10px;
}
.status-qr .feedback-qr-item img {
  max-width: 200px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.status-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 一人多单：申请列表 */
.app-list-shell { width: min(640px, 100%); }
.app-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.app-list-head h1 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
}
.app-list-empty {
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}
.app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.app-list-item:hover {
  border-color: #bae6fd;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}
.app-list-main { min-width: 0; }
.app-list-title {
  font-weight: 600;
  color: #0f172a;
  margin: 4px 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-list-item .app-no {
  font-size: 12px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  margin-top: 12px;
}
.chart-bars .bar {
  flex: 1;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-radius: 8px 8px 4px 4px;
  min-height: 4px;
  position: relative;
}
.chart-bars .bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.chart-bars .bar em {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-style: normal;
  color: var(--text);
}

@media (max-width: 800px) {
  .grid, .grid-3, .detail-grid, .stats, .img-row {
    grid-template-columns: 1fr;
  }
  .user-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  .user-bar .who {
    order: 2;
    margin-left: auto;
    text-align: right;
  }
  .user-bar .who > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .user-bar-right {
    order: 1;
    max-width: none;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
  }
  .status-top {
    justify-content: flex-end;
  }
  .status-top .who {
    margin-left: auto;
    text-align: right;
  }
  .status-top-actions {
    margin-right: auto;
  }
}

/* Wizard - 横向进度条 */
.wizard-steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  margin: 20px 0 28px;
  width: 100%;
  padding: 4px 2px;
}
.w-step {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
  position: relative;
  z-index: 1;
}
.w-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  transition: all .2s ease;
}
.w-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .2s ease;
}
.w-line {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin-top: 16px;
  border-radius: 99px;
  transition: background .2s ease;
}
.w-line.done { background: #34d399; }
.w-step.active .w-num {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.18);
  transform: scale(1.08);
}
.w-step.active .w-label {
  color: #0284c7;
  font-weight: 700;
  font-size: 14px;
}
.w-step.done .w-num {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.w-step.done .w-label { color: #059669; }
.wizard-panel { display: none; }
.wizard-panel.is-on { display: block; }
.wizard-actions {
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}
.wizard-actions-right {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.badge.draft { background: #f1f5f9; color: #475569; }

/* 可筛选下拉 */
.combo {
  position: relative;
  width: 100%;
  z-index: 1;
}
.combo:focus-within {
  z-index: 50;
}
.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.combo-list li {
  padding: 8px 12px;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
}
.combo-list li em {
  font-style: normal;
  color: #0284c7;
  font-weight: 700;
  background: #e0f2fe;
  border-radius: 3px;
  padding: 0 1px;
}
.combo-list li:hover,
.combo-list li.active {
  background: #e0f2fe;
  color: #0369a1;
}
.license-fields[hidden],
.license-fields.is-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.status-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px;
  color: #92400e;
  line-height: 1.7;
  font-size: 15px;
}
.status-box.ok-box {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.status-box.err-box {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.app-no-copy {
  display: inline;
  border: none;
  background: transparent;
  color: #0284c7;
  font-weight: 700;
  font-size: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-no-copy:hover { color: #0369a1; }
.app-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
}
.user-cell {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px;
  min-width: 120px;
}
table.data .user-cell img.avatar-sm,
.user-cell img.avatar-sm,
.avatar-sm {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center;
  background: #e2e8f0;
  flex-shrink: 0 !important;
  display: block;
  border: 1px solid #e2e8f0;
}
.avatar-placeholder {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  flex-shrink: 0;
}
.user-cell > div {
  line-height: 1.25;
  min-width: 0;
}
.user-cell > div > div {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
}
.form-section,
.wizard-panel,
.card {
  overflow: visible;
}

@media (max-width: 480px) {
  .w-step { width: 64px; }
  .w-num { width: 32px; height: 32px; font-size: 14px; }
  .w-label { font-size: 12px; }
  .w-step.active .w-label { font-size: 13px; }
  .w-line { margin-top: 14px; }
}

/* Modal popup */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-modal[hidden] { display: none !important; }
.app-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}
.app-modal-panel {
  position: relative;
  width: min(380px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 28px 24px 20px;
  text-align: center;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.app-modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.app-modal-icon.ok { background: #10b981; }
.app-modal-icon.err { background: #ef4444; }
.app-modal-icon.warn { background: #f59e0b; }
.app-modal-icon.info { background: #0ea5e9; }
.app-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.app-modal-msg {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  word-break: break-word;
  margin-bottom: 20px;
}
.app-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.app-modal-actions .btn { min-width: 96px; }
