:root {
  --bg: #f7f4f2;
  --surface: #ffffff;
  --surface-soft: #fbf8f6;
  --ink: #2b2321;
  --ink-soft: #4e413d;
  --muted: #867975;
  --line: #e8deda;
  --line-strong: #d7c8c3;
  --sidebar: #b9342b;
  --sidebar-soft: #c94338;
  --red: #dc493a;
  --red-dark: #ba3026;
  --red-soft: #fff0ed;
  --blue: #167f92;
  --blue-dark: #106a79;
  --blue-soft: #eaf7f8;
  --gold: #efb44d;
  --gold-soft: #fff6e4;
  --green: #2d7d5d;
  --danger: #b8382d;
  --shadow: 0 16px 40px rgba(126, 39, 30, 0.08);
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(22, 127, 146, 0.3);
  outline-offset: 2px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 226px;
  height: 100vh;
  padding: 22px 16px 18px;
  background: var(--sidebar);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 8px;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  place-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #9e2b23;
}

.brand-mark::after {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.brand-mark span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.brand-mark span:nth-child(1) {
  background: #ffd8cf;
}

.brand-mark span:nth-child(2) {
  background: var(--gold);
}

.brand-mark span:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  background: #35a6b5;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 700;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 42px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.is-active {
  background: #fff;
  color: var(--red-dark);
  font-weight: 700;
}

.nav-item.is-active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
  content: "";
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.source-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.status-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #59c48a;
  box-shadow: 0 0 0 4px rgba(89, 196, 138, 0.1);
}

.source-status div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.source-status strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-status span:last-child {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  text-align: left;
}

.sidebar-settings:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-settings svg {
  width: 17px;
  height: 17px;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
}

.sidebar-account:hover {
  background: rgba(255, 255, 255, 0.1);
}

.account-avatar {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar svg {
  width: 15px;
  height: 15px;
}

.account-avatar.large {
  flex-basis: 54px;
  width: 54px;
  height: 54px;
  background: var(--red-soft);
  color: var(--red-dark);
}

.account-avatar.large svg {
  width: 24px;
  height: 24px;
}

.account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.account-copy strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  min-width: 0;
  padding: 34px 38px 22px;
}

.mobile-header {
  display: none;
}

.mobile-header-actions {
  display: flex;
  gap: 7px;
}

.view {
  display: none;
  width: min(100%, 1380px);
  margin: 0 auto;
  animation: view-in 240ms ease both;
}

.view.is-active {
  display: block;
}

.pull-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  transition: height 180ms ease, opacity 180ms ease, color 180ms ease;
}

.pull-refresh.is-visible {
  opacity: 1;
}

.pull-refresh.is-dragging {
  transition: none;
}

.pull-refresh svg {
  width: 16px;
  height: 16px;
  transform: rotate(var(--pull-rotation, 0deg));
}

.pull-refresh.is-ready,
.pull-refresh.is-loading {
  color: var(--red);
}

.pull-refresh.is-loading svg {
  animation: spin 1s linear infinite;
  transform: none;
}

.pull-refresh.is-success {
  color: var(--green);
}

.pull-refresh.is-error {
  color: var(--danger);
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker,
.panel-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.view-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  line-height: 1.15;
}

.heading-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.data-chip,
.model-chip,
.tiny-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.data-chip svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

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

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

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button.is-loading svg {
  animation: spin 0.9s linear infinite;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 16px rgba(228, 75, 54, 0.17);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.button.secondary:hover {
  border-color: #aeb7b0;
  background: #fafbf9;
}

.button.dark {
  background: var(--red-dark);
  color: #fff;
}

.button.dark:hover {
  background: #9f281f;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.button.wide {
  width: 100%;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.icon-button.small {
  width: 34px;
  height: 34px;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(126, 39, 30, 0.015);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.25;
}

.panel-heading .panel-label {
  color: #9aa49e;
}

.panel-count {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
}

.heading-icon {
  width: 22px;
  height: 22px;
  color: #a0aaa4;
}

.latest-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  overflow: hidden;
  border-radius: 8px;
  background: #c93f34;
  color: #fff;
  box-shadow: 0 16px 34px rgba(164, 45, 34, 0.2);
}

.latest-main {
  position: relative;
  min-width: 0;
  padding: 26px 30px 30px;
}

.latest-main::after {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow:
    -10px 10px 0 -1px rgba(255, 255, 255, 0.025),
    -20px 20px 0 -2px rgba(255, 255, 255, 0.015);
  content: "";
  pointer-events: none;
}

.latest-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.latest-topline .panel-label {
  color: rgba(255, 255, 255, 0.42);
}

.latest-issue-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.latest-issue-row h2 {
  margin: 0;
  font-family: var(--font-num);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}

.latest-issue-row span {
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-num);
  font-size: 12px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  white-space: nowrap;
}

.latest-utility {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.countdown-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 9px;
  row-gap: 1px;
  min-width: 152px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.countdown-label {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  font-weight: 600;
}

.countdown-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #58c88a;
  box-shadow: 0 0 0 3px rgba(88, 200, 138, 0.1);
}

.countdown-card strong {
  margin-top: 3px;
  color: #fff;
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.countdown-card small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  white-space: nowrap;
}

.countdown-card.is-drawing {
  border-color: rgba(236, 178, 63, 0.48);
  background: rgba(236, 178, 63, 0.09);
  box-shadow: 0 0 0 1px rgba(236, 178, 63, 0.05);
  animation: countdown-drawing 1.8s ease-in-out infinite;
}

.countdown-card.is-drawing .countdown-label,
.countdown-card.is-drawing small {
  color: rgba(255, 221, 151, 0.7);
}

.countdown-card.is-drawing .countdown-label i {
  background: #ecb23f;
  box-shadow: 0 0 0 4px rgba(236, 178, 63, 0.14);
}

.countdown-card.is-drawing strong {
  color: #ffd783;
}

.countdown-card.is-updated {
  border-color: rgba(88, 200, 138, 0.38);
  background: rgba(88, 200, 138, 0.07);
}

.countdown-card.is-updated .countdown-label,
.countdown-card.is-updated small {
  color: rgba(157, 229, 190, 0.72);
}

