:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #132238;
  --muted: #66758a;
  --line: #d8e4f3;
  --blue: #1667d9;
  --blue-dark: #0d4fac;
  --blue-soft: #eaf3ff;
  --green: #12805c;
  --red: #c7352b;
  --amber: #b7791f;
  --shadow: 0 16px 40px rgba(28, 70, 126, .08);
  --radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--blue); text-decoration: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f7fbff; color: #41546f; font-weight: 800; white-space: nowrap; }
td small, .muted { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.empty-cell {
  padding: 18px 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  background: var(--surface-soft);
}
input, select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c9d8eb;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
textarea { resize: vertical; }
label { display: grid; gap: 6px; color: #3d506b; font-size: 13px; font-weight: 800; }
pre { white-space: pre-wrap; font-family: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #c9d8eb;
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.light { background: var(--blue-soft); border-color: #cce0fb; color: var(--blue-dark); }
.btn.danger, .btn.danger:hover { background: #fff1f0; border-color: #ffc7c2; color: var(--red); }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled {
  cursor: not-allowed;
  opacity: .64;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-brand { color: var(--blue-dark); font-size: 20px; font-weight: 900; }
.site-header nav { display: flex; gap: 20px; font-weight: 800; }
.site-header.simple { justify-content: center; }
.site-header.simple .site-brand { font-size: 22px; }
.site-footer { padding: 26px 18px; color: var(--muted); text-align: center; background: #fff; border-top: 1px solid var(--line); }
.float-service {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 60;
  min-width: 38px;
  min-height: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0;
  box-shadow: 0 16px 36px rgba(7, 193, 96, .28);
}
.float-service:hover { background: #06ad56; color: #fff; }

.front-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.blue-hero {
  min-height: 540px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(10, 76, 165, .96), rgba(22, 103, 217, .78)),
    url("hero-office.jpg") center/cover;
}
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}
.eyebrow { color: #d7e9ff; font-weight: 900; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(38px, 6vw, 68px); line-height: 1.06; letter-spacing: 0; }
.hero-copy { max-width: 760px; color: #eef6ff; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-card strong { font-size: 20px; }
.hero-card li { margin: 12px 0; color: #eef6ff; }

.local-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #0b2f69;
}
.local-hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 35, 78, .08), rgba(7, 35, 78, .58)),
    linear-gradient(90deg, rgba(7, 35, 78, .84), rgba(7, 35, 78, .28) 58%, rgba(7, 35, 78, .62)),
    url("hero-local-service.png") center/cover;
}
.local-hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 36px;
}
.local-hero h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: 0;
}
.local-hero .hero-copy { max-width: 720px; }
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #eef6ff;
  font-weight: 900;
}
.promise-section { padding: 30px 0 8px; }
.section-title.compact { align-items: end; }
.section-title.compact span { color: var(--muted); font-weight: 800; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.promise-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.promise-grid strong { display: block; color: var(--blue-dark); font-size: 17px; margin-bottom: 8px; }
.promise-grid span { color: var(--muted); line-height: 1.6; }
.package-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.package-topline small { color: var(--muted); font-weight: 800; }
.trusted-packages .package-card { display: flex; flex-direction: column; }
.trusted-packages .package-card .btn { margin-top: auto; }
.custom-entry, .service-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 28px;
  padding: 18px 20px;
  border: 1px solid #cce0fb;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
}
.custom-entry span, .service-band span { display: block; color: var(--muted); font-weight: 800; }
.custom-entry strong, .service-band strong { display: block; margin: 4px 0; color: var(--blue-dark); font-size: 19px; }
.custom-entry p { margin: 0; color: var(--muted); line-height: 1.6; }

.section-title, .panel-head, .modal-head, .topbar, .order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.section-title { margin: 36px 0 16px; }
.page-head { padding: 36px 0 18px; }
.page-head h1, .section-title h2 { margin: 0; font-size: 30px; letter-spacing: 0; }
.page-head p { color: var(--muted); line-height: 1.7; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 42px; }
.front-cta { display: flex; justify-content: center; margin: -16px 0 46px; }
.front-cta .btn { min-width: min(360px, 100%); }
.panel, .package-card, .login-card, .stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.package-card { position: relative; padding: 20px; }
.package-card-media {
  display: flex;
  justify-content: center;
  min-height: 150px;
  margin: -4px 0 12px;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
}
.package-card-media img {
  width: min(100%, 220px);
  height: 132px;
  object-fit: contain;
}
.package-card h3 { margin: 0 0 8px; font-size: 21px; }
.package-card p { min-height: 44px; color: var(--muted); line-height: 1.55; }
.package-card dl { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.package-card dt { color: var(--muted); }
.package-card dd { margin: 0; font-weight: 800; }
.price { margin: 16px 0; color: var(--blue); font-size: 26px; font-weight: 900; }
.price span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }

.panel { min-width: 0; max-width: 100%; padding: 18px; margin-bottom: 16px; overflow-x: auto; }
.form-page { padding-bottom: 54px; }
.package-rent-page { padding: 28px 0 54px; }
.package-rent-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 18px;
  padding: 26px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(110deg, #0d4fac, #1c73e8);
  box-shadow: var(--shadow);
}
.package-rent-hero .btn { align-self: start; background: rgba(255,255,255,.94); }
.package-rent-hero h1 { margin: 8px 0 10px; font-size: 38px; letter-spacing: 0; }
.package-rent-hero p { max-width: 760px; margin: 0; color: #eaf3ff; line-height: 1.7; }
.package-rent-hero .price { margin-bottom: 0; color: #fff; }
.package-rent-hero .price span { color: #d9ebff; }
.package-rent-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.hardware-panel h2, .package-rent-form h2 { margin: 0 0 14px; color: var(--blue-dark); }
.hardware-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hardware-grid div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}
.hardware-grid span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 900; }
.hardware-grid strong { color: var(--text); line-height: 1.45; word-break: break-word; }
.package-rent-form .form-grid { grid-template-columns: 1fr; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.compact-form { align-items: end; }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: 1 / -1; }
.order-edit-form { align-items: stretch; }
.order-form-section {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.order-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5eef9;
}
.order-section-head h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 20px;
}
.order-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}
.order-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.part-rental-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}
.part-rental-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.part-rental-head h3 { margin: 0; color: var(--blue-dark); }
.part-rental-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.part-requirement-grid { display: grid; gap: 10px; }
.part-requirement-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1.4fr) 110px 120px 120px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dbe8f8;
  border-radius: 6px;
  background: #fff;
}
.asset-action-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.asset-binding-section,
.pending-assets-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.asset-binding-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.asset-binding-head h3 { margin: 0 0 4px; color: var(--blue-dark); }
.asset-binding-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.asset-binding-head strong { color: var(--blue); white-space: nowrap; }
.asset-binding-list,
.pending-asset-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}
.asset-binding-row,
.pending-asset-row {
  display: grid;
  grid-template-columns: 34px minmax(210px, .8fr) minmax(280px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbe8f8;
  border-radius: 6px;
  background: var(--surface-soft);
}
.pending-asset-row { grid-template-columns: minmax(210px, .8fr) minmax(280px, 1.2fr) auto; }
.asset-binding-row input { width: 18px; min-height: 18px; }
.asset-binding-row strong,
.pending-asset-row strong { display: block; color: var(--text); }
.asset-binding-row small,
.pending-asset-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.count { justify-self: end; color: var(--muted); font-size: 12px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.check input { width: auto; min-height: auto; }
.estimate-box {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: var(--blue-soft);
  border: 1px solid #cce0fb;
  border-radius: 6px;
}
.estimate-box strong { color: var(--blue); font-size: 22px; }
.success-page { min-height: 560px; display: grid; place-items: center; padding: 40px 0; }
.success-card { max-width: 560px; text-align: center; padding: 28px; }
.success-card p { color: var(--muted); line-height: 1.7; }
.qr { width: 210px; height: 210px; object-fit: contain; display: block; margin: 22px auto; border: 1px solid var(--line); border-radius: 6px; }
.qr.empty { display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); }

.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #edf5ff, #ffffff); }
.login-card { width: min(420px, calc(100% - 32px)); padding: 30px; display: grid; gap: 14px; }
.login-card h1 { margin: 0 0 10px; color: var(--blue-dark); }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: #0f3f89; color: #fff; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px 18px; font-weight: 900; }
.brand small { display: block; color: #bdd9ff; font-size: 12px; margin-top: 2px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--blue); }
.sidebar nav { display: grid; gap: 4px; }
.sidebar a { color: #e7f1ff; padding: 11px 12px; border-radius: 6px; font-weight: 800; }
.sidebar a:hover { background: rgba(255,255,255,.12); }
.sidebar-guide-link {
  margin-top: 14px;
}
.admin-main { min-width: 0; padding: 18px; }
.topbar {
  margin: -18px -18px 18px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar strong { display: block; font-size: 18px; }
.topbar span { color: var(--muted); font-size: 12px; }
.topbar-user { color: var(--muted); }
.flash { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #b8dfc9; border-radius: 6px; background: #effaf4; color: #11623f; }
.flash.error { background: #fff1f0; border-color: #ffc7c2; color: var(--red); }

.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.finance-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.finance-summary-panel { margin-bottom: 16px; }
.finance-summary-panel .finance-stats { margin-bottom: 0; }
.finance-stats-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.finance-stats-compact .stat-card {
  padding: 10px 12px;
  min-height: 72px;
}
.finance-stats-compact .stat-card span { font-size: 12px; }
.finance-stats-compact .stat-card strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.2;
}
.finance-filter-panel .finance-filter { margin-bottom: 0; }
.finance-summary-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.finance-summary-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.finance-summary-group h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 16px;
}
.finance-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}
.finance-metric {
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid #e2edf9;
  border-radius: 6px;
  background: #fff;
}
.finance-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.finance-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.2;
  word-break: break-word;
}
.stat-card { padding: 16px; }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.stat-card strong { display: block; margin-top: 6px; color: var(--blue-dark); font-size: 25px; }
.admin-main table { min-width: 860px; }
.order-list-table th,
.order-list-table td {
  white-space: nowrap;
}
.order-list-table .config-cell { max-width: 150px; }
.config-hover {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: help;
}
.searchbar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 10px; margin: 12px 0 14px; }
.order-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
}
.order-searchbar {
  flex: 0 0 auto;
  grid-template-columns: 260px auto;
  justify-content: end;
  align-items: center;
  margin: 0;
}
.order-searchbar input { width: 260px; }
.status-filter { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; margin: 0; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfe0f6;
  border-radius: 6px;
  background: #f7fbff;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}
.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.finance-filter, .log-filter { grid-template-columns: minmax(220px, 1fr) 150px 150px 150px 150px auto; align-items: end; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 14px; color: var(--muted); }
.pagination a, .pagination span { min-width: 32px; min-height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0 8px; }
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}
.badge.good { background: #e9f8f1; color: var(--green); }
.badge.warn { background: #fff7e6; color: var(--amber); }
.badge.bad { background: #fff1f0; color: var(--red); }
.file-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 190px;
  color: var(--blue);
  font-weight: 900;
}
.image-preview img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.doc-preview strong {
  min-width: 44px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfe0f6;
  border-radius: 6px;
  background: #f0f6ff;
  color: var(--blue-dark);
  font-size: 12px;
}
.file-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal {
  width: min(760px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 28px 80px rgba(20, 61, 120, .22);
}
.modal::backdrop { background: rgba(10, 24, 48, .36); }
.modal[open] { display: block; }
.wide-modal { width: min(1040px, calc(100vw - 28px)); }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); background: #f7fbff; }
.modal-head h3 { margin: 0; }
.modal form, .modal .detail-grid { padding: 18px; }
.modal-note { margin: 12px 18px 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 18px; }
.confirm-body { padding: 20px 18px; color: var(--text); line-height: 1.7; }
.contract-share-dialog { width: min(680px, calc(100vw - 28px)); }
.contract-share-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.contract-share-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.copy-row input[readonly] {
  background: #f7fbff;
  color: var(--blue-dark);
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
}
.contract-security-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8e7fb;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.contract-share-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}
.contract-tab-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.table-actions { display: inline-grid; gap: 8px; min-width: 72px; }
.table-actions .btn { width: 100%; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.detail-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.detail-grid strong { font-size: 14px; word-break: break-word; }
.lead-modal { width: min(1080px, calc(100vw - 28px)); }
.lead-modal-head { align-items: flex-start; }
.lead-modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.lead-modal-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}
.lead-summary-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(160px, .8fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}
.lead-summary-card > div {
  padding: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.78);
}
.lead-summary-card span,
.lead-info-grid span,
.lead-side-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.lead-summary-card strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  word-break: break-word;
}
.lead-summary-card small { color: var(--muted); font-size: 12px; }
.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}
.lead-main { display: grid; gap: 14px; min-width: 0; }
.lead-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.lead-card h4 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 17px;
}
.lead-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lead-info-grid > div {
  padding: 11px;
  border: 1px solid #dbe8f8;
  border-radius: 6px;
  background: var(--surface-soft);
}
.lead-value {
  margin: 0;
  min-height: 22px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.58;
  word-break: break-word;
  white-space: pre-wrap;
}
.lead-follow-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 120px;
  gap: 10px;
  align-items: end;
  margin: 0;
}
.lead-follow-form h4 { grid-column: 1 / -1; }
.lead-log-table { min-width: 0 !important; }
.lead-log-table th,
.lead-log-table td { padding: 9px 10px; }
.lead-side-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 12px;
}
.lead-side-panel form { padding: 0; }
.lead-side-panel .btn { width: 100%; margin-top: 9px; }
.lead-side-panel input { margin-top: 6px; }
.lead-order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-weight: 900;
  text-align: center;
}
.lead-invalid-dialog { width: min(460px, calc(100vw - 28px)); }
.lead-invalid-form {
  display: grid;
  gap: 14px;
}
.lead-invalid-form .modal-actions {
  padding: 0;
}

