:root {
  --cmzj-blue: #087cff;
  --cmzj-navy: #10233d;
  --cmzj-orange: #f28a2a;
  --cmzj-gold: #e5ae39;
  --cmzj-red: #ed1c24;
  --cmzj-green-cell: #c7dfa8;
}

body.showing-directory .brand-banner {
  height: 62px;
  min-height: 62px;
  padding: 7px 10px;
  background-color: #fff000;
  background-image: url('/partner-assets/cmzj-brand.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% - 20px) auto;
}

body.showing-directory .brand-banner > * {
  visibility: hidden;
}

body.showing-cmzj {
  overflow-x: hidden;
  background: #f3f4f6;
}

.cmzj-view {
  min-height: 100vh;
  color: var(--cmzj-navy);
  background: #f3f4f6;
}

.cmzj-shell {
  width: min(100%, 428px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 62px;
  border-right: 1px solid #e1e4e8;
  border-left: 1px solid #e1e4e8;
  background: #ffffff;
}

.cmzj-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  min-height: 58px;
  padding: 0 12px;
  grid-template-columns: 46px minmax(0, 1fr) 58px;
  align-items: center;
  border-top: 1px solid #e2e5e8;
  border-bottom: 1px solid #e2e5e8;
  background: rgba(255, 255, 255, .98);
}

.cmzj-topbar h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #0d203b;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmzj-icon-button,
.cmzj-calendar-button,
.cmzj-dialog-head button {
  display: grid;
  border: 0;
  place-items: center;
  color: #0c315b;
  background: transparent;
  cursor: pointer;
}

.cmzj-icon-button {
  width: 38px;
  height: 44px;
  justify-self: start;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.cmzj-calendar-button {
  min-width: 52px;
  min-height: 30px;
  justify-self: end;
  border: 1px solid #ff5a44;
  border-radius: 4px;
  color: #f0442f;
  font-size: 14px;
}

.cmzj-icon-button:focus-visible,
.cmzj-calendar-button:focus-visible,
.cmzj-bottom-nav a:focus-visible,
.cmzj-segmented button:focus-visible,
.cmzj-history-link:focus-visible,
.cmzj-history-close:focus-visible,
.cmzj-history-year:focus-visible,
.cmzj-picker-content button:focus-visible,
.cmzj-compound-input:focus-visible,
.cmzj-primary-button:focus-visible,
.cmzj-secondary-button:focus-visible {
  outline: 2px solid #1685ff;
  outline-offset: 2px;
}

.cmzj-content {
  min-height: calc(100vh - 120px);
  background: #ffffff;
}

.cmzj-home-content {
  display: flex;
  min-height: calc(100vh - 120px);
  flex-direction: column;
}

.cmzj-lottery-list {
  display: grid;
  padding: 8px 6px 4px;
  gap: 0;
}

.cmzj-lottery-row {
  display: grid;
  min-height: 85px;
  margin-bottom: 10px;
  padding: 5px;
  grid-template-columns: 76px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 5px;
  border: 0;
  color: #243853;
  background-color: #ffffff;
  background-image: url('/partner-assets/cmzj-award-frame.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cmzj-lottery-name {
  padding-left: 10px;
  color: #ef2028;
  font-size: 15px;
  font-weight: 500;
}

.cmzj-lottery-center {
  min-width: 0;
  color: #67758a;
  text-align: center;
}

.cmzj-countdown {
  font-size: 15px;
  font-weight: 700;
}

.cmzj-countdown.waiting {
  color: #df6d20;
}

.cmzj-history-link {
  min-height: 34px;
  padding: 0;
  border: 0;
  color: #1a4b93;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

body.cmzj-history-open {
  overflow: hidden;
}

.cmzj-history-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(17, 24, 39, .42);
}

.cmzj-history-panel {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
}

.cmzj-history-panel-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  height: 48px;
  padding: 0 8px;
  grid-template-columns: 44px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.cmzj-history-panel-header h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmzj-history-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: #374151;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  line-height: 1;
}

.cmzj-history-year {
  width: 78px;
  height: 30px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #111827;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
}

.cmzj-history-state {
  padding: 36px 12px;
  color: #6b7280;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.cmzj-history-state.error {
  color: #d92d20;
}

.cmzj-history-records {
  margin: 0;
  padding: 0 6px 24px;
  list-style: none;
}

.cmzj-history-record {
  padding: 15px 0 12px;
  border-bottom: 1px solid #e5e7eb;
}

.cmzj-history-record-title {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
}

.cmzj-history-record-title strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmzj-history-record-title span {
  color: #1d4f91;
}

.cmzj-history-record-title time {
  flex: 0 0 auto;
  font-weight: 500;
}

.cmzj-history-number-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3px;
}

.cmzj-history-ball-cell {
  display: flex;
  min-width: 38px;
  align-items: center;
  flex-direction: column;
}

.cmzj-history-ball {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #000000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}

.cmzj-history-ball.red { background-image: url('/118/img/number-icon-2.270d29a4.png'); }
.cmzj-history-ball.blue { background-image: url('/118/img/number-icon-3.15f6fc94.png'); }
.cmzj-history-ball.green { background-image: url('/118/img/number-icon-1.24efe664.png'); }

.cmzj-history-zodiac {
  margin-top: 1px;
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.cmzj-history-plus {
  width: 14px;
  padding-top: 12px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.cmzj-history-end {
  padding: 14px 0 18px;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cmzj-inline-numbers,
.cmzj-latest-numbers,
.cmzj-picker-result {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.cmzj-number-item {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 2px;
}

.cmzj-number-item small {
  min-height: 14px;
  color: #111827;
  font-size: 11px;
  line-height: 1;
}

.cmzj-ball {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.cmzj-ball.red { background-image: url('/118/img/number-icon-2.270d29a4.png'); }
.cmzj-ball.blue { background-image: url('/118/img/number-icon-3.15f6fc94.png'); }
.cmzj-ball.green { background-image: url('/118/img/number-icon-1.24efe664.png'); }

.cmzj-number-item.compact {
  gap: 0;
}

.cmzj-number-item.compact .cmzj-ball {
  width: 21px;
  height: 21px;
  border: 0;
  box-shadow: none;
  color: #ffffff;
  font-size: 10px;
}

.cmzj-number-item.compact .cmzj-ball.red { background: #ef4444; }
.cmzj-number-item.compact .cmzj-ball.blue { background: #3182ce; }
.cmzj-number-item.compact .cmzj-ball.green { background: #28a960; }
.cmzj-number-item.compact small { display: none; }

.cmzj-page-footer {
  margin-top: auto;
  padding: 50px 12px 16px;
  color: #8e9198;
  font-size: 13px;
  text-align: center;
}

.cmzj-page-footer p {
  margin: 0 0 10px;
}

.cmzj-bottom-nav {
  position: fixed;
  z-index: 40;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 428px);
  height: 62px;
  padding: 5px 4px 3px;
  transform: translateX(-50%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #d9dde3;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -3px 9px rgba(15, 23, 42, .06);
}

.cmzj-bottom-nav a {
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 4px;
  color: #087cff;
  font-size: 13px;
  font-weight: 700;
}

.cmzj-bottom-nav a.active {
  color: #ff3b30;
}

.cmzj-nav-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  color: currentColor;
}

.cmzj-nav-home::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  border: 2px solid currentColor;
  border-radius: 2px;
  content: '';
}

.cmzj-nav-home::after {
  position: absolute;
  bottom: 1px;
  left: 8px;
  width: 8px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  background: #ffffff;
  content: '';
}

.cmzj-nav-chart::before {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 4px;
  height: 10px;
  border-radius: 1px 1px 0 0;
  background: currentColor;
  box-shadow: 7px -5px 0 currentColor, 14px -10px 0 currentColor;
  content: '';
}

.cmzj-nav-book::before {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 8px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 2px 0 0 2px;
  content: '';
}

.cmzj-nav-book::after {
  position: absolute;
  top: 3px;
  right: 2px;
  width: 8px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 0 2px 2px 0;
  content: '';
}

.cmzj-nav-eye::before {
  position: absolute;
  top: 6px;
  left: 2px;
  width: 19px;
  height: 12px;
  transform: rotate(45deg);
  border: 2px solid currentColor;
  border-radius: 70% 0 70% 0;
  content: '';
}

.cmzj-nav-eye::after {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.cmzj-nav-user::before {
  position: absolute;
  top: 1px;
  left: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: '';
}

.cmzj-nav-user::after {
  position: absolute;
  bottom: 1px;
  left: 4px;
  width: 16px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 3px 3px;
  content: '';
}

.cmzj-trends-content,
.cmzj-picker-content,
.cmzj-about-content {
  padding: 8px 6px 14px;
}

.cmzj-trend-controls {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.cmzj-segmented {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.cmzj-segmented button {
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 0;
  color: #14243a;
  background: #f4f4f5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.cmzj-segmented button.active {
  border-color: var(--cmzj-orange);
  color: #ee731b;
  background: #fffaf5;
}

.cmzj-type-tabs button {
  min-width: 53px;
  flex: 0 1 auto;
}

.cmzj-limit-tabs button {
  min-width: 78px;
  flex: 1 1 70px;
}

.cmzj-mode-tabs button {
  min-width: 86px;
  flex: 0 1 auto;
}

.cmzj-latest-strip {
  display: grid;
  min-height: 82px;
  padding: 8px 7px 6px;
  grid-template-columns: 59px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--cmzj-gold);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #fff8db;
}

.cmzj-latest-strip > strong {
  font-size: 14px;
}

.cmzj-latest-strip > span {
  color: #1a4b93;
  font-size: 12px;
  text-align: right;
}

.cmzj-latest-numbers {
  gap: 1px;
}

.cmzj-latest-numbers .cmzj-ball {
  width: 31px;
  height: 31px;
  font-size: 13px;
}

.cmzj-latest-numbers .cmzj-number-item small {
  font-size: 10px;
}

.cmzj-number-plus {
  display: grid;
  width: 10px;
  height: 31px;
  flex: 0 0 10px;
  place-items: center;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.cmzj-table-scroll {
  max-width: 100%;
  margin-top: 4px;
  overflow-x: auto;
  border: 1px solid #111827;
  background: #ffffff;
  scrollbar-width: thin;
}

.cmzj-trend-table {
  width: 100%;
  min-width: 412px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #111827;
  font-size: 12px;
}

.cmzj-trend-table th,
.cmzj-trend-table td {
  height: 24px;
  padding: 1px;
  border: 1px solid #1f2937;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.cmzj-trend-table thead th {
  height: 30px;
  background: #ffffff;
  font-weight: 800;
}

.cmzj-trend-table tbody td {
  background: var(--cmzj-green-cell);
  font-weight: 700;
}

.cmzj-trend-table .period {
  width: 39px;
  background: #fff5eb;
}

.cmzj-trend-table .hit {
  color: #111827;
}

.cmzj-trend-table .special {
  color: #ffffff;
  background: #d51f3c;
}

.cmzj-trend-table .special-value {
  width: 42px;
  color: #111827;
  background: #dcebbf;
}

.cmzj-trend-table .count {
  width: 33px;
  background: #dcebbf;
}

.cmzj-trend-table.summary td.summary-cell {
  background: #dcebbf;
}

.cmzj-trend-table.summary .wave-red { color: #d51f3c; }
.cmzj-trend-table.summary .wave-blue { color: #1565c0; }
.cmzj-trend-table.summary .wave-green { color: #087f45; }

.cmzj-primary-button,
.cmzj-secondary-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.cmzj-picker-content {
  padding-top: 8px;
}

.cmzj-picker-tabs {
  display: flex;
  height: 43px;
  margin: 0;
  padding: 0;
  align-items: stretch;
  border-bottom: 1px solid #d9d9d9;
  background: #f3f4f6;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .12);
  list-style: none;
}

.cmzj-picker-tabs li {
  display: flex;
  min-width: 85px;
  height: 43px;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.cmzj-picker-tabs li.active {
  background: #ffffff;
}

.cmzj-picker-tabs button {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  border: 0;
  color: #111827;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.cmzj-picker-main,
.cmzj-picker-compound {
  padding: 0;
}

.cmzj-picker-output {
  width: 100%;
  height: 180px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #c2c2c2;
  background: #ffffff;
}

.cmzj-picker-number-list {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 5px 6px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: none;
}

.cmzj-picker-number-list::-webkit-scrollbar,
.cmzj-compound-lines::-webkit-scrollbar {
  display: none;
}

.cmzj-picker-number-list > li {
  width: calc((100% - 36px) / 7);
  min-width: 0;
}

.cmzj-picker-number {
  min-width: 0;
}

.cmzj-picker-number .cmzj-ball {
  width: 32px;
  height: 32px;
  color: #000000;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}

.cmzj-picker-number small {
  margin-top: 1px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.cmzj-picker-actions {
  display: flex;
  padding-top: 10px;
  align-items: center;
  justify-content: space-between;
}

.cmzj-picker-actions button {
  width: 45.5%;
  height: 35px;
  border: 1px solid #07c160;
  color: #07c160;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.cmzj-picker-filters {
  display: grid;
  gap: 4px;
}

.cmzj-picker-filters.compound {
  margin-top: 8px;
}

.cmzj-picker-filter,
.cmzj-compound-sizes {
  display: flex;
  margin: 0;
  padding: 0;
  flex-flow: row wrap;
  justify-content: space-between;
  list-style: none;
}

.cmzj-picker-filter li,
.cmzj-compound-sizes li {
  display: inline-flex;
  height: 35px;
  margin-top: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: #374151;
  background: #f5f5f5;
  text-align: center;
}

.cmzj-picker-filter li.active,
.cmzj-compound-sizes li.active {
  border: 1px solid #cd7f32;
  color: #cd7f32;
  background: #e7f1ff;
}

.cmzj-picker-filter button,
.cmzj-compound-sizes button {
  width: 100%;
  height: 100%;
  padding: 0 2px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.cmzj-picker-filter.group-1 li,
.cmzj-picker-filter.group-2 li,
.cmzj-picker-filter.group-3 li,
.cmzj-picker-filter.group-7 li,
.cmzj-picker-filter.group-11 li { width: 49.2%; }

.cmzj-picker-filter.group-4 li { width: 24.1%; }

.cmzj-picker-filter.group-5 li,
.cmzj-picker-filter.group-10 li,
.cmzj-picker-filter.group-12 li,
.cmzj-compound-sizes li { width: 19.1%; }

.cmzj-picker-filter.group-6 li { width: 32.5%; }

.cmzj-picker-filter.group-8 li,
.cmzj-picker-filter.group-9 li { width: 15.8%; }

.cmzj-picker-filter.group-13 li { width: 13.4%; }

.cmzj-picker-compound {
  padding-bottom: 10px;
}

.cmzj-compound-summary {
  display: flex;
  min-height: 36px;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #111827;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 800;
}

.cmzj-compound-summary strong,
.cmzj-compound-result-head strong {
  color: #ff5722;
}

.cmzj-compound-input {
  width: 100%;
  min-height: 76px;
  margin-top: 8px;
  padding: 8px 10px;
  resize: vertical;
  border: 1px solid #c2c2c2;
  border-radius: 2px;
  outline: none;
  color: #111827;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.cmzj-compound-input:focus {
  border-color: #07c160;
}

.cmzj-compound-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.cmzj-compound-result {
  margin-top: 10px;
  border: 1px solid #dddddd;
  background: #ffffff;
}

.cmzj-compound-result-head {
  display: flex;
  min-height: 38px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1f1f1;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.cmzj-compound-lines {
  display: grid;
  max-height: 260px;
  margin: 0;
  padding: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 2px 6px;
  overflow-y: auto;
  list-style: none;
  text-align: center;
  scrollbar-width: none;
}

.cmzj-compound-lines.size-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmzj-compound-lines.size-3,
.cmzj-compound-lines.size-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmzj-compound-lines.size-5,
.cmzj-compound-lines.size-6 { grid-template-columns: 1fr; }

.cmzj-compound-lines li {
  min-width: 0;
  padding: 3px 2px;
  border: 1px solid #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.cmzj-compound-empty {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 15px;
  font-weight: 800;
}

.cmzj-about-content {
  background: #f3f4f6;
}

.cmzj-about-brand {
  display: grid;
  padding: 30px 18px 25px;
  justify-items: center;
  gap: 9px;
  border-bottom: 1px solid #e0e3e8;
  background: #ffffff;
  text-align: center;
}

.cmzj-about-brand > span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 4px double #e02125;
  border-radius: 50%;
  color: #d51f24;
  background: #fff2a8;
  font-family: KaiTi, STKaiti, serif;
  font-size: 34px;
  font-weight: 900;
}

.cmzj-about-brand h2 {
  margin: 0;
  font-size: 23px;
}

.cmzj-about-brand p {
  margin: 0;
  color: #748095;
  line-height: 1.7;
}

.cmzj-about-rows {
  margin-top: 10px;
  background: #ffffff;
}

.cmzj-about-rows > div {
  display: grid;
  min-height: 52px;
  padding: 0 16px;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #eceef1;
}

.cmzj-about-rows span {
  color: #7b8491;
}

.cmzj-about-rows strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.cmzj-loading,
.cmzj-error,
.cmzj-empty {
  display: grid;
  min-height: 220px;
  padding: 24px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #7d8795;
  text-align: center;
}

.cmzj-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #dce8f5;
  border-top-color: #1685ff;
  border-radius: 50%;
  animation: cmzj-spin .8s linear infinite;
}

.cmzj-loading p,
.cmzj-error p {
  margin: 0;
}

.cmzj-error strong {
  color: #243853;
  font-size: 17px;
}

.cmzj-primary-button {
  padding: 0 20px;
  color: #ffffff;
  background: #1685ff;
}

.cmzj-secondary-button {
  padding: 0 20px;
  border-color: #d4dae2;
  color: #40516a;
  background: #ffffff;
}

.cmzj-dialog {
  width: min(calc(100% - 32px), 360px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #182b47;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .24);
}

.cmzj-dialog::backdrop {
  background: rgba(15, 23, 42, .48);
}

.cmzj-dialog form {
  padding: 16px;
}

.cmzj-dialog-head {
  display: grid;
  margin-bottom: 16px;
  grid-template-columns: 1fr 34px;
  align-items: center;
}

.cmzj-dialog-head strong {
  font-size: 18px;
}

.cmzj-dialog-head button {
  width: 34px;
  height: 34px;
  justify-self: end;
  font-size: 25px;
}

.cmzj-dialog input[type='date'] {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #ccd3dc;
  border-radius: 4px;
  color: #182b47;
  background: #ffffff;
  font: inherit;
}

.cmzj-dialog-actions {
  display: flex;
  margin-top: 18px;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes cmzj-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 440px) {
  body.showing-directory .brand-banner {
    height: 55px;
    min-height: 55px;
    padding: 5px;
    background-size: calc(100% - 10px) auto;
  }

  .cmzj-shell {
    border: 0;
  }

  .cmzj-topbar {
    min-height: 57px;
    grid-template-columns: 42px minmax(0, 1fr) 56px;
  }

  .cmzj-topbar h1 {
    font-size: 19px;
  }

  .cmzj-lottery-row {
    grid-template-columns: 66px minmax(0, 1fr) 42px;
  }

  .cmzj-lottery-name,
  .cmzj-countdown {
    font-size: 14px;
  }

  .cmzj-inline-numbers {
    gap: 2px;
  }

  .cmzj-number-item.compact .cmzj-ball {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .cmzj-segmented button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .cmzj-latest-strip {
    grid-template-columns: 52px minmax(0, 1fr) 36px;
  }

  .cmzj-latest-numbers {
    gap: 1px;
  }
}

@media (max-width: 365px) {
  .cmzj-topbar h1 {
    font-size: 17px;
  }

  .cmzj-lottery-row {
    padding-right: 6px;
    padding-left: 6px;
    grid-template-columns: 56px minmax(0, 1fr) 36px;
  }

  .cmzj-lottery-name,
  .cmzj-countdown,
  .cmzj-history-link {
    font-size: 12px;
  }

  .cmzj-bottom-nav a {
    font-size: 11px;
  }

  .cmzj-history-panel-header {
    grid-template-columns: 38px minmax(0, 1fr) 76px;
  }

  .cmzj-history-panel-header h2 {
    font-size: 15px;
  }

  .cmzj-history-year {
    width: 72px;
  }

  .cmzj-history-record-title {
    font-size: 14px;
  }

  .cmzj-history-number-row {
    gap: 1px;
  }

  .cmzj-history-ball-cell {
    min-width: 30px;
  }

  .cmzj-history-ball {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }

  .cmzj-history-zodiac {
    font-size: 10px;
  }

  .cmzj-history-plus {
    width: 10px;
    padding-top: 9px;
    font-size: 16px;
  }

  .cmzj-latest-numbers .cmzj-ball {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }

  .cmzj-number-plus {
    width: 8px;
    height: 23px;
    flex-basis: 8px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmzj-loading span {
    animation: none;
  }
}