.countdown-card.is-updated strong {
  color: #9de5be;
}

@keyframes countdown-drawing {
  50% {
    border-color: rgba(236, 178, 63, 0.76);
    box-shadow: 0 0 0 3px rgba(236, 178, 63, 0.09);
  }
}

.source-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.source-link svg {
  width: 13px;
  height: 13px;
}

.latest-balls {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 38px;
}

.ball-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ball-label {
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  font-weight: 600;
}

.balls {
  display: flex;
  gap: 9px;
}

.ball {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.ball.front {
  background: #a5271e;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 5px 12px rgba(0, 0, 0, 0.15);
}

.ball.back {
  background: #2294a7;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 5px 12px rgba(0, 0, 0, 0.15);
}

.ball.skeleton {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  animation: pulse 1.3s ease infinite;
}

.ball-divider {
  width: 1px;
  height: 32px;
  margin-bottom: 7px;
  background: rgba(255, 255, 255, 0.12);
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

.latest-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(114, 23, 17, 0.11);
}

.fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fact:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.fact:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fact > span {
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

.fact strong {
  overflow: hidden;
  margin-top: 7px;
  color: #fff;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact small {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draws-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.history-panel {
  min-width: 0;
  padding: 22px 24px 16px;
}

.history-heading {
  margin-bottom: 17px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 126px;
  gap: 9px;
  margin-bottom: 10px;
}

.search-field,
.select-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.search-field:focus-within,
.select-field:focus-within {
  border-color: #a9b8af;
  background: #fff;
}

.search-field svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #9aa49e;
  pointer-events: none;
}

.search-field input,
.select-field select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-field input {
  padding: 0 12px 0 36px;
}

.search-field input::placeholder {
  color: #a2aaa5;
}

.select-field select {
  appearance: none;
  padding: 0 30px 0 12px;
}

.select-field::after {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.table-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.draw-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.draw-table th {
  padding: 11px 8px;
  color: #929c96;
  font-size: 9px;
  font-weight: 600;
  text-align: left;
}

.draw-table th:nth-child(1) {
  width: 20%;
}

.draw-table th:nth-child(2) {
  width: 48%;
}

.draw-table th:nth-child(3) {
  width: 17%;
}

.draw-table th:nth-child(4) {
  width: 15%;
  text-align: right;
}

.draw-table td {
  height: 55px;
  padding: 8px;
  border-top: 1px solid #edf0ec;
  vertical-align: middle;
}

.draw-table tbody tr {
  transition: background 130ms ease;
}

.draw-table tbody tr:hover {
  background: #fbfcf9;
}

.draw-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.draw-identity strong {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 650;
}

.draw-identity span {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
}

.draw-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.draw-numbers .ball {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  font-size: 11px;
  box-shadow: none;
}

.draw-numbers .ball.back {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.draw-numbers .ball.front {
  background: var(--red-soft);
  color: var(--red-dark);
}

.draw-numbers .plus {
  margin: 0 2px;
  color: #a4ada7;
  font-family: var(--font-num);
  font-size: 10px;
}

.prize-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prize-cell strong {
  color: var(--ink-soft);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
}

.prize-cell span {
  color: var(--muted);
  font-size: 9px;
}

.pool-cell {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-num);
  font-size: 11px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-loading,
.table-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.pagination > span {
  color: var(--muted);
  font-size: 10px;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination .icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.page-indicator {
  min-width: 52px;
  color: var(--ink-soft);
  font-family: var(--font-num);
  font-size: 10px;
  text-align: center;
}

.stats-panel {
  padding: 22px;
}

.tiny-badge {
  min-height: 24px;
  padding: 0 8px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 9px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 20px;
}

.heat-cell {
  position: relative;
  display: flex;
  min-width: 0;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 33, 29, 0.04);
  border-radius: 4px;
  background: color-mix(in srgb, var(--red) calc(var(--heat, 0) * 70%), #f1f3ef);
  color: var(--ink);
  font-family: var(--font-num);
  line-height: 1;
}

.heat-cell strong {
  font-size: 11px;
  font-weight: 650;
}

.heat-cell span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.heat-cell.is-hot {
  color: #fff;
}

.heat-cell.is-hot span {
  color: rgba(255, 255, 255, 0.65);
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
}

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

.stat-block span {
  color: var(--muted);
  font-size: 9px;
}

.stat-block strong {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 650;
}

.number-lists {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

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

.list-label {
  flex: 0 0 28px;
  color: var(--muted);
  font-size: 9px;
}

.mini-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-balls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-dark);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 650;
}

.mini-balls.muted span {
  background: #eef0ec;
  color: #6e7972;
}

.mini-balls.back span {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.back-frequency {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.back-frequency-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
}

.back-frequency-title span:last-child {
  font-family: var(--font-num);
}

.stats-disclaimer {
  margin: 18px 0 0;
  color: #a0a9a3;
  font-size: 9px;
  line-height: 1.6;
}

.trend-range-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.trend-range-control button {
  min-width: 58px;
  height: 32px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
}

.trend-range-control button:hover {
  color: var(--ink);
}

.trend-range-control button.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 3px 9px rgba(220, 73, 58, 0.18);
}

.trend-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.trend-overview-item {
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.trend-overview-item > span {
  color: var(--muted);
  font-size: 9px;
}

.trend-overview-item > strong {
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
}

.trend-overview-item > small {
  margin-top: 2px;
  color: #a0a8a3;
  font-size: 8px;
}

.trend-overview-item:first-child {
  border-color: #edc9c3;
  background: #fff6f4;
}

.trend-overview-item:first-child > strong {
  color: var(--red-dark);
}

.trend-hot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.trend-hot-row .mini-balls {
  flex-wrap: nowrap;
}

.trend-hot-row .mini-balls + .mini-balls {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.trend-hot-row .mini-balls span {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.trend-panel {
  padding: 20px 22px 14px;
}

.trend-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.trend-toolbar h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.25;
}

.trend-tabs {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.trend-tabs button {
  height: 31px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.trend-tabs button:hover {
  color: var(--ink);
}

.trend-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(83, 35, 29, 0.1);
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 8px;
}

.trend-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.front {
  background: var(--red);
}

.legend-dot.back {
  background: var(--blue);
}

.legend-line {
  width: 20px;
  height: 2px;
  background: #e98a76;
}

.trend-legend-note {
  margin-left: auto;
  color: #a0a8a3;
}

.trend-scroll {
  position: relative;
  height: min(67vh, 680px);
  min-height: 430px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  overscroll-behavior: contain;
  scrollbar-color: #cbbcb7 #f7f3f1;
  scrollbar-width: thin;
}

.trend-scroll::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.trend-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 9px;
  background: #cbbcb7;
}

.trend-scroll::-webkit-scrollbar-track {
  background: #f7f3f1;
}

.trend-board {
  position: relative;
  width: max-content;
  min-width: 100%;
  background: #fff;
}

.trend-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.trend-lines path {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.58;
}

.trend-table {
  position: relative;
  z-index: 1;
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
  font-family: var(--font-num);
}

.trend-table th,
.trend-table td {
  padding: 0;
  border-right: 1px solid #eee8e5;
  border-bottom: 1px solid #eee8e5;
  text-align: center;
}

.trend-table thead th {
  position: sticky;
  z-index: 8;
  height: 27px;
  background: #f7f3f1;
  color: #7e746f;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.trend-table thead tr:first-child th {
  top: 0;
}

.trend-table thead tr:nth-child(2) th {
  top: 27px;
}

.trend-table thead th.trend-issue-head {
  left: 0;
  z-index: 12;
  width: 74px;
  min-width: 74px;
  background: #f3eeeb;
}

.trend-table thead th.trend-weekday-head {
  width: 38px;
  min-width: 38px;
}

.trend-table thead th.trend-date-head {
  width: 92px;
  min-width: 92px;
}

.trend-table thead th.trend-number-head {
  width: 28px;
  min-width: 28px;
  color: #6f6662;
  font-size: 8px;
}

.trend-table thead th.trend-number-head.front-head {
  background: #fff4f1;
}

.trend-table thead th.trend-number-head.back-head {
  background: #edf8f9;
}

.trend-table thead th.trend-group-head {
  height: 24px;
  color: #8b7e79;
  font-size: 8px;
}

.trend-table thead th.trend-group-head.front {
  background: #fbe7e2;
  color: var(--red-dark);
}

.trend-table thead th.trend-group-head.back {
  background: #dcf1f3;
  color: var(--blue-dark);
}

.trend-table thead th.trend-group-head.stats {
  background: #f2f0ec;
  color: #655e59;
}

.trend-table tbody td {
  position: relative;
  height: 29px;
  background: transparent;
  color: #b0a7a2;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.trend-table tbody td.trend-issue-cell {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 74px;
  min-width: 74px;
  background: #fbf8f6;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
  box-shadow: 1px 0 0 #ded4d0;
}

.trend-table tbody td.trend-weekday-cell {
  width: 38px;
  min-width: 38px;
  color: #968b86;
}

.trend-table tbody td.trend-date-cell {
  width: 92px;
  min-width: 92px;
  color: #766963;
  font-size: 9px;
  letter-spacing: 0;
}

.trend-table tbody td.trend-number-cell {
  width: 28px;
  min-width: 28px;
}

.trend-table tbody td.trend-number-cell.front-zone {
  background: rgba(255, 246, 243, 0.58);
}

.trend-table tbody td.trend-number-cell.back-zone {
  background: rgba(243, 251, 251, 0.66);
}

.trend-table tbody td.trend-number-cell.is-hit {
  background: transparent;
}

.trend-ball {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(90, 36, 30, 0.13);
}

.trend-ball.front {
  background: var(--red);
}

.trend-ball.back {
  background: var(--blue);
}

.trend-omission {
  position: relative;
  z-index: 2;
  color: #b7afa9;
}

.trend-omission.is-long {
  color: #8e817a;
  font-weight: 650;
}

.trend-table tbody td.trend-stat-cell {
  width: 62px;
  min-width: 62px;
  color: #6e625d;
  font-size: 8px;
}

.trend-table tbody td.trend-stat-cell:last-child {
  border-right: 0;
}

.trend-loading {
  display: grid;
  width: min(1100px, calc(100vw - 350px));
  height: 360px;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
}

.trend-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  color: #9e958f;
  font-size: 8px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.control-panel,
.result-panel {
  padding: 24px;
}

.field-block {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.field-block legend,
.field-label {
  padding: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

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

.field-label-row label,
.field-label-row > span:first-child {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.field-label-row > span:last-child {
  color: var(--muted);
  font-size: 9px;
}

.stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.stepper button:hover {
  background: #eef1ec;
}

.stepper button svg {
  width: 15px;
  height: 15px;
}

.stepper input {
  width: 100%;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  outline: 0;
  background: #fff;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 650;
  text-align: center;
  appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.quick-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 7px;
}

.quick-counts button {
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
}

.quick-counts button:hover,
.quick-counts button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.mode-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mode-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.mode-option:hover {
  border-color: var(--line-strong);
}

.mode-option.is-selected {
  border-color: #aab9b0;
  background: #f8faf7;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
}

.mode-icon.warm {
  background: var(--gold-soft);
  color: #b47813;
}

.mode-icon svg {
  width: 17px;
  height: 17px;
}

.mode-option > span:nth-child(3) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.mode-option strong {
  font-size: 11px;
  font-weight: 650;
}

.mode-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-mark {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid #bdc5bf;
  border-radius: 50%;
}

.mode-option.is-selected .radio-mark {
  border-color: var(--ink);
}

.mode-option.is-selected .radio-mark::after {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.control-panel > .button.wide {
  margin-top: 24px;
}

.control-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 11px 0 0;
  color: #939d97;
  font-size: 9px;
  line-height: 1.6;
}

.control-note svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.result-panel {
  display: flex;
  min-width: 0;
  min-height: 550px;
  flex-direction: column;
}

.result-actions {
  display: flex;
  gap: 6px;
}

.ticket-stage {
  display: flex;
  min-height: 390px;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.empty-state {
  display: flex;
  min-height: 360px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #dce1dc;
  border-radius: 7px;
  background: #fafbf8;
  text-align: center;
}

.empty-state h3 {
  margin: 18px 0 4px;
  font-size: 14px;
  font-weight: 650;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.empty-visual {
  position: relative;
  width: 104px;
  height: 84px;
}

.empty-ball {
  position: absolute;
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(23, 33, 29, 0.12);
}

.empty-ball.front {
  left: 12px;
  background: var(--red);
  transform: rotate(-8deg);
}

.empty-ball.back {
  right: 12px;
  background: var(--blue);
  transform: rotate(8deg);
}

.dices-visual::after {
  position: absolute;
  right: 1px;
  bottom: 0;
  left: 1px;
  height: 1px;
  background: var(--line);
  content: "";
}

.ticket {
  position: relative;
  padding: 13px 15px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  animation: ticket-in 220ms ease both;
}

.ticket::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--red);
  content: "";
}

.ticket:nth-child(even)::before {
  background: var(--blue);
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.ticket-head > span:first-child {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
}

.ticket-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 3px;
  background: #f1f3ef;
  color: #6f7a73;
  font-size: 8px;
  font-weight: 600;
}

.ticket-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket .ball {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  font-size: 14px;
  box-shadow: none;
}

.ticket .ball.front {
  background: var(--red-soft);
  color: var(--red-dark);
}

.ticket .ball.back {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.ticket-separator {
  margin: 0 2px;
  color: #a3aca6;
  font-family: var(--font-num);
  font-size: 12px;
}

.result-meta {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.saved-panel {
  margin-top: 18px;
  padding: 22px 24px;
}

.saved-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.text-button svg {
  width: 13px;
  height: 13px;
}

.text-button.danger:hover {
  color: var(--danger);
}

.saved-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.saved-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.saved-ticket {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.saved-ticket-meta {
  display: flex;
  flex: 0 0 74px;
  flex-direction: column;
  gap: 2px;
}

.saved-ticket-meta strong {
  font-size: 9px;
  font-weight: 650;
}

.saved-ticket-meta span {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 8px;
}

.saved-ticket .draw-numbers {
  min-width: 0;
  flex-wrap: wrap;
}

.saved-ticket .draw-numbers .ball {
  flex-basis: 25px;
  width: 25px;
  height: 25px;
  font-size: 9px;
}

.saved-result-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.saved-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #f0f2ee;
  color: #6e7872;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.saved-result-badge.is-win {
  background: var(--red-soft);
  color: var(--red-dark);
}

.saved-result-badge.is-pending {
  background: var(--gold-soft);
  color: #9a6816;
}

.saved-result-badge.is-checked {
  background: #edf1ee;
  color: #69736d;
}

.saved-result-detail {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 8px;
}

.saved-ticket .ball.is-hit {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.saved-winning-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.saved-winning-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 8px;
}

.saved-winning-row .draw-numbers {
  min-width: 0;
  flex-wrap: wrap;
}

.saved-winning-row .ball {
  flex-basis: 21px;
  width: 21px;
  height: 21px;
  font-size: 8px;
}

.saved-ticket {
  flex-direction: column;
  align-items: stretch;
}

.saved-ticket-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.api-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #ead9b8;
  border-radius: 8px;
  background: #fff9ec;
}

.api-banner-icon {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #f6e8ca;
  color: #a06c10;
}

.api-banner-icon svg {
  width: 17px;
  height: 17px;
}

.api-banner > div {
  min-width: 0;
  flex: 1;
}

.api-banner strong {
  font-size: 11px;
  font-weight: 650;
}

.api-banner p {
  margin: 2px 0 0;
  color: #8a7c61;
  font-size: 9px;
}

.api-banner.is-configured {
  border-color: #cfe1d8;
  background: #f1f8f4;
}

.api-banner.is-configured .api-banner-icon {
  background: #dceee4;
  color: var(--green);
}

.ai-grid {
  grid-template-columns: 350px minmax(0, 1fr);
}

.model-chip {
  max-width: 180px;
  min-height: 26px;
  overflow: hidden;
  padding: 0 8px;
  background: var(--surface-soft);
  font-family: var(--font-num);
  font-size: 9px;
  text-overflow: ellipsis;
}

.ai-quota-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
  margin: 0 0 15px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.ai-quota-strip svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}

.ai-quota-strip.is-empty {
  border-color: #edc8c3;
  background: #fff5f3;
  color: var(--red-dark);
}

.ai-quota-strip.is-admin {
  border-color: #cfe1d8;
  background: #f1f8f4;
  color: #28704c;
}

.ai-ad-button {
  flex: 0 0 auto;
  min-height: 26px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid #efc8a6;
  border-radius: 4px;
  background: #fff7ec;
  color: #9a4d13;
  font-size: 9px;
  font-weight: 700;
}

.ai-ad-button:hover {
  border-color: #d99a62;
  background: #fff0dc;
}

.ai-ad-status {
  flex: 1 0 100%;
  margin: 2px 0 0 20px;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: text;
}

.ai-ad-status.is-success {
  color: #28704c;
}

.ai-ad-status.is-progress {
  color: #906015;
}

.strategy-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.strategy-tabs button {
  min-height: 34px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.strategy-tabs button:hover {
  color: var(--ink);
}

.strategy-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(23, 33, 29, 0.09);
}

.ai-controls textarea {
  width: 100%;
  min-height: 94px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.7;
}

.ai-controls textarea:focus {
  border-color: #a9b8af;
  background: #fff;
}

.ai-controls textarea::placeholder {
  color: #a2aaa5;
}

.ai-generate {
  min-height: 44px;
  margin-top: 24px;
}

.ai-generate.is-loading svg {
  animation: spin 1s linear infinite;
}

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

.ai-result-panel {
  min-height: 620px;
}

.ai-stage {
  min-height: 440px;
}

.ai-empty .empty-visual {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
}

.ai-visual > svg {
  z-index: 1;
  width: 35px;
  height: 35px;
  color: var(--red);
}

.ai-orbit {
  position: absolute;
  border: 1px solid #dce2dd;
  border-radius: 50%;
}

.ai-orbit.one {
  inset: 12px;
}

.ai-orbit.two {
  inset: 28px;
  border-style: dashed;
}

.ai-visual::before,
.ai-visual::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.ai-visual::before {
  top: 14px;
  right: 23px;
}

.ai-visual::after {
  bottom: 14px;
  left: 19px;
  background: var(--gold);
}

.ai-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  padding: 12px 13px;
  border: 1px solid #dbe7e1;
  border-radius: 6px;
  background: #f4f9f6;
}

.ai-summary > svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--green);
}

.ai-summary span {
  color: var(--green);
  font-size: 9px;
  font-weight: 650;
}

.ai-summary p {
  margin: 2px 0 0;
  color: #52635a;
  font-size: 10px;
  line-height: 1.6;
}

.app-footer {
  display: flex;
  width: min(100%, 1380px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px auto 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: #98a29c;
  font-size: 9px;
}

.settings-dialog,
.auth-dialog,
.consent-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(13, 22, 18, 0.3);
}

.auth-dialog {
  width: min(480px, calc(100vw - 32px));
}

.consent-dialog {
  width: min(580px, calc(100vw - 32px));
}

.settings-dialog::backdrop,
.auth-dialog::backdrop,
.consent-dialog::backdrop {
  background: rgba(70, 25, 21, 0.44);
  backdrop-filter: blur(3px);
}

.settings-dialog[open],
.auth-dialog[open],
.consent-dialog[open] {
  animation: dialog-in 180ms ease both;
}

.consent-panel {
  padding: 28px;
}

.consent-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.consent-mark {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red-dark);
}

.consent-mark svg {
  width: 22px;
  height: 22px;
}

.consent-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 700;
}

.consent-heading h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.consent-scope {
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid #eccdc8;
  border-radius: 7px;
  background: #fff6f4;
}

.consent-scope strong {
  color: var(--red-dark);
  font-size: 11px;
}

.consent-scope p,
.consent-points p,
.consent-legal-copy {
  margin: 6px 0 0;
  color: #655754;
  font-size: 11px;
  line-height: 1.75;
}

.consent-points {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.consent-points p {
  margin: 0;
}

.consent-points strong {
  color: var(--ink);
}

.consent-legal-copy {
  margin-top: 16px;
}

.consent-legal-copy a {
  color: var(--red-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.65;
}

.consent-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--red-dark);
}

.consent-actions {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(180px, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.consent-exit-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #b9342b;
  color: #fff;
  text-align: center;
}

.consent-exit-screen > div {
  width: min(420px, 100%);
}

.consent-exit-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.consent-exit-mark svg {
  width: 28px;
  height: 28px;
}

.consent-exit-screen h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.35;
}

.consent-exit-screen p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.8;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.settings-form {
  padding: 24px;
}

.auth-panel {
  padding: 24px;
}

.auth-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.wechat-login-button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  border-radius: 6px;
  background: #07a858;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.wechat-login-button:hover {
  background: #068f4c;
}

.wechat-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #07a858;
  font-size: 11px;
  font-weight: 700;
}

.wechat-login-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 14px;
  color: #a09994;
  font-size: 8px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.auth-mode-tabs button {
  height: 34px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.auth-mode-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(83, 35, 29, 0.1);
}

.input-with-icon {
  position: relative;
}

.input-with-icon > svg {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #8e9992;
}

.input-with-icon input {
  padding-left: 38px;
}

.auth-inline-error {
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #efd1cc;
  border-radius: 5px;
  background: #fff4f2;
  color: #a33d32;
  font-size: 9px;
  line-height: 1.55;
}

.auth-inline-error.is-success {
  border-color: #d9e8df;
  background: #f2f9f5;
  color: #2d6f51;
}

#loginForm {
  margin-top: 15px;
}