.tabs { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: -18px -18px 18px; padding: 12px 18px 0; background: #f7fbff; }
.tabs button { border: 1px solid transparent; border-bottom: none; background: transparent; color: var(--muted); padding: 10px 13px; border-radius: 6px 6px 0 0; font-weight: 900; cursor: pointer; white-space: nowrap; }
.tabs button.active { background: #fff; border-color: var(--line); color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.order-detail-main .tab-panel > h3:first-child { margin-top: 0; }
.order-detail-main .tab-panel h3 { margin: 14px 0 10px; }
.order-detail-main .detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-bottom: 12px;
}
.order-detail-main .detail-grid > div {
  display: flex;
  flex-direction: column;
  padding: 9px 10px;
  border-radius: 6px;
}
.order-detail-main .detail-grid span {
  margin-bottom: 3px;
  font-size: 12px;
}
.order-detail-main .detail-grid strong {
  display: block;
  min-height: 21px;
  font-size: 14px;
  line-height: 1.45;
}
.order-detail-main .finance-detail {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.order-detail-main .finance-detail > div {
  padding: 8px 10px;
}
.order-detail-main .finance-detail strong {
  font-size: 15px;
}
.order-detail-main [data-panel="assets"] .detail-grid > div:nth-child(3) {
  grid-column: span 2;
}
.order-detail-main table {
  font-size: 13px;
}
.order-detail-main th,
.order-detail-main td {
  padding: 8px 10px;
}
.order-detail-main .empty-cell {
  padding: 14px 10px;
}
.sub-form, .inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
}
.order-detail-main .sub-form {
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.order-detail-main .sub-form label,
.order-detail-main .sub-form .muted,
.order-detail-main .sub-form .btn {
  min-width: 0;
}
.order-detail-main .sub-form input,
.order-detail-main .sub-form select,
.order-detail-main .sub-form textarea {
  min-width: 0;
  width: 100%;
}
.order-detail-main .sub-form input[type="file"] {
  overflow: hidden;
  padding: 6px;
  font-size: 13px;
}
.order-detail-main .sub-form input[type="date"],
.order-detail-main .sub-form input[type="datetime-local"] {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 14px;
}
.order-detail-main .two-cols {
  gap: 12px;
  align-items: start;
}
.order-detail-main .two-cols .sub-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.order-detail-main .two-cols .sub-form .check {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-detail-main .two-cols .sub-form .check input {
  width: auto;
  min-height: auto;
}
.sub-form h3 { grid-column: 1 / -1; margin: 0; }
.inline-form { grid-template-columns: 260px auto; justify-content: start; }
.order-summary h2 { margin: 0; color: var(--blue-dark); }
.order-summary p { margin: 5px 0 0; color: var(--muted); }

.order-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.order-hero-title span { color: var(--muted); font-size: 13px; font-weight: 900; }
.order-hero-title h2 { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; color: var(--blue-dark); font-size: 30px; }
.order-hero-title p { margin: 0; color: var(--muted); }
.order-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.order-customer-strip {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.order-customer-strip > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.order-customer-strip > div:last-child { border-right: 0; }
.order-customer-strip span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; margin-bottom: 7px; }
.order-customer-strip strong { display: block; color: var(--text); font-size: 17px; line-height: 1.45; }
.order-customer-strip small { color: var(--muted); line-height: 1.6; }
.order-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.order-lifecycle div {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.order-lifecycle b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.order-lifecycle strong { color: var(--text); }
.order-lifecycle span { grid-column: 2; color: var(--muted); font-size: 12px; font-weight: 800; }
.order-lifecycle .done b, .order-lifecycle .active b { background: var(--blue); color: #fff; }
.order-lifecycle .active { border-color: #8dbdf7; box-shadow: 0 0 0 3px rgba(22, 103, 217, .09); }
.order-lifecycle .done span { color: var(--green); }
.order-lifecycle-canceled { grid-template-columns: 1fr; }
.order-lifecycle-canceled .active { border-color: #ffc7c2; background: #fff7f6; }
.order-lifecycle-canceled .active b { background: var(--red); color: #fff; }
.order-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.order-detail-main,
.order-side-panel,
.order-detail-main .tab-panel,
.order-detail-main .two-cols,
.order-detail-main .sub-form {
  min-width: 0;
  max-width: 100%;
}
.order-side-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}
.side-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.side-block h3 { margin: 0 0 10px; color: var(--blue-dark); }
.side-block p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.side-block .btn + .btn { margin-top: 9px; }
.side-kv { display: grid; grid-template-columns: 86px 1fr; gap: 9px 10px; margin: 0; }
.side-kv dt { color: var(--muted); font-weight: 900; }
.side-kv dd { margin: 0; color: var(--text); font-weight: 900; text-align: right; }
.mini-timeline { display: grid; gap: 12px; }
.mini-timeline div { position: relative; padding-left: 18px; }
.mini-timeline b {
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}
.mini-timeline strong { display: block; color: var(--text); font-size: 13px; }
.mini-timeline span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.permissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.permission-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}
.permission-group legend { padding: 0 6px; color: var(--blue-dark); font-weight: 900; }
.permission-group .check { margin: 6px 0; }
.settlement-box { margin: 16px 0; }
.contract-page { padding: 28px 0 60px; }
.contract-paper { max-width: 960px; margin: 0 auto; }
.contract-paper h1 { text-align: center; color: var(--blue-dark); }
.terms { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); line-height: 1.8; }
#signaturePad { width: 100%; height: 220px; border: 1px solid #9db5d4; border-radius: 6px; background: #fff; touch-action: none; }
.signature-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.signed { padding: 12px; border-radius: 6px; background: #e9f8f1; color: var(--green); }

@media (max-width: 1100px) {
  .hero-inner, .package-grid, .two-cols, .package-rent-layout, .promise-grid, .order-detail-shell, .order-customer-strip { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-stats-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finance-summary-groups { grid-template-columns: 1fr; }
  .form-grid, .sub-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-section-head { display: block; }
  .order-section-head p { margin-top: 4px; text-align: left; }
  .part-rental-head { display: block; }
  .part-requirement-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-binding-head { display: block; }
  .asset-binding-row, .pending-asset-row { grid-template-columns: 28px 1fr; }
  .pending-asset-row { grid-template-columns: 1fr auto; }
  .asset-binding-row > span:nth-of-type(2) { grid-column: 2; }
  .asset-binding-row > span:last-child { grid-column: 2; }
  .order-customer-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .order-customer-strip > div:last-child { border-bottom: 0; }
  .order-side-panel { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-summary-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-layout { grid-template-columns: 1fr; }
  .lead-side-panel { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-header { align-items: flex-start; flex-direction: column; padding: 12px 16px; gap: 10px; }
  .site-header nav { flex-wrap: wrap; gap: 12px; }
  .front-wrap, .hero-inner, .local-hero-content { width: min(100% - 28px, 1180px); }
  .local-hero { min-height: auto; }
  .local-hero-photo { background-position: 58% center; }
  .local-hero-content { padding: 150px 0 24px; }
  .local-hero h1 { font-size: 34px; }
  .hero-trust-row { gap: 7px; }
  .hero-trust-row span { padding: 7px 9px; font-size: 12px; }
  .blue-hero { min-height: auto; padding: 42px 0; background-position: 55% center; }
  .hero h1 { font-size: 36px; }
  .hero-copy { font-size: 16px; }
  .package-rent-hero { grid-template-columns: 1fr; padding: 20px; }
  .package-rent-hero h1 { font-size: 30px; }
  .hardware-grid { grid-template-columns: 1fr; }
  .hero-actions, .signature-actions, .custom-entry, .service-band, .order-hero, .order-hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn, .success-card .btn { width: 100%; }
  .promise-grid, .order-side-panel, .order-lifecycle { grid-template-columns: 1fr; }
  .custom-entry, .service-band { align-items: stretch; }
  .package-card p { min-height: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { padding: 12px; }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sidebar a { text-align: center; padding: 9px 6px; font-size: 13px; }
  .sidebar-guide-link { grid-column: 1 / -1; margin-top: 4px; }
  .admin-main { padding: 14px; }
  .topbar { margin: -14px -14px 14px; align-items: flex-start; flex-direction: column; }
  .stat-grid, .form-grid, .sub-form, .detail-grid, .permissions, .estimate-box, .order-customer-strip, .order-section-grid { grid-template-columns: 1fr; }
  .finance-metric-grid { grid-template-columns: 1fr; }
  .order-detail-main [data-panel="assets"] .detail-grid > div:nth-child(3) { grid-column: auto; }
  .order-detail-main .two-cols .sub-form { grid-template-columns: 1fr; }
  .part-requirement-row { grid-template-columns: 1fr; }
  .asset-action-row { display: grid; }
  .asset-binding-row, .pending-asset-row { grid-template-columns: 1fr; }
  .asset-binding-row > span:nth-of-type(2), .asset-binding-row > span:last-child { grid-column: auto; }
  .order-hero-title h2 { font-size: 24px; align-items: flex-start; flex-direction: column; }
  .order-lifecycle div { min-height: auto; }
  .span-2 { grid-column: 1 / -1; }
  .searchbar, .finance-filter, .log-filter { grid-template-columns: 1fr; }
  .order-list-tools { display: grid; grid-template-columns: 1fr; }
  .order-searchbar { width: 100%; grid-template-columns: 1fr auto; }
  .order-searchbar input { width: 100%; }
  .panel, .package-card { padding: 14px; }
  .tabs { margin: -14px -14px 14px; padding: 10px 14px 0; }
  .modal form, .modal .detail-grid { padding: 14px; }
  .modal-actions { padding: 0 14px 14px; display: grid; grid-template-columns: 1fr; }
  .copy-row, .contract-tab-actions { grid-template-columns: 1fr; }
  .contract-tab-actions { display: grid; }
  .lead-modal-body { padding: 14px; }
  .lead-summary-card,
  .lead-info-grid,
  .lead-follow-form,
  .lead-side-panel { grid-template-columns: 1fr; }
  input, select, textarea, .btn { min-height: 44px; }
  #signaturePad { height: 190px; }
}

/* Visual target alignment: mobile H5 home */
.front-home-body {
  background: #eef5ff;
}
.front-home-body .site-header.simple {
  display: none;
}
.front-home-body .float-service {
  right: max(12px, calc((100vw - 450px) / 2 + 12px));
  border: 2px solid rgba(255,255,255,.78);
  box-shadow: 0 16px 34px rgba(7, 193, 96, .32);
}
.front-home-body .site-footer {
  max-width: 450px;
  margin: 0 auto;
  padding: 18px 18px 24px;
  background: #f6faff;
  border-top: 0;
  font-size: 12px;
}
.h5-home {
  width: min(100%, 450px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f6faff;
  color: #17233c;
  box-shadow: 0 18px 48px rgba(22, 70, 135, .12);
}
.h5-hero {
  position: relative;
  padding: 14px 8px 0;
  background: linear-gradient(180deg, #0865df 0%, #0756c6 58%, #f6faff 58%);
  border-radius: 0 0 18px 18px;
}
.h5-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 12px;
  color: #fff;
}
.h5-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.h5-brand i {
  font-size: 25px;
}
.h5-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}
.h5-brand span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 800;
}
.h5-menu {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
}
.h5-menu-panel {
  position: absolute;
  top: 54px;
  right: 16px;
  z-index: 8;
  width: 156px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 36px rgba(6, 49, 111, .22);
}
.h5-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}
.h5-menu-panel a:hover {
  background: var(--blue-soft);
}
.h5-hero-card {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(5, 44, 99, .2);
}
.h5-hero-card img {
  width: 100%;
  height: 278px;
  display: block;
  object-fit: cover;
  object-position: 52% center;
}
.h5-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,35,78,.02), rgba(5,35,78,.6)), linear-gradient(90deg, rgba(4,35,82,.22), rgba(4,35,82,.08) 44%, rgba(3,37,88,.5));
}
.h5-hero-overlay {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  color: #fff;
}
.h5-hero-overlay h1,
.h5-hero-overlay h2 {
  margin: 0;
  margin-left: 108px;
  text-align: center;
  text-shadow: 0 3px 14px rgba(0,0,0,.32);
}
.h5-hero-overlay h1 {
  font-size: 27px;
  line-height: 1.16;
  font-weight: 900;
}
.h5-hero-overlay h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}
.h5-hero-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 19px;
}
.h5-hero-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.h5-hero-tags i {
  color: #d7e9ff;
  font-size: 13px;
}
.h5-hero-overlay p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 15px 0 0;
  font-size: 12px;
  font-weight: 800;
}
.h5-section {
  padding: 18px 18px 0;
}
.h5-section h2 {
  margin: 0 0 14px;
  color: #14223b;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}
.h5-promises h2 {
  text-align: center;
}
.h5-promise-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.h5-promise-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 16px;
  height: 5px;
  border-radius: 999px;
  background: #1b6fe8;
  transform: translateX(-50%);
  box-shadow: 19px 0 0 #dbe8fa;
}
.h5-promise-grid article {
  min-height: 132px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 13px 7px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 86, 150, .08);
}
.h5-promise-grid i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #176fe6;
  font-size: 25px;
}
.h5-promise-grid strong {
  font-size: 13px;
  font-weight: 900;
}
.h5-promise-grid span {
  color: #7a89a5;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.h5-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 10px;
}
.h5-section-head h2 {
  margin: 0;
}
.h5-section-head a {
  display: inline-flex;
  align-items: center;
  color: #1b6fe8;
  font-size: 12px;
  font-weight: 900;
}
.h5-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.h5-package-card {
  min-height: 154px;
  padding: 9px 9px 10px;
  border: 1px solid #d7e5f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(31, 88, 160, .07);
}
.h5-package-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 6px;
  align-items: start;
  min-height: 100px;
}
.h5-package-media span {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  color: #fff;
  background: #146ce3;
  font-size: 10px;
  font-weight: 900;
}
.h5-package-media span:empty {
  visibility: hidden;
}
.h5-package-media h3 {
  margin: 6px 0 5px;
  color: #11223c;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}
.h5-package-media p {
  margin: 0 0 3px;
  color: #61728f;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
}
.h5-package-media img {
  width: 72px;
  height: 64px;
  object-fit: contain;
}
.h5-card-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 8px 0 8px;
}
.h5-card-price strong {
  color: #ff5a20;
  font-size: 17px;
  font-weight: 900;
}
.h5-card-price span {
  color: #ff5a20;
  font-size: 11px;
  font-weight: 900;
}
.h5-card-price em {
  margin-left: auto;
  color: #66758d;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.h5-package-card > a {
  width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  background: #126be4;
  font-size: 12px;
  font-weight: 900;
}
.h5-custom-card {
  margin: 14px 18px 0;
  border: 1px solid #cde0fb;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5faff, #eaf3ff);
}
.h5-custom-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: 34px 1fr 38px;
  gap: 9px;
  align-items: center;
  padding: 13px;
}
.h5-custom-card > i {
  color: #166fe8;
  font-size: 24px;
}
.h5-custom-card strong {
  display: block;
  color: #1156b6;
  font-size: 15px;
  font-weight: 900;
}
.h5-custom-card span {
  display: block;
  margin-top: 4px;
  color: #70809d;
  font-size: 11px;
  font-weight: 800;
}
.h5-custom-card b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #146ce3;
  background: #d9e9ff;
  font-size: 22px;
}

@media (max-width: 460px) {
  .h5-home {
    box-shadow: none;
  }
  .h5-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .h5-package-media {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  .h5-package-media img {
    width: 58px;
    height: 58px;
  }
  .h5-card-price {
    flex-wrap: wrap;
  }
  .h5-card-price em {
    width: 100%;
    margin-left: 0;
  }
  .h5-hero-overlay h1,
  .h5-hero-overlay h2 {
    margin-left: 104px;
  }
}