#loginForm .button {
  margin-top: 18px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.account-profile > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.account-profile strong {
  font-size: 14px;
}

.account-profile span {
  color: var(--ink-soft);
  font-size: 10px;
}

.account-profile small {
  color: var(--muted);
  font-size: 8px;
}

.avatar-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.avatar-upload-row .button {
  margin: 0;
}

.avatar-upload-row > span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.avatar-upload-status {
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #d9e8df;
  border-radius: 5px;
  background: #f2f9f5;
  color: #2d6f51;
  font-size: 9px;
  line-height: 1.55;
}

.avatar-upload-status.is-error {
  border-color: #efd1cc;
  background: #fff4f2;
  color: #a33d32;
}

.account-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-section-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.account-section-heading strong {
  font-size: 11px;
}

.account-section-heading span {
  color: var(--muted);
  font-size: 8px;
}

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

.form-grid .form-field {
  margin-top: 0;
}

.account-section .button {
  margin-top: 12px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.button.danger-outline {
  border-color: #e9c7c2;
  background: #fff;
  color: var(--danger);
}

.button.danger-outline:hover {
  background: #fff4f2;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.connection-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.connection-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9b1ac;
}

.connection-card.is-connected {
  border-color: #cfe1d8;
  background: #f3f8f5;
}

.connection-card.is-connected .connection-dot {
  background: #45a275;
  box-shadow: 0 0 0 4px rgba(69, 162, 117, 0.11);
}

.connection-card.is-testing {
  border-color: #d8e5e8;
  background: #f2f8f9;
}

.connection-card.is-testing .connection-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 127, 146, 0.11);
  animation: pulse 1s ease infinite;
}

.connection-card.is-error {
  border-color: #efd1cc;
  background: #fff4f2;
}

.connection-card.is-error .connection-dot {
  background: #d05a4b;
  box-shadow: 0 0 0 4px rgba(208, 90, 75, 0.1);
}

.connection-card div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.connection-card strong {
  font-size: 10px;
  font-weight: 650;
}

.connection-card span:last-child {
  color: var(--muted);
  font-size: 9px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 18px;
}

.form-field > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.form-field input,
.readonly-field {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--surface-soft);
  font-family: var(--font-num);
  font-size: 11px;
}

.form-field > input {
  padding: 0 12px;
}

.form-field input:focus {
  border-color: #a9b8af;
  background: #fff;
}

.form-field small {
  color: #929d96;
  font-size: 9px;
}

.connection-test-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 10px;
  border: 1px solid #d9e8df;
  border-radius: 5px;
  background: #f2f9f5;
  color: #2d6f51;
  font-size: 9px;
  line-height: 1.55;
}

.connection-test-result.is-error {
  border-color: #efd1cc;
  background: #fff4f2;
  color: #a33d32;
}

.connection-test-result.is-testing {
  border-color: #d8e5e8;
  background: #f2f8f9;
  color: #52747b;
}

.test-result-icon {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #3fa875;
  box-shadow: 0 0 0 3px rgba(63, 168, 117, 0.1);
}

.connection-test-result.is-error .test-result-icon {
  background: #d05a4b;
  box-shadow: 0 0 0 3px rgba(208, 90, 75, 0.1);
}

.connection-test-result.is-testing .test-result-icon {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 127, 146, 0.1);
  animation: pulse 1s ease infinite;
}

.password-field {
  position: relative;
}

.password-field > svg {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #8e9992;
}

.password-field input {
  padding: 0 44px 0 38px;
}

.field-icon-button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}

.field-icon-button:hover {
  background: #ecefeb;
  color: var(--ink);
}

.field-icon-button svg {
  width: 16px;
  height: 16px;
}

.readonly-field {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #7f8a83;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: #517078;
}

.security-note svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.security-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.6;
}

.security-note code {
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(22, 127, 146, 0.08);
  font-family: Consolas, monospace;
  font-size: 8px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.toast-region {
  position: fixed;
  inset: auto 24px 24px auto;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  width: min(340px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: #b9342b;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 19, 0.2);
  font-size: 10px;
  line-height: 1.55;
  animation: toast-in 180ms ease both;
  pointer-events: auto;
}

.toast::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #56bf86;
  content: "";
}

.toast.error::before {
  background: #f06a57;
}

.toast.is-leaving {
  animation: toast-out 180ms ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.mine-dashboard {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.35fr);
  gap: 18px;
  margin-bottom: 34px;
}

.mine-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.mine-avatar {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(185, 52, 43, 0.16);
  border-radius: 50%;
  background: rgba(185, 52, 43, 0.09);
  color: var(--red);
}

.mine-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mine-avatar svg {
  width: 24px;
  height: 24px;
}

.mine-profile-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.mine-label {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.mine-profile-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-profile-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

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

.mine-action {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.mine-action:hover {
  border-color: rgba(185, 52, 43, 0.3);
  background: rgba(185, 52, 43, 0.05);
}

.mine-action-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(185, 52, 43, 0.09);
  color: var(--red);
}

.mine-action-icon svg {
  width: 18px;
  height: 18px;
}

.mine-action-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.mine-action-copy strong {
  font-size: 13px;
}

.mine-action-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.mine-action-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.mine-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  scroll-margin-top: 18px;
}

.mine-section-heading h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 24px;
}

.ticket-folder-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.ticket-entry-panel,
.ticket-folder-panel {
  min-width: 0;
  padding: 22px;
}

.ticket-entry-panel .ticket-photo-picker,
.ticket-entry-panel form,
.ticket-folder-panel .ticket-folder-list {
  margin-top: 16px;
}

.ticket-photo-picker {
  display: flex;
  width: 100%;
  min-height: 148px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(185, 52, 43, 0.32);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(185, 52, 43, 0.07), rgba(208, 141, 64, 0.04));
  color: var(--ink);
  text-align: center;
}

.ticket-photo-picker:hover {
  border-color: var(--red);
  background: rgba(185, 52, 43, 0.08);
}

.ticket-photo-picker strong {
  font-size: 14px;
}

.ticket-photo-picker small {
  color: var(--muted);
  font-size: 11px;
}

.ticket-photo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.ticket-photo-icon svg {
  width: 21px;
  height: 21px;
}

.ticket-photo-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.ticket-photo-preview img {
  width: 100%;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
}

.ticket-photo-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-photo-preview-actions .button {
  flex: 1;
}

.ticket-ocr-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(185, 52, 43, 0.07);
  color: var(--red-dark);
  font-size: 12px;
  line-height: 1.5;
}

.ticket-number-field {
  margin-top: 12px;
}

.ticket-number-field textarea {
  min-height: 118px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.7;
}

.ticket-folder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.folder-ticket {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.folder-ticket-head,
.folder-ticket-claim,
.folder-ticket-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.folder-ticket-head {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.folder-ticket-head strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.folder-ticket-head span,
.folder-ticket-claim {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.folder-ticket-balls {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
}

.folder-ticket-balls .ball {
  flex-basis: 29px;
  width: 29px;
  height: 29px;
  font-size: 10px;
}

.folder-ticket-balls .ball.is-hit {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #d8a22d;
  font-weight: 800;
}

.folder-ticket-balls .ball.front.is-hit {
  background: var(--red);
  color: #fff;
}

.folder-ticket-balls .ball.back.is-hit {
  background: var(--blue);
  color: #fff;
}

.folder-ticket-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(39, 129, 83, 0.08);
  color: #246b4a;
  font-size: 12px;
  line-height: 1.5;
}

.folder-ticket-result.is-pending {
  background: rgba(185, 52, 43, 0.06);
  color: var(--muted);
}

.folder-ticket-result.is-urgent {
  background: rgba(187, 113, 34, 0.1);
  color: #8b5316;
}

.folder-ticket-result.is-expired {
  background: rgba(110, 100, 96, 0.08);
  color: var(--muted);
}

.folder-ticket-result-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.folder-ticket-result-copy strong {
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
}

.folder-ticket-result-copy span {
  color: inherit;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.78;
}

.folder-ticket-actions {
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.folder-ticket-actions .text-button {
  font-size: 11px;
}

.membership-section {
  border-top: 1px solid var(--line);
}

.membership-current {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(185, 52, 43, 0.06);
  color: var(--red-dark);
  font-size: 12px;
  line-height: 1.5;
}

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

.membership-plan {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
}

.membership-plan strong {
  color: var(--ink);
  font-size: 13px;
}

.membership-plan .plan-price {
  color: var(--red-dark);
  font-size: 20px;
  font-weight: 700;
}

.membership-plan small {
  min-height: 36px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.membership-plan .button {
  width: 100%;
  margin-top: 4px;
}

.membership-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 14px 0 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.membership-note strong {
  color: var(--red-dark);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.membership-note .text-button {
  flex: 0 0 auto;
}

.membership-order-feedback {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e7d5a9;
  border-radius: 6px;
  background: #fffaf0;
  color: #77521a;
  font-size: 11px;
  line-height: 1.6;
}

.membership-order-feedback strong {
  color: #5e3d0d;
  font-family: var(--font-num);
}

.membership-order-feedback .text-button {
  margin-left: 6px;
}

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

.admin-stat-card {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid #ddd2cc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(83, 35, 29, 0.055);
}

.admin-stat-card.is-user {
  border-color: rgba(185, 52, 43, 0.3);
  background: #fff8f7;
}

.admin-stat-card.is-member {
  border-color: rgba(179, 126, 34, 0.32);
  background: #fffaf0;
}

.admin-stat-card.is-active {
  border-color: rgba(22, 127, 146, 0.28);
  background: #f4fbfc;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 10px;
}

.admin-stat-card strong {
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 27px;
  line-height: 1.15;
}

.admin-stat-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.admin-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.admin-trend-panel {
  margin-top: 22px;
  padding: 20px;
  border-color: #ddd2cc;
  box-shadow: 0 5px 18px rgba(83, 35, 29, 0.045);
}

.admin-series-head,
.admin-daily-row {
  display: grid;
  grid-template-columns: 86px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.admin-series-head {
  padding: 0 10px 9px;
  color: var(--muted);
  font-size: 9px;
}

.admin-series-head span:not(:first-child) {
  text-align: right;
}

.admin-daily-series {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-daily-row {
  min-height: 55px;
  padding: 12px;
  border: 1px solid #e2d8d2;
  border-radius: 6px;
  background: #fff;
}

.admin-daily-row > strong {
  color: var(--ink-soft);
  font-family: var(--font-num);
  font-size: 10px;
}

.admin-daily-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
}

.admin-daily-metric span {
  color: var(--muted);
  font-size: 8px;
}

.admin-daily-metric b {
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 12px;
}

.admin-daily-metric i {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) var(--bar), #eceee9 var(--bar));
}

.admin-daily-metric.is-active i {
  background: linear-gradient(90deg, var(--blue) var(--bar), #eceee9 var(--bar));
}

.admin-daily-metric.is-ai i {
  background: linear-gradient(90deg, #b37e22 var(--bar), #eceee9 var(--bar));
}

.membership-orders {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.orders-dialog {
  width: min(640px, calc(100vw - 32px));
}

.orders-summary {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.order-filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.order-filter-tabs button {
  min-height: 34px;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.order-filter-tabs button.is-active {
  background: #fff;
  color: var(--red-dark);
  box-shadow: 0 1px 4px rgba(83, 35, 29, 0.1);
}

.order-filter-tabs + .orders-summary {
  margin-top: 10px;
}

.orders-list {
  min-height: 86px;
  margin-top: 12px;
}

.orders-empty {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  text-align: center;
}

.orders-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.orders-empty span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.membership-order-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.membership-order-group > strong {
  color: var(--ink);
  font-size: 11px;
}

.membership-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}

.membership-order-user {
  flex: 1 1 100%;
  color: var(--ink);
  font-weight: 600;
}

.membership-order-main {
  display: flex;
  min-width: 130px;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 5px;
}

.membership-order-main small {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.membership-order-help {
  flex: 1 1 100%;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  color: var(--red-dark);
  font-size: 10px;
  line-height: 1.5;
}

.membership-order-row strong {
  color: var(--ink);
}

.membership-order-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  background: #f0f2ee;
  color: #69736d;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.membership-order-status.is-pending {
  background: var(--gold-soft);
  color: #906015;
}

.membership-order-status.is-paid {
  background: rgba(39, 129, 83, 0.1);
  color: #246b4a;
}

.membership-order-status.is-cancelled,
.membership-order-status.is-expired {
  background: rgba(110, 100, 96, 0.08);
  color: var(--muted);
}

.membership-order-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 960px) {
  .mine-dashboard {
    grid-template-columns: 1fr;
  }

  .ticket-folder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mine-profile-card,
  .mine-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mine-profile-card .button {
    width: 100%;
  }

  .mine-actions {
    grid-template-columns: 1fr;
  }

  .membership-plans {
    grid-template-columns: 1fr;
  }

  .ticket-photo-preview-actions,
  .folder-ticket-claim,
  .folder-ticket-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-photo-preview-actions {
    flex-direction: row;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media (max-width: 1180px) {
  .main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .latest-panel {
    grid-template-columns: 1fr;
  }

  .latest-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .fact,
  .fact:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 0;
  }

  .fact:last-child {
    border-right: 0;
  }

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

  .stats-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.85fr);
    column-gap: 28px;
  }

  .stats-panel .panel-heading {
    grid-column: 1 / -1;
  }

  .stats-panel .heatmap {
    grid-row: span 3;
  }

  .stats-panel .stats-summary {
    align-self: end;
  }

  .stats-panel .number-lists {
    margin-top: 12px;
  }

  .stats-panel .back-frequency {
    margin-top: 12px;
  }

  .stats-panel .stats-disclaimer {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
}

@media (max-width: 960px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: block;
    width: auto;
    height: 68px;
    padding: 7px 12px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar > .brand,
  .sidebar-foot {
    display: none;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 54px;
    margin: 0;
  }

  .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 4px;
    font-size: 9px;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }

  .nav-item.is-active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
  }

  .nav-item.is-active::before {
    top: -7px;
    left: 50%;
    width: 24px;
    height: 2px;
    border-radius: 0 0 3px 3px;
    transform: translateX(-50%);
  }

  .main {
    padding: 0 22px 92px;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    margin: 0 -22px 22px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 244, 242, 0.94);
    backdrop-filter: blur(10px);
  }

  .brand.compact {
    padding: 0;
    color: var(--ink);
  }

  .brand.compact .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    background: var(--red-dark);
  }

  .brand.compact .brand-copy strong {
    font-size: 14px;
  }

  .brand.compact .brand-copy small {
    color: var(--muted);
    font-size: 8px;
  }

  .workspace-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .control-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .control-panel .panel-heading,
  .control-panel > .button.wide,
  .control-panel > .control-note {
    grid-column: 1 / -1;
  }

  .control-panel .field-block {
    margin-top: 20px;
  }

  .control-panel > .button.wide {
    margin-top: 20px;
  }

  .result-panel {
    min-height: 480px;
  }

  .ticket-stage {
    min-height: 330px;
  }

  .empty-state {
    min-height: 300px;
  }

  .ai-controls .field-block:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .saved-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mobile-header {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .view-heading {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  #view-trend .view-heading {
    flex-direction: column;
    gap: 14px;
  }

  .trend-range-control {
    width: 100%;
  }

  .trend-range-control button {
    min-width: 0;
  }

  .trend-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trend-overview-item {
    min-height: 82px;
    padding: 11px 12px;
  }

  .trend-overview-item > strong {
    font-size: 18px;
  }

  .trend-hot-row {
    flex-wrap: wrap;
    gap: 5px;
  }

  .trend-hot-row .mini-balls + .mini-balls {
    padding-left: 5px;
  }

  .trend-panel {
    padding: 17px 14px 12px;
  }

  .trend-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .trend-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .trend-legend {
    gap: 10px;
  }

  .trend-legend-note {
    width: 100%;
    margin-left: 0;
  }

  .trend-scroll {
    height: 62vh;
    min-height: 380px;
  }

  .trend-foot {
    font-size: 7px;
  }

  .view-heading h1 {
    font-size: 29px;
  }

  .heading-note {
    font-size: 11px;
  }

  .heading-actions .data-chip {
    display: none;
  }

  .view-heading .button span {
    display: none;
  }

  .view-heading .button {
    width: 40px;
    padding: 0;
  }

  .latest-main {
    padding: 22px 20px 24px;
  }

  .latest-main::after {
    display: none;
  }

  .latest-utility {
    width: 100%;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }

  .countdown-card {
    min-width: 0;
    width: min(100%, 190px);
  }

  .latest-topline {
    flex-direction: column;
    gap: 14px;
  }

  .latest-issue-row {
    flex-direction: column;
    gap: 3px;
  }

  .latest-issue-row h2 {
    font-size: 26px;
  }

  .latest-balls {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
  }

  .ball {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .balls {
    gap: 7px;
  }

  .latest-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact,
  .fact:nth-child(odd) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .fact:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .fact:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .fact {
    padding: 16px 18px;
  }

  .fact strong {
    font-size: 17px;
  }

  .history-panel,
  .stats-panel,
  .control-panel,
  .result-panel,
  .saved-panel {
    padding: 19px 17px;
  }

  .filters {
    grid-template-columns: 1fr 112px;
  }

  .draw-table thead {
    display: none;
  }

  .draw-table,
  .draw-table tbody,
  .draw-table tr,
  .draw-table td {
    display: block;
    width: 100%;
  }

  .draw-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 13px 4px;
    border-top: 1px solid #edf0ec;
  }

  .draw-table td {
    height: auto;
    padding: 0;
    border: 0;
  }

  .draw-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .draw-table td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .draw-table td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .draw-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
  }

  .prize-cell {
    flex-direction: row;
    gap: 5px;
  }

  .draw-numbers .ball {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .pagination {
    gap: 8px;
  }

  .pagination > span {
    max-width: 130px;
  }

  .stats-panel {
    display: block;
  }

  .stats-panel .number-lists {
    margin-top: 18px;
  }

  .stats-panel .back-frequency {
    margin-top: 18px;
  }

  .control-panel {
    display: block;
  }

  .ticket-stage {
    min-height: 280px;
  }

  .empty-state {
    min-height: 260px;
  }

  .ticket {
    padding: 12px 12px 13px;
  }

  .ticket-numbers {
    gap: 4px;
  }

  .ticket .ball {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .api-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .api-banner .button {
    margin-left: 47px;
  }

  .saved-ticket {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .saved-ticket-main {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .saved-ticket-meta {
    flex-direction: row;
    gap: 7px;
  }

  .saved-result-line {
    width: 100%;
    flex-wrap: wrap;
  }

  .app-footer {
    margin-top: 22px;
  }

  .settings-form {
    padding: 20px;
  }

  .auth-panel {
    padding: 20px;
  }

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

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .admin-stat-card {
    min-height: 112px;
    padding: 14px;
  }

  .admin-trend-panel {
    margin-top: 18px;
    padding: 16px;
  }

  .admin-daily-series {
    gap: 9px;
  }

  .admin-stat-card strong {
    font-size: 23px;
  }

  .admin-series-head,
  .admin-daily-row {
    grid-template-columns: 62px repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .admin-daily-row {
    padding: 8px;
  }

  .admin-daily-metric span {
    display: none;
  }

  .toast-region {
    right: 16px;
    left: auto;
    top: auto;
    bottom: 84px;
  }
}

@media (max-width: 420px) {
  .consent-panel {
    padding: 20px;
  }

  .consent-heading {
    align-items: flex-start;
    gap: 11px;
  }

  .consent-heading h2 {
    font-size: 20px;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }

  .latest-topline {
    gap: 10px;
  }

  .countdown-card {
    min-width: 132px;
    padding: 7px 9px;
  }

  .countdown-card strong {
    font-size: 15px;
  }

  .latest-topline .source-link {
    font-size: 0;
  }

  .latest-topline .source-link svg {
    width: 16px;
    height: 16px;
  }

  .latest-balls {
    gap: 10px;
  }

  .latest-balls .ball {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .latest-balls .balls {
    gap: 5px;
  }

  .ball-divider {
    display: none;
  }

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

  .select-field {
    width: 112px;
  }

  .ticket .ball {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    font-size: 11px;
  }

  .ticket-numbers {
    gap: 3px;
  }

  .ticket-separator {
    margin: 0;
  }

  .page-indicator {
    min-width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
