﻿:root {
  --green: #04994c;
  --deep: #073b2e;
  --mint: #effaf3;
  --line: #e7ece8;
  --text: #1f2d28;
  --muted: #718078;
  --orange: #f47b20;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #f5f7f5;
}

button,
a {
  font: inherit;
}

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

.client-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-shell {
  width: min(430px, 100%);
  min-height: 900px;
  border: 1px solid #dde4df;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(20, 60, 40, 0.14);
}

.mobile-app {
  min-height: 900px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 70px;
}

.detail-page {
  position: absolute;
  inset: 0 0 70px;
  z-index: 10;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #f5f7f5;
}

.detail-page[hidden] {
  display: none !important;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 64px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  color: #fff;
  background: linear-gradient(130deg, #07a85a, #027f42);
}

.detail-header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
}

.detail-header h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.detail-body {
  flex: 1;
  min-height: calc(100% - 92px);
  margin: 14px;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 66, 37, 0.06);
}

.detail-page.ai-detail-active {
  background:
    radial-gradient(circle at 84% 9%, rgba(255, 220, 147, 0.32), transparent 23%),
    radial-gradient(circle at 8% 14%, rgba(168, 235, 217, 0.36), transparent 28%),
    linear-gradient(180deg, #eafff8 0%, #f8fffc 58%, #ffffff 100%);
}

.detail-page.ai-detail-active .detail-header {
  display: none;
}

.detail-page.ai-detail-active .detail-body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: hidden;
}

.hidden-home-section {
  display: none !important;
}

.location-bar[hidden] {
  display: none !important;
}

.detail-ads {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-ads article {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #fff6df;
}

.detail-ads img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-ads article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 105, 56, 0.88), rgba(4, 105, 56, 0.08));
}

.detail-ads strong,
.detail-ads span {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 16px;
}

.detail-ads strong {
  margin-top: 18px;
  font-size: 20px;
}

.detail-ads span {
  margin-top: 6px;
  color: #fff5d7;
}

.topbar {
  height: 88px;
  padding: 20px 18px 14px;
  color: #fff;
  background: linear-gradient(130deg, #07a85a, #027f42);
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.brand,
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 146px;
  height: 44px;
  object-fit: contain;
}

.admin-logo {
  width: 130px;
  height: 39px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-avatar,
.admin-avatar {
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(5, 58, 33, 0.18);
  background: #fff4d7;
}

.brand-avatar {
  width: 48px;
  height: 48px;
}

.admin-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-copy strong,
.brand-copy small,
.admin-brand b,
.admin-brand small {
  display: block;
}

.admin-brand span {
  min-width: 0;
}

.admin-brand small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffe49a;
  color: #0b8f4c;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
}

.brand-copy {
  min-width: 0;
}

.region,
.location-bar button,
.notice button {
  border: 0;
  background: transparent;
  color: inherit;
}

.region.login-entry {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #077f46;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 170, 61, 0.24), 0 6px 14px rgba(13, 73, 44, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.region.login-entry::after {
  content: "";
  display: inline-block;
  width: 0;
  margin-left: 4px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.location-bar,
.notice {
  margin: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f0fbf4;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.location-bar b,
.notice b {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.announcement-bar {
  margin-bottom: 10px;
  min-height: 56px;
  overflow: hidden;
}

.notice-label {
  flex: 0 0 auto;
  font-weight: 700;
}

.announcement-viewport {
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: noticeRoll var(--notice-duration, 3.2s) steps(var(--notice-count, 1)) infinite;
}

.announcement-track:has(.announcement-link:only-child),
.announcement-track:not(:has(.announcement-link)) {
  animation: none;
}

.announcement-link {
  width: 100%;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--green);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.announcement-link b,
.announcement-track > b {
  min-width: 0;
  color: var(--green);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-link time,
.announcement-track > time {
  color: var(--green);
  white-space: nowrap;
}

@keyframes noticeRoll {
  to {
    transform: translateY(calc(var(--notice-count, 1) * -24px));
  }
}

.article-detail p {
  line-height: 1.8;
  color: var(--text);
}

.selector-form {
  display: grid;
  gap: 14px;
}

.selector-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.selector-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.selector-form button {
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.selector-tip {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero {
  position: relative;
  margin: 14px;
  height: 178px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: var(--deep);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero div {
  position: absolute;
  inset: 26px 18px;
  max-width: 260px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 18px;
  color: #f7ffe9;
}

.hero button,
.action-panel button,
.action-panel a {
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  color: #065f35;
  background: #ffe796;
  text-decoration: none;
}

.top-ads,
.ad-strip {
  margin: 0 14px 14px;
  display: grid;
  gap: 12px;
}

.intro:empty,
.ad-strip:empty {
  display: none;
}

.top-ads article,
.ad-strip article {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #fff6df;
}

.top-ads img,
.ad-strip img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.top-ads article::after,
.ad-strip article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(223, 75, 16, 0.92), rgba(223, 75, 16, 0.05));
}

.top-ads strong,
.top-ads span,
.ad-strip strong,
.ad-strip span {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 18px;
}

.top-ads strong,
.ad-strip strong {
  margin-top: 20px;
  font-size: 21px;
}

.top-ads span {
  margin-top: 8px;
}

.ad-strip span {
  margin-top: 6px;
  color: #fff5d7;
}

.intro,
.quote-card {
  margin: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 66, 37, 0.06);
}

.intro h2,
.section-title h2,
.panel h2 {
  margin: 0;
  font-size: 18px;
}

.intro p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

.quick-grid {
  margin: 10px 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.quick-grid button {
  min-height: 74px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 54, 34, 0.07);
}

.quick-grid span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
}

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

.service-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.service-grid b,
.service-grid span {
  display: block;
}

.service-grid span {
  margin-top: 4px;
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -14px -14px 12px;
}

.tabs button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  font-size: 18px;
}

.tabs .active {
  color: var(--green);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--green);
}

.base-row td {
  color: #078ee0;
  font-weight: 800;
  background: #f3d7d7;
}

.same-price-bar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(4, 153, 76, 0.22);
  border-radius: 999px;
  background: #eaf8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.same-price-bar span {
  padding: 11px 16px;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.same-price-bar button {
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(4, 153, 76, 0.16);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #08a85c, #047d43);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(4, 153, 76, 0.18);
}

.same-price-bar:has(> span:only-child) {
  grid-template-columns: 1fr;
}

.quote-head,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-head strong {
  color: red;
}

.detail-price-table th:last-child,
.detail-price-table td:last-child {
  color: #e53935;
  font-weight: 800;
}

.quote-head span,
.section-title span,
.section-title a {
  color: var(--muted);
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

th {
  color: #fff;
  background: var(--green);
  padding: 9px;
}

td {
  padding: 10px 9px;
  text-align: center;
  border: 1px solid #e8eee9;
}

tbody tr:nth-child(odd) {
  background: #f3fbf6;
}

.up {
  color: #e53935;
}

.down {
  color: #07995a;
}

.change-cell {
  color: #e53935;
  font-weight: 800;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(112px, auto);
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.contact-row span,
.contact-row b,
.contact-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-row span {
  color: var(--muted);
  font-size: 14px;
}

.contact-row b {
  color: #16382e;
  text-align: right;
  font-weight: 800;
}

.contact-row em {
  color: var(--green);
  font-style: normal;
  text-align: right;
  font-weight: 800;
}

.trend-card {
  padding-bottom: 10px;
}

.trend-chart {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.ai-chain-entry {
  min-height: 190px;
}

.ai-chain-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(8, 176, 116, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 207, 124, 0.36), transparent 34%),
    linear-gradient(145deg, #f2fffb 0%, #ffffff 64%, #eefbf6 100%);
  box-shadow: 0 16px 40px rgba(0, 128, 92, 0.11);
}

.ai-chain-kicker {
  display: block;
  color: #687971;
  font-size: 13px;
}

.ai-chain-card h3 {
  margin: 8px 0 6px;
  color: #069066;
  font-size: 26px;
  line-height: 1.15;
}

.ai-chain-card p {
  margin: 0 0 14px;
  color: #596861;
  line-height: 1.7;
}

.ai-chain-card button,
.ai-chat-form button,
.ai-new-chat {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.24);
}

.ai-chain-mascot {
  position: relative;
  width: 96px;
  height: 116px;
  margin: auto;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 54% 54% 48% 48%;
  background: linear-gradient(180deg, #fff7e8, #ffffff 54%, #e8fff8);
  box-shadow: inset 0 -12px 20px rgba(17, 124, 87, 0.08), 0 12px 24px rgba(30, 98, 72, 0.16);
}

.ai-chain-mascot::before,
.ai-chain-mascot::after {
  content: "";
  position: absolute;
  top: 38px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #17382e;
}

.ai-chain-mascot::before {
  left: 28px;
}

.ai-chain-mascot::after {
  right: 28px;
}

.ai-chain-mascot span {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #10b981;
  font-weight: 900;
}

.ai-chain-mascot b {
  position: absolute;
  left: 50%;
  top: 54px;
  width: 18px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #f4a82f;
}

.ai-chain-page {
  min-height: calc(100vh - 118px);
  margin: -12px -16px -18px;
  padding: 18px 16px 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 9%, rgba(255, 220, 147, 0.32), transparent 23%),
    radial-gradient(circle at 8% 14%, rgba(168, 235, 217, 0.36), transparent 28%),
    linear-gradient(180deg, #eafff8 0%, #f8fffc 58%, #ffffff 100%);
}

.ai-detail-active .ai-chain-page {
  min-height: 100%;
  margin: 0;
}

.ai-home-shell {
  display: grid;
  gap: 14px;
}

.ai-home-top,
.ai-chain-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ai-round-menu,
.ai-mini-program-pill,
.ai-menu-pill {
  min-height: 44px;
  border: 1px solid rgba(7, 160, 114, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(35, 83, 68, 0.08);
}

.ai-round-menu {
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ai-round-menu span,
.ai-round-menu::before,
.ai-round-menu::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #07946b;
}

.ai-mini-program-pill {
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ai-mini-program-pill span {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #1f2d28 45%, transparent 50%) 0 0 / 8px 6px repeat-x;
}

.ai-mini-program-pill b {
  width: 28px;
  height: 28px;
  border: 4px solid #1f2d28;
  border-radius: 50%;
}

.ai-home-hero {
  position: relative;
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: center;
}

.ai-home-hero h3 {
  margin: 0;
  color: #078d67;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
}

.ai-home-hero p {
  margin: 10px 0 0;
  color: #61716a;
  font-size: 16px;
}

.ai-home-mascot {
  position: relative;
  width: 112px;
  height: 126px;
  justify-self: end;
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 52% 52% 46% 46%;
  background: linear-gradient(180deg, #fff7e8, #fff 52%, #e6fff6);
  box-shadow: inset 0 -14px 24px rgba(17, 124, 87, 0.08), 0 16px 30px rgba(30, 98, 72, 0.14);
}

.ai-home-mascot::before,
.ai-home-mascot::after {
  content: "";
  position: absolute;
  top: 42px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #172d26;
}

.ai-home-mascot::before {
  left: 32px;
}

.ai-home-mascot::after {
  right: 32px;
}

.ai-home-mascot span {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: #10b981;
  font-weight: 900;
}

.ai-home-mascot i {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 18px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #f4a82f;
}

.ai-chat-callout {
  position: absolute;
  left: 42%;
  bottom: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  color: #07946b;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(19, 71, 54, 0.1);
}

.ai-model-card,
.ai-today-card,
.ai-home-actions button,
.ai-hot-row button {
  border: 1px solid rgba(7, 160, 114, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(19, 71, 54, 0.07);
}

.ai-model-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
}

.ai-model-card b,
.ai-model-card small,
.ai-model-card p,
.ai-model-card span {
  display: block;
}

.ai-model-card b {
  color: #20362e;
  font-size: 17px;
}

.ai-model-card b small {
  display: inline;
  color: #66756f;
  font-size: 14px;
  font-weight: 500;
}

.ai-model-card p {
  margin: 7px 0 0;
  color: #078d67;
  font-size: 13px;
}

.ai-model-card span {
  color: #07946b;
  font-weight: 800;
  white-space: nowrap;
}

.ai-model-icon,
.ai-chart-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e1faf1;
}

.ai-model-icon::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid #07946b;
  transform: rotate(45deg);
}

.ai-chart-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 12px;
  bottom: 12px;
  height: 28px;
  background: linear-gradient(90deg, #26b88b 0 18%, transparent 18% 32%, #0fa879 32% 52%, transparent 52% 66%, #6fcf97 66% 100%);
}

.ai-chart-icon span {
  position: absolute;
  left: 11px;
  right: 10px;
  top: 14px;
  height: 22px;
  border-top: 3px solid #0fa879;
  border-right: 3px solid #0fa879;
  transform: skewY(-24deg);
}

.ai-today-card {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 78px;
  gap: 14px;
  align-items: center;
  min-height: 154px;
  padding: 18px;
  border-radius: 18px;
}

.ai-today-card h4,
.ai-section-heading {
  margin: 0;
  color: #078d67;
  font-size: 24px;
  line-height: 1.2;
}

.ai-today-card p {
  margin: 8px 0 14px;
  color: #596861;
  line-height: 1.55;
}

.ai-today-card button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.22);
}

.ai-egg-basket {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 76px;
}

.ai-egg-basket i {
  display: block;
  width: 24px;
  height: 34px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #fff5df, #f3c98f);
  box-shadow: inset -5px -7px 10px rgba(158, 94, 35, 0.12);
}

.ai-section-heading {
  margin-top: 10px;
  color: #20362e;
  font-size: 19px;
}

.ai-section-heading.compact {
  margin-top: 2px;
  font-size: 16px;
}

.ai-home-actions {
  display: grid;
  gap: 10px;
}

.ai-home-actions button {
  position: relative;
  min-height: 80px;
  display: grid;
  grid-template-columns: 54px 1fr 20px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
}

.ai-home-action-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #def8ef;
}

.ai-home-actions b {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: #20362e;
  font-size: 17px;
}

.ai-home-actions small {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  color: #77847f;
  font-size: 13px;
}

.ai-home-actions em {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  color: #9aa7a1;
  font-size: 32px;
  font-style: normal;
}

.ai-hot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.ai-hot-row button {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 18px;
  text-align: left;
}

.ai-hot-row b,
.ai-hot-row small {
  display: block;
}

.ai-hot-row b {
  color: #07946b;
  font-size: 14px;
}

.ai-hot-row small {
  margin-top: 4px;
  color: #76847e;
  font-size: 12px;
}

.ai-home-input {
  margin-top: 2px;
}

.ai-chain-top {
  margin-bottom: 18px;
}

.ai-new-chat {
  padding: 0 18px;
  color: #0c8d68;
  background: #fff;
  border: 1px solid rgba(7, 160, 114, 0.22);
  box-shadow: 0 10px 24px rgba(35, 83, 68, 0.08);
}

.ai-model-pill {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(7, 160, 114, 0.22);
  border-radius: 999px;
  color: #07946b;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.ai-model-bot {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #dff8ef;
}

.ai-menu-pill {
  width: 76px;
  display: grid;
  place-items: center;
}

.ai-menu-pill span {
  width: 30px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #1f2d28 45%, transparent 50%) 0 0 / 10px 6px repeat-x;
}

.ai-message-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-message-list {
  display: grid;
  gap: 16px;
  min-height: 260px;
}

.ai-message-row.user {
  justify-content: flex-end;
}

.ai-message-row.assistant {
  justify-content: flex-start;
}

.ai-user-avatar,
.ai-bot-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: 900;
}

.ai-user-avatar {
  color: #fff;
  background: #0c8d68;
}

.ai-bot-avatar {
  color: #07946b;
  background: #e5faf3;
  border: 1px solid rgba(7, 160, 114, 0.22);
}

.ai-bot-name {
  display: block;
  margin: 0 0 8px;
  color: #07946b;
}

.ai-assistant-message {
  min-width: 0;
  flex: 1;
}

.ai-message-bubble {
  max-width: 290px;
  padding: 16px 18px;
  border: 1px solid rgba(7, 160, 114, 0.18);
  border-radius: 18px;
  color: #48534f;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(19, 71, 54, 0.08);
  line-height: 1.75;
}

.ai-message-row.user .ai-message-bubble {
  color: #2d3c36;
  background: #eefcf7;
}

.ai-answer {
  min-height: 0;
  max-width: 308px;
  font-size: 17px;
}

.ai-mode-tag {
  display: inline-block;
  margin: 0 8px 6px 0;
  padding: 3px 8px;
  border-radius: 999px;
  color: #07815f;
  background: #ddf8ef;
  font-size: 12px;
  font-weight: 800;
}

.ai-read-button {
  display: block;
  width: max-content;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(7, 160, 114, 0.24);
  border-radius: 999px;
  color: #07946b;
  background: #fff;
  font-weight: 900;
}

.ai-waiting-text {
  margin: 6px 0 22px;
  color: #a1ada7;
  text-align: center;
  font-style: italic;
}

.ai-result-panel {
  display: grid;
  gap: 8px;
  width: min(308px, 100%);
  margin-top: 8px;
}

.ai-data-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ai-data-cards span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(7, 160, 114, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-data-cards b {
  color: #078d67;
  font-size: 18px;
}

.ai-data-cards small,
.ai-data-cards em,
.ai-run-state small {
  color: #73817b;
  font-size: 12px;
  font-style: normal;
}

.ai-indicator-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ai-indicator-strip span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0b7659;
  background: rgba(222, 248, 239, 0.86);
  font-size: 12px;
}

.ai-run-state {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #07946b;
  font-size: 12px;
}

.ai-quick-row {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ai-quick-row button {
  min-width: 132px;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid rgba(7, 160, 114, 0.18);
  border-radius: 999px;
  color: #20362e;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow: 0 10px 22px rgba(19, 71, 54, 0.06);
}

.ai-quick-row span,
.ai-quick-row small {
  display: block;
}

.ai-quick-row span {
  margin-bottom: 4px;
  color: #07946b;
  font-weight: 900;
}

.ai-quick-row small {
  color: #75837d;
  line-height: 1.4;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(7, 160, 114, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(19, 71, 54, 0.09);
}

.ai-chat-form input {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: #2c3833;
  background: transparent;
  font: inherit;
}

.ai-mic-button,
.ai-plus-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #07946b;
  background: #e0faf2;
  font-size: 28px;
  font-weight: 500;
}

.ai-mic-button::before {
  content: "";
  width: 14px;
  height: 24px;
  border: 3px solid #07946b;
  border-radius: 999px;
}

.ai-plus-button {
  color: #fff;
  background: #10b981;
}

.ai-chat-form button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.ai-disclaimer {
  margin: -8px 0 0;
  color: #96a39d;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 390px) {
  .ai-home-hero h3 {
    font-size: 38px;
  }

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

  .ai-egg-basket {
    display: none;
  }

  .ai-chat-callout {
    left: 34%;
  }
}

.trend-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trend-combo {
  padding: 10px 8px 8px;
}

.trend-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.trend-tabs span,
.trend-tabs b {
  padding: 8px 4px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  background: #f7f8f7;
}

.trend-tabs b {
  color: var(--green);
  border: 1px solid rgba(4, 153, 76, 0.24);
  background: #e8f8ef;
}

.trend-filter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.trend-filter strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: #d36c18;
  background: #faf7f2;
}

.trend-filter span {
  color: #7b332d;
  font-weight: 800;
}

.trend-filter em {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  font-style: normal;
  background: #f5f7f5;
}

.trend-grid {
  stroke: #d4ddd8;
  stroke-width: 1.5;
  stroke-dasharray: 8 8;
}

.trend-frame {
  stroke: #cbd7d1;
  stroke-width: 2;
}

.trend-axis,
.trend-axis-title {
  fill: #68746e;
  font-size: 20px;
}

.trend-axis {
  font-size: 18px;
}

.right-axis {
  text-anchor: start;
}

.left-axis {
  text-anchor: end;
}

.supply-bar {
  fill: #087f4f;
  opacity: 0.86;
}

.demand-bar {
  fill: #7bc997;
  opacity: 0.88;
}

.price-line {
  fill: none;
  stroke: #80bd38;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.supply-trend-line,
.demand-trend-line {
  fill: none;
  stroke-width: 4;
  stroke-dasharray: 18 12;
  stroke-linecap: round;
}

.supply-trend-line {
  stroke: #0d8a55;
}

.demand-trend-line {
  stroke: #45b86d;
}

.price-dot {
  fill: #fff;
  stroke: #80bd38;
  stroke-width: 3;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: -4px;
  color: #68746e;
  font-size: 13px;
}

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

.trend-legend span::before {
  content: "";
  width: 16px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
  background: var(--green);
}

.trend-legend .demand::before {
  background: #7bc997;
}

.trend-legend .price::before {
  height: 4px;
  background: #80bd38;
}

.trend-legend .supply-line::before,
.trend-legend .demand-line::before {
  height: 0;
  border-top: 3px dashed #0d8a55;
  background: transparent;
}

.trend-legend .demand-line::before {
  border-color: #45b86d;
}

.trend-date {
  font-size: 18px;
  fill: var(--muted);
  text-anchor: middle;
}

.mobile-combo-chart {
  padding: 12px;
  border: 1px solid rgba(4, 153, 76, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fcf8 0%, #fff 62%);
}

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

.combo-head strong,
.admin-combo-head strong {
  display: block;
  color: var(--deep);
  font-size: 17px;
  line-height: 1.3;
}

.combo-head span,
.admin-combo-head span,
.admin-combo-head p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.combo-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(4, 153, 76, 0.18);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  background: #ecf9f1;
}

.combo-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.combo-kpis span {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 5px 16px rgba(10, 78, 46, 0.08);
}

.combo-kpis b {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font-size: 18px;
}

.combo-svg,
.admin-combo-svg {
  width: 100%;
  height: auto;
  display: block;
}

.combo-plot-bg,
.admin-combo-plot-bg {
  fill: rgba(232, 248, 239, 0.36);
}

.combo-grid,
.admin-combo-grid {
  stroke: #dbe8df;
  stroke-width: 1.4;
  stroke-dasharray: 6 8;
}

.combo-axis,
.combo-axis-title,
.admin-combo-axis,
.admin-combo-axis-title {
  fill: #63746b;
  font-size: 17px;
}

.combo-left-axis,
.admin-combo-left-axis {
  text-anchor: end;
}

.combo-right-axis,
.admin-combo-right-axis {
  text-anchor: start;
}

.combo-bar {
  filter: drop-shadow(0 8px 10px rgba(16, 130, 76, 0.12));
}

.combo-supply-bar {
  fill: #09965a;
}

.combo-demand-bar {
  fill: #98d8a7;
}

.combo-price-line,
.admin-combo-price-line {
  fill: none;
  stroke: #0f7f47;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.combo-price-dot,
.admin-combo-price-dot {
  fill: #fff;
  stroke: #0f7f47;
  stroke-width: 4;
}

.combo-date,
.admin-combo-date {
  fill: var(--muted);
  font-size: 16px;
  text-anchor: middle;
}

.combo-legend,
.admin-combo-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.combo-legend span,
.admin-combo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.combo-legend span::before,
.admin-combo-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: #09965a;
}

.combo-legend .combo-demand::before,
.admin-combo-legend .admin-legend-demand::before {
  background: #98d8a7;
}

.combo-legend .combo-price::before,
.admin-combo-legend .admin-legend-price::before {
  height: 4px;
  border-radius: 999px;
  background: #0f7f47;
}

.admin-combo-chart {
  padding: 16px;
  border: 1px solid #dfeae3;
  border-radius: 8px;
  background: #fff;
}

.admin-combo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #edf3ef;
}

.admin-combo-head span {
  margin: 0 0 4px;
  color: var(--green);
  font-weight: 700;
}

.admin-combo-head p {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--deep);
  background: #f0faf4;
}

.admin-combo-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.admin-combo-metrics {
  display: grid;
  gap: 10px;
}

.admin-combo-metrics span {
  padding: 12px;
  border: 1px solid #e1eee6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: #f8fcfa;
}

.admin-combo-metrics b {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 22px;
}

.admin-combo-supply {
  fill: #05884f;
}

.admin-combo-demand {
  fill: #74c986;
}

.admin-combo-legend {
  justify-content: flex-end;
  margin-top: 4px;
}

.trend-analysis {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.trend-analysis h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--deep);
}

.trend-analysis p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.quote-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #f7f8f7;
}

.quote-detail-hero small,
.quote-detail-hero span,
.article-meta {
  display: block;
  color: var(--muted);
}

.quote-detail-hero strong {
  display: block;
  margin: 14px 0 24px;
  font-size: 58px;
  line-height: 1;
  color: #e53935;
}

.quote-detail-hero b {
  display: block;
  margin-bottom: 20px;
  color: #21a06c;
  text-align: right;
  font-size: 20px;
}

.quote-detail-hero div:last-child {
  padding: 12px;
  border-radius: 10px;
  background: #f6e28f;
}

.quote-detail-hero button {
  margin-top: 14px;
  border: 0;
  color: #cf7b26;
  background: transparent;
  font-size: 16px;
}

.detail-price-table th {
  background: #d7d7d7;
  color: #666;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-list button {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.article-list b,
.article-list span {
  display: block;
}

.article-list span {
  margin-top: 6px;
  color: var(--muted);
}

.trade-hall-panel {
  margin-top: 10px;
  padding-bottom: 16px;
}

.section-title.compact {
  margin: 0 0 10px;
}

.section-title.compact h2 {
  font-size: 18px;
}

.section-title.compact span {
  color: var(--muted);
  font-size: 13px;
}

.trade-hall-list .article-card {
  min-height: 68px;
}

.trade-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #006b3d 0%, #00a456 58%, #42c77d 100%);
  box-shadow: 0 16px 34px rgba(0, 111, 62, 0.18);
}

.trade-mobile-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.trade-hero span,
.trade-hero p,
.trade-hero div {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.trade-hero h2 {
  margin: 0;
  font-size: 24px;
}

.trade-hero b {
  margin: 0 4px 0 10px;
  color: #fff;
  font-size: 22px;
}

.trade-hero-stats {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 6px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.trade-quote-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid #ccebd6;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3fff7, #fff);
}

.trade-quote-card span,
.trade-quote-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.trade-quote-card strong {
  display: block;
  margin: 6px 0;
  color: #111814;
  font-size: 28px;
  font-weight: 900;
}

.trade-quote-card b {
  display: block;
  margin-top: 4px;
  color: #099154;
  font-size: 18px;
}

.trade-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.trade-action-grid button {
  min-height: 68px;
  padding: 10px 6px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  color: #087346;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.trade-action-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.trade-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.trade-mini-metrics article {
  padding: 12px;
  border: 1px solid #edf2ed;
  border-radius: 8px;
  background: #fff;
}

.trade-mini-metrics span,
.trade-mini-metrics small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.trade-mini-metrics b {
  display: block;
  margin: 5px 0;
  color: #111814;
  font-size: 18px;
}

.trade-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.trade-filter-tabs button {
  min-height: 38px;
  border: 1px solid #e2eae4;
  border-radius: 8px;
  background: #fff;
  color: #3f5148;
  font-weight: 800;
}

.trade-filter-tabs .active {
  color: #fff;
  border-color: #078c50;
  background: #078c50;
}

.trade-search-bar {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  margin-bottom: 10px;
}

.trade-search-bar input,
.trade-search-bar button {
  min-height: 42px;
  border: 1px solid #dce8df;
  border-radius: 7px;
}

.trade-search-bar input {
  min-width: 0;
  padding: 0 12px;
  background: #fff;
}

.trade-search-bar button {
  color: #fff;
  font-weight: 800;
  background: #078c50;
}

.trade-order-list {
  display: grid;
  gap: 8px;
}

.trade-order-list button {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 11px 13px;
  border: 1px solid #dfe9e2;
  border-radius: 8px;
  color: #203229;
  background: #fff;
  text-align: left;
}

.trade-order-list span {
  color: var(--muted);
  font-size: 12px;
}

.trade-order-list strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #0a8c4f;
}

.trade-step-line,
.trade-order-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.trade-step-line span,
.trade-order-progress span {
  padding: 9px 4px;
  border-bottom: 3px solid #dce5df;
  color: #718078;
  font-size: 12px;
  text-align: center;
}

.trade-step-line .active,
.trade-order-progress .active {
  color: #078c50;
  border-color: #078c50;
  font-weight: 800;
}

.trade-batch-editor {
  min-width: 0;
  margin: 2px 0;
  padding: 12px;
  border: 1px solid #dce8df;
  border-radius: 8px;
  background: #f8fbf9;
}

.trade-batch-editor legend {
  padding: 0 5px;
  color: #2d4438;
  font-size: 13px;
  font-weight: 800;
}

.trade-batch-head,
.trade-batch-row {
  display: grid;
  grid-template-columns: 70px minmax(76px, 1fr) minmax(64px, 0.8fr) 34px;
  gap: 7px;
  align-items: center;
}

.trade-batch-head {
  margin-bottom: 7px;
  color: #6a7a71;
  font-size: 11px;
  text-align: center;
}

[data-trade-batch-list] {
  display: grid;
  gap: 8px;
}

.trade-batch-row select,
.trade-batch-row input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid #d6e3da;
  border-radius: 6px;
  background: #fff;
}

.trade-batch-row button {
  width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #ead7d3;
  border-radius: 6px;
  color: #a44132;
  background: #fff;
  font-size: 20px;
}

.trade-add-batch {
  width: 100%;
  min-height: 40px;
  margin: 10px 0 0;
  border: 1px dashed #3b9c68;
  color: #087346 !important;
  background: #eff9f2 !important;
}

.trade-batch-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.trade-batch-chips span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #ebe2c9;
  border-radius: 6px;
  color: #6f5120;
  background: #fff9e9;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.trade-order-progress {
  grid-template-columns: repeat(5, 1fr);
}

.trade-order-detail article {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  background: #fff;
}

.trade-order-detail article span {
  color: var(--muted);
}

.trade-order-detail article strong {
  color: #078c50;
  font-size: 20px;
}

.trade-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.trade-card,
.trade-match-card {
  position: relative;
  padding: 16px;
  border: 1px solid #edf0ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 52, 45, 0.07);
}

.trade-card-main {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  min-width: 0;
}

.trade-egg-visual {
  width: 46px;
  height: 58px;
  border-radius: 52% 48% 46% 54% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 35% 24%, #fff2d7, #e58d52 48%, #b96d38 100%);
  box-shadow: inset -8px -12px 18px rgba(113, 62, 22, 0.18), 0 8px 16px rgba(168, 91, 36, 0.18);
}

.trade-card h3 {
  margin: 0 72px 10px 0;
  color: #1f2d28;
  font-size: 17px;
}

.trade-subline {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
}

.trade-status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0a7f52;
  background: #ecf8ef;
  font-size: 12px;
  font-weight: 800;
}

.trade-status.orange {
  color: #c65a08;
  background: #fff1df;
}

.trade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.trade-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  color: #087346;
  background: #eaf8ef;
  font-size: 12px;
  font-weight: 800;
}

.trade-meta,
.trade-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.trade-meta span,
.trade-meta b,
.trade-kpis span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: #fff7df;
  color: #67543a;
  font-size: 13px;
}

.trade-kpis b {
  margin-right: 3px;
  color: #d55d10;
  font-size: 18px;
}

.trade-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.trade-card-footer button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #078c50;
  font-weight: 900;
}

.trade-card p,
.trade-match-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.trade-match-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.trade-match-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.trade-match-card > strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #3e7b45;
}

.trade-match-card div b,
.trade-match-card div span {
  display: block;
}

.trade-progress {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ed;
}

.trade-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #099154;
}

.login-entry-panel {
  display: grid;
  gap: 14px;
}

.login-entry-hero {
  padding: 20px 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00, #f5a623);
  box-shadow: 0 12px 28px rgba(245, 166, 35, 0.2);
}

.login-entry-hero span,
.login-entry-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.login-entry-hero h3 {
  margin: 6px 0;
  font-size: 26px;
}

.login-entry-grid {
  display: grid;
  gap: 10px;
}

.platform-user-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dce9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 52, 45, 0.06);
}

.platform-user-heading b,
.platform-user-heading span {
  display: block;
}

.platform-user-heading b {
  color: #164c31;
  font-size: 17px;
}

.platform-user-heading span,
.platform-user-form small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.platform-user-form label {
  display: grid;
  gap: 5px;
  color: #3e5148;
  font-size: 13px;
  font-weight: 700;
}

.platform-user-form input,
.platform-user-form select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8e3dc;
  border-radius: 6px;
  color: #1f2d28;
  background: #fbfdfb;
}

.platform-user-form button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  background: #0b9250;
}

.login-entry-grid button,
.login-entry-grid a {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #f0dfb3;
  border-radius: 8px;
  color: #1f2d28;
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 52, 45, 0.07);
  text-align: left;
  text-decoration: none;
}

.login-entry-grid b {
  color: #f47a00;
  font-size: 17px;
}

.login-entry-grid span {
  color: var(--muted);
  font-size: 13px;
}

.trade-admin-hero {
  background: linear-gradient(180deg, #fffaf0, #fff);
}

.trade-page-shell {
  display: grid;
  gap: 16px;
  padding-top: 14px;
}

.trade-page-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #e1eae4;
  border-radius: 8px;
  background: #fff;
}

.trade-page-header span,
.trade-page-header p {
  color: #6b7b72;
  font-size: 12px;
}

.trade-page-header h2 {
  margin: 3px 0;
  color: #14241c;
  font-size: 22px;
}

.trade-page-header p {
  margin: 0;
}

.trade-page-header a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 7px;
  color: #fff;
  background: #078c50;
  text-decoration: none;
}

.trade-entry-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.trade-entry-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #526259;
  font-size: 13px;
  font-weight: 700;
}

.trade-entry-form input,
.trade-entry-form select,
.trade-entry-form button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid #dce6df;
  border-radius: 7px;
}

.trade-admin-batch-editor {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e5dc;
  border-radius: 8px;
  background: #f6faf7;
}

.trade-admin-batch-editor legend {
  padding: 0 6px;
  color: #2d4639;
  font-size: 13px;
  font-weight: 800;
}

.trade-admin-batch-head,
.trade-admin-batch-row {
  display: grid;
  grid-template-columns: 120px minmax(120px, 1fr) minmax(100px, 0.8fr) 40px;
  gap: 9px;
  align-items: center;
}

.trade-admin-batch-head {
  margin-bottom: 7px;
  color: #6b7d72;
  font-size: 12px;
  text-align: center;
}

[data-trade-admin-batch-list] {
  display: grid;
  gap: 8px;
}

.trade-entry-form .trade-admin-batch-row button {
  min-height: 36px;
  padding: 0;
  border-color: #ead6d1;
  color: #a14335;
  background: #fff;
  font-size: 18px;
}

.trade-entry-form [data-trade-admin-add-batch] {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  border: 1px dashed #3a9b67;
  color: #087346;
  background: #ebf7ee;
}

.trade-admin-batch-summary {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.trade-admin-batch-summary span {
  color: #75541e;
  font-size: 12px;
  white-space: nowrap;
}

.trade-entry-form input,
.trade-entry-form select {
  padding: 0 10px;
  background: #fff;
}

.trade-entry-form button {
  align-self: end;
  padding: 0 14px;
  color: #fff;
  font-weight: 800;
  background: #078c50;
}

.trade-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.trade-match-management {
  display: grid;
  gap: 10px;
}

.trade-match-management > article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  background: #fff;
}

.trade-match-management > article > div:last-child {
  display: flex;
  gap: 8px;
}

.trade-match-management select,
.trade-match-management button {
  min-height: 36px;
  border-radius: 6px;
}

.trade-match-management button {
  border: 0;
  padding: 0 10px;
  color: #fff;
  background: #078c50;
}

.trade-admin-grid {
  align-items: start;
}

.trade-form {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.trade-form button {
  grid-column: 1 / -1;
}

.trade-admin-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 120px);
}

.trade-admin-nav {
  padding: 18px 12px;
  border-radius: 8px;
  color: #e9fff3;
  background: linear-gradient(180deg, #003d2b, #00683f);
  box-shadow: 0 14px 34px rgba(0, 65, 39, 0.18);
}

.trade-admin-nav b {
  display: block;
  margin: 0 8px 14px;
  color: #fff;
  font-size: 17px;
}

.trade-admin-nav span {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-top: 6px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.trade-admin-nav .active {
  color: #fff;
  background: #09a85c;
}

.trade-admin-main {
  min-width: 0;
}

.trade-admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.trade-admin-topbar h2 {
  margin: 0;
  color: #111814;
  font-size: 24px;
}

.trade-admin-topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.trade-admin-search {
  min-width: 360px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  color: #6a7a70;
  background: #fff;
}

.trade-admin-search kbd {
  padding: 3px 7px;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
  color: #4d5d54;
  background: #f8faf8;
}

.trade-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.trade-dashboard-metric {
  position: relative;
  min-height: 108px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px 16px 16px 68px;
  border: 1px solid #e7eee9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 58, 39, 0.06);
}

.trade-dashboard-metric::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0aa85f, #007f49);
}

.trade-dashboard-metric span,
.trade-dashboard-metric small {
  color: #66776d;
  font-size: 13px;
}

.trade-dashboard-metric strong {
  color: #101814;
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.trade-dashboard-metric small {
  color: #079251;
}

.trade-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.trade-admin-left,
.trade-admin-right {
  display: grid;
  gap: 16px;
}

.trade-admin-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) 100px;
  gap: 10px;
  margin-bottom: 12px;
}

.trade-admin-filters select,
.trade-admin-filters button {
  min-height: 38px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #fff;
}

.trade-admin-filters button,
.trade-admin-table button {
  border: 0;
  color: #fff;
  background: #078c50;
  font-weight: 800;
}

.trade-type-badge,
.trade-match-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  color: #087346;
  background: #eaf8ef;
  font-size: 12px;
  font-weight: 800;
}

.trade-admin-table td b,
.trade-admin-table td small {
  display: block;
}

.trade-admin-table td small {
  margin-top: 4px;
  color: var(--muted);
}

.trade-region-list,
.trade-admin-match-list,
.trade-admin-queue {
  display: grid;
  gap: 12px;
}

.trade-region-row {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.trade-region-row div {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ed;
}

.trade-region-row i,
.trade-region-row b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.trade-region-row i {
  background: #079251;
}

.trade-region-row b {
  opacity: 0.72;
  background: #287be8;
}

.trade-admin-match-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid #edf0ed;
  border-radius: 8px;
  background: #fff;
}

.trade-admin-match-card > strong {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #079251;
  background: #eaf8ef;
  font-weight: 900;
}

.trade-admin-match-card b,
.trade-admin-match-card span {
  display: block;
}

.trade-admin-match-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.trade-admin-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ed;
}

.trade-admin-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #079251;
}

.trade-admin-queue article {
  position: relative;
  padding: 12px 58px 12px 12px;
  border: 1px solid #edf0ed;
  border-radius: 8px;
  background: #fff;
}

.trade-admin-queue b,
.trade-admin-queue span {
  display: block;
}

.trade-admin-queue span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.trade-admin-queue strong {
  position: absolute;
  top: 14px;
  right: 12px;
  color: #e35a17;
}

.compact-table th,
.compact-table td {
  padding: 10px 8px;
}

@media (max-width: 1240px) {
  .trade-admin-shell,
  .trade-admin-layout {
    grid-template-columns: 1fr;
  }

  .trade-admin-nav {
    display: none;
  }

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

  .trade-entry-form {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

.same-price-bar button {
  white-space: nowrap;
}

.article-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.about-content h3 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 18px;
}

.about-content p {
  margin: 0;
  line-height: 1.8;
  color: var(--text);
}

.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 70px;
  margin-top: auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
}

.tabbar button {
  border: 0;
  background: transparent;
  color: #7a8580;
}

.tabbar .active {
  color: var(--green);
  font-weight: 800;
}

.admin-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  transition: grid-template-columns 0.2s ease;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: #f4f8f5;
}

.login-active .login-screen {
  display: grid;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  overflow: hidden;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(12, 72, 45, 0.14);
}

.login-visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 44px 48px;
  color: #073d28;
  background:
    linear-gradient(180deg, rgba(233, 255, 241, 0.18), rgba(211, 245, 222, 0.82)),
    url("./assets/hero-eggs.png") center bottom / cover no-repeat;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(237, 255, 243, 0.95) 0%, rgba(237, 255, 243, 0.7) 50%, rgba(237, 255, 243, 0.12) 100%);
}

.login-card {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  padding: 52px 42px;
  background: #fff;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(17, 143, 80, 0.12), 0 10px 28px rgba(0, 42, 25, 0.12);
}

.login-brand b,
.login-brand small {
  display: block;
  color: #073d28;
}

.login-brand b {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-brand small {
  margin-top: 4px;
  font-size: 15px;
  color: #527263;
}

.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-top: 58px;
}

.login-visual-copy > span,
.login-card-heading > span {
  color: #078845;
  font-size: 12px;
  font-weight: 800;
}

.login-visual-copy h1 {
  margin: 12px 0 16px;
  color: #073d28;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: 0;
}

.login-visual-copy p {
  max-width: 420px;
  color: #426858;
  font-size: 15px;
  line-height: 1.8;
}

.login-capabilities {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-top: auto;
  color: #176742;
  font-weight: 700;
}

.login-capabilities span::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #f29b19;
}

.login-card-heading h2 {
  margin: 8px 0;
  color: #17241e;
  font-size: 28px;
  letter-spacing: 0;
}

.login-card-heading p,
.login-card small {
  color: #708078;
}

.login-card label {
  display: block;
  margin-top: 20px;
  color: #34473e;
  font-size: 13px;
  font-weight: 700;
}

.login-card input,
.login-card button {
  width: 100%;
}

.login-card input {
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #d9e4dd;
  border-radius: 6px;
  color: #17241e;
  background: #fbfdfb;
  outline: none;
}

.login-card input::placeholder {
  color: #9aa7a0;
}

.login-card input:focus {
  border-color: #15945a;
  box-shadow: 0 0 0 3px rgba(21, 148, 90, 0.1);
}

.login-card button {
  min-height: 46px;
  margin-top: 24px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: #0b9250;
  box-shadow: 0 10px 22px rgba(11, 146, 80, 0.18);
  cursor: pointer;
}

.login-card > small {
  display: block;
  min-height: 20px;
  margin-top: 10px;
  text-align: center;
}

.login-user-entry {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf1ee;
  color: #7b8982;
  font-size: 13px;
}

.login-user-entry a {
  color: #078845;
  font-weight: 700;
  text-decoration: none;
}

.admin-page.sidebar-collapsed {
  grid-template-columns: 78px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  color: #e8fff5;
  background: linear-gradient(180deg, #075d3b 0%, #064b33 62%, #043c2b 100%);
  box-shadow: 8px 0 24px rgba(9, 57, 42, 0.12);
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 800;
}

.admin-brand span {
  min-width: 0;
}

.admin-brand b,
.admin-brand small {
  display: block;
  white-space: nowrap;
}

.admin-brand b {
  font-size: 15px;
}

.admin-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.sidebar-collapse {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.sidebar-collapse span {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.sidebar-collapse b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar a {
  display: block;
  margin: 4px 0;
  padding: 9px 14px;
  border-radius: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

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

.sidebar .top-link {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-section {
  margin-top: 4px;
}

.sidebar-group {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 2px;
  padding: 10px;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.sidebar-group span {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.sidebar-section.open .sidebar-group span {
  transform: rotate(225deg) translate(-2px, -2px);
}

.sidebar-submenu {
  display: none;
}

.sidebar-section.open .sidebar-submenu {
  display: block;
}

.sidebar .active {
  color: #fff;
  background: #0b9250;
  box-shadow: inset 3px 0 0 #f5b13d;
}

.sidebar-collapsed .sidebar {
  padding: 18px 10px;
}

.sidebar-collapsed .admin-brand {
  justify-content: center;
  margin-bottom: 16px;
}

.sidebar-collapsed .admin-brand span,
.sidebar-collapsed .sidebar-collapse b,
.sidebar-collapsed .sidebar-group span,
.sidebar-collapsed .sidebar-submenu {
  display: none;
}

.sidebar-collapsed .sidebar-collapse {
  justify-content: center;
  padding: 11px 0;
}

.sidebar-collapsed .sidebar-collapse span {
  transform: rotate(225deg);
}

.sidebar-collapsed .sidebar a,
.sidebar-collapsed .sidebar-group {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
}

.sidebar-collapsed .sidebar a::before,
.sidebar-collapsed .sidebar-group::before {
  content: attr(data-short);
  font-size: 16px;
  font-weight: 800;
}

.sidebar-collapsed .sidebar .top-link {
  margin-bottom: 10px;
}

.admin-main {
  padding: 0 22px 28px;
  min-width: 0;
  overflow-x: hidden;
}

.admin-view {
  display: none;
}

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

.admin-view.active > * {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.admin-view > .panel,
.admin-view > .tables-grid,
.admin-view > .admin-layout {
  margin-top: 14px;
}

.admin-top {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 0 2px;
  border-bottom: 1px solid #e8eeea;
  color: var(--muted);
  background: rgba(248, 250, 249, 0.94);
  backdrop-filter: blur(10px);
}

.admin-userbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-userbar button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
}

.api-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid var(--line);
  background: #fff;
}

.api-status.online {
  color: #157347;
  border-color: #b7e4c7;
  background: #ecfdf3;
}

.api-status.offline {
  color: #946200;
  border-color: #f7d58a;
  background: #fff8e6;
}

.api-error {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b42318;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.metric-grid article,
.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 45, 32, 0.05);
  overflow-x: auto;
}

.platform-api-config-table input[data-jm-api-endpoint] {
  min-width: 360px;
}

.platform-api-result-meta {
  margin: 12px 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbf5;
  font-size: 13px;
}

.ai-assistant-form,
.ai-config-form {
  display: grid;
  gap: 14px;
}

.ai-assistant-form > label,
.ai-config-form > label {
  display: grid;
  gap: 6px;
  color: #345047;
  font-size: 14px;
}

.ai-assistant-form textarea,
.ai-config-form textarea,
.ai-config-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e5df;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: #17382e;
  font: inherit;
}

.ai-assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.75fr) minmax(260px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

.ai-assistant-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.ai-assistant-grid b {
  display: block;
  margin-bottom: 8px;
  color: #17382e;
}

.ai-assistant-grid pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  color: #294b40;
  font-family: inherit;
}

.ai-prediction-cards {
  display: grid;
  gap: 10px;
}

.ai-config-summary,
.ai-diagnostics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f8fbf9;
  color: #294b40;
}

.ai-config-summary span,
.ai-diagnostics span {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.ai-config-summary .online,
.ai-diagnostics .online {
  color: #047857;
  background: #dcfce7;
}

.ai-config-summary .offline,
.ai-diagnostics .offline {
  color: #946200;
  background: #fff4cc;
}

.ai-config-summary b,
.ai-config-summary small,
.ai-config-summary em,
.ai-diagnostics small {
  color: #4d625a;
  font-style: normal;
}

.ai-diagnostics {
  display: grid;
  align-items: start;
  gap: 7px;
}

.ai-diagnostics .error {
  color: #b42318;
}

.ai-indicator-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-indicator-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #fff;
}

.ai-indicator-card span,
.ai-indicator-card small {
  color: var(--muted);
  font-size: 12px;
}

.ai-indicator-card b {
  margin: 0;
  color: #07815f;
  font-size: 18px;
}

.ai-prediction-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #fff;
}

.ai-prediction-card span,
.ai-prediction-card small {
  color: var(--muted);
  font-size: 12px;
}

.ai-prediction-card b {
  margin: 0;
  color: #163d31;
  font-size: 20px;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.admin-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2fr 0.9fr 1fr;
  gap: 12px;
}

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

.line-chart svg {
  width: 100%;
  height: auto;
}

.line-chart .trend-combo {
  min-height: 360px;
}

.line-chart .admin-combo-chart {
  min-height: 360px;
}

.donut {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#e83c3c 0 52%, #10a862 52% 85%, #cfd7d2 85% 100%);
}

.donut span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
}

.legend {
  list-style: none;
  padding: 0;
  color: var(--muted);
}

.legend b {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

.red {
  background: #e83c3c;
}

.green {
  background: #10a862;
}

.gray {
  background: #cfd7d2;
}

.action-panel {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.action-panel .panel-head {
  flex: 1;
  margin: 0;
}

.action-panel button,
.action-panel a,
.admin-actions button,
.admin-actions a {
  color: #fff;
  background: var(--green);
}

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

.admin-actions button,
.admin-actions a {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.tables-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-stack {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.quote-form,
.content-form,
.mini-form,
.ad-form,
.factor-grid {
  display: grid;
  gap: 10px;
}

.quote-form {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.manual-collect-form,
.manual-entry-form {
  display: grid;
  gap: 14px;
}

.manual-form-row {
  display: grid;
  gap: 12px;
}

.manual-form-row-4 {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.function-premium-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #fbfefc;
}

.function-premium-box > b {
  display: block;
  margin-bottom: 10px;
  color: #153f31;
}

.function-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.function-premium-grid label {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(88px, 1fr);
  gap: 6px;
  align-items: center;
  margin: 0;
  color: #294b40;
  white-space: nowrap;
}

.function-premium-grid input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #cfe2d8;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.function-premium-box small {
  display: block;
  margin-top: 10px;
  color: #496158;
  line-height: 1.6;
}

.manual-collect-form label,
.manual-entry-form label {
  display: grid;
  gap: 6px;
  color: #345047;
  font-size: 14px;
}

.manual-collect-form input,
.manual-collect-form select,
.manual-collect-form textarea,
.manual-entry-form input,
.manual-entry-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e5df;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: #17382e;
  font: inherit;
}

.manual-collect-form textarea {
  resize: vertical;
}

.manual-wide-field {
  width: 100%;
}

.manual-rule-box {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: #eff9f4;
  color: #426057;
}

.manual-rule-box b {
  color: #087f48;
}

.manual-flow-actions,
.manual-entry-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual-flow-actions span {
  margin-right: auto;
  color: #17382e;
  font-weight: 700;
}

.manual-flow-actions button,
.manual-entry-form button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  color: #fff;
  background: var(--green);
  font: inherit;
  cursor: pointer;
}

.manual-entry-form > div:not(.manual-entry-footer) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.manual-entry-footer input {
  flex: 1;
}

.quote-publish-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 14px 0 2px;
}

.quote-publish-bar span {
  color: #60776f;
  font-size: 14px;
}

.quote-publish-bar button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  color: #fff;
  background: var(--green);
  font: inherit;
  cursor: pointer;
}

.quote-entry-form {
  display: grid;
  gap: 10px;
}

.content-form {
  grid-template-columns: minmax(220px, 1fr) 120px 150px;
  align-items: stretch;
}

.content-form textarea,
.content-form .editor-toolbar {
  grid-column: 1 / -1;
}

.announcement-form {
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) minmax(280px, 1.2fr) 120px 120px;
  margin-bottom: 12px;
}

.announcement-form textarea,
.announcement-form .editor-toolbar {
  grid-column: auto;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #d8e9df;
  border-radius: 8px;
  background: #f4fbf7;
}

.editor-toolbar button {
  min-height: 32px;
  border: 1px solid rgba(4, 153, 76, 0.22);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--green);
  background: #fff;
  font-size: 13px;
}

.mini-form {
  grid-template-columns: 120px 1fr 1fr 110px;
  margin-bottom: 12px;
}

.ad-form {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d8e9df;
  border-radius: 10px;
  background: #f7fcf9;
}

.ad-form .form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.ad-form .form-row:last-child {
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.8fr) minmax(220px, 1.2fr) minmax(160px, 1fr) 120px;
}

.ad-form label {
  display: grid;
  gap: 6px;
  color: #345047;
  font-size: 13px;
}

.ad-form .wide {
  grid-column: span 2;
}

.factor-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.factor-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.quote-form input,
.quote-form select,
.quote-entry-form input,
.quote-entry-form textarea,
.content-form input,
.content-form textarea,
.content-form select,
.mini-form input,
.mini-form select,
.ad-form input,
.ad-form select,
.factor-grid input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.quote-form button,
.quote-entry-form button,
.content-form button,
.mini-form button,
.ad-form button,
.factor-grid button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  padding: 10px 12px;
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.filter-row select,
.filter-row button {
  min-width: 160px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.filter-row button {
  color: #fff;
  border: 0;
  background: var(--green);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-list div {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 4px 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.source-list span {
  color: var(--green);
  text-align: right;
}

.source-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 10px;
}

.health-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf8;
}

.health-grid b,
.health-grid span {
  display: block;
}

.health-grid b {
  color: var(--green);
  font-size: 22px;
}

.health-grid span,
.health-issues {
  color: var(--muted);
}

.health-issues p {
  margin: 10px 0 0;
}

.admin-table th,
.admin-table td {
  padding: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.admin-table {
  min-width: 720px;
}

.function-matrix-table {
  min-width: 720px;
}

.quote-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 14px;
}

.function-product-cell {
  vertical-align: middle;
  font-weight: 800;
  color: var(--deep);
  background: #f6fbf7;
}

.function-weight-cell small,
.function-source-line {
  display: block;
  margin-top: 3px;
  color: #698078;
  font-size: 12px;
  line-height: 1.35;
}

.function-weight-main {
  font-weight: 700;
  color: #17382e;
}

.function-group-start td {
  border-top: 2px solid #cfe6d8;
}

.function-matrix-empty {
  color: var(--muted);
}

.function-matrix-table td {
  vertical-align: middle;
}

.function-matrix-table input {
  width: 92px;
}

.function-matrix-table th,
.function-matrix-table td {
  padding: 8px 10px;
}

.function-matrix-table thead th {
  background: #17a85a;
  color: #fff;
}

.function-matrix-table tbody tr:nth-child(even) td {
  background: #f7fbf8;
}

.function-matrix-table .change-cell {
  color: #d7261e;
  font-weight: 700;
}

.admin-table input {
  width: 76px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.admin-table select {
  width: 72px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.article-editor-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.article-edit-form {
  padding: 12px;
  border: 1px solid #d8e9df;
  border-radius: 8px;
  background: #f7fcf9;
}

.article-edit-form input[name="title"],
.article-edit-form textarea,
.article-edit-form .editor-toolbar {
  grid-column: 1 / -1;
}

.announcement-form {
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) 130px 110px 100px 110px;
}

.announcement-form textarea,
.announcement-form .editor-toolbar {
  grid-column: 1 / -1;
}

#announcementRows input,
#adRows input,
#historyArticleRows input {
  width: min(220px, 100%);
  text-align: left;
}

.detail-ads .ad-link,
.top-ads .ad-link,
.ad-strip .ad-link {
  position: relative;
  display: block;
  width: 100%;
  min-height: 132px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #fff6df;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.detail-ads .ad-link {
  min-height: 128px;
}

.detail-ads .ad-link::after,
.top-ads .ad-link::after,
.ad-strip .ad-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(223, 75, 16, 0.92), rgba(223, 75, 16, 0.05));
}

.detail-ads .ad-link img,
.top-ads .ad-link img,
.ad-strip .ad-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-ads .ad-link strong,
.detail-ads .ad-link span,
.top-ads .ad-link strong,
.top-ads .ad-link span,
.ad-strip .ad-link strong,
.ad-strip .ad-link span {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 18px;
}

.detail-ads .ad-link strong,
.top-ads .ad-link strong,
.ad-strip .ad-link strong {
  margin-top: 20px;
  font-size: 21px;
}

.detail-body:has(.premium-detail),
.detail-body:has(.quote-history-detail) {
  border: 0;
  background: #fff7df;
  box-shadow: inset 0 0 0 1px #ead7a0, 0 14px 30px rgba(126, 83, 25, 0.08);
}

.article-list {
  gap: 12px;
}

.article-card {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 52, 45, 0.08);
  color: #1c2420;
  text-align: left;
  cursor: pointer;
}

.article-card-main {
  min-width: 0;
}

.article-card b {
  display: -webkit-box;
  overflow: hidden;
  color: #111814;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-card small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: #8d9691;
  font-size: 13px;
}

.article-card small i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #b94e45;
  font-size: 11px;
  font-style: normal;
}

.article-card small em {
  margin-left: auto;
  font-style: normal;
  white-space: nowrap;
}

.article-tag,
.premium-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  color: #ffe8ae;
  background: #6b3b06;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.premium-detail,
.quote-history-detail {
  position: relative;
  padding: 22px 18px;
  border: 1px solid #dfc783;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf5, #fff7e6);
  color: #6a430a;
}

.premium-detail .premium-badge {
  width: fit-content;
  margin: 0 auto 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(100, 52, 7, 0.22);
}

.article-title {
  color: #6a430a;
  line-height: 1.35;
  font-weight: 900;
}

.article-meta {
  display: flex;
  gap: 14px;
  color: #8f8a7a;
  font-size: 14px;
}

.article-summary {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #ecd9a3;
  border-radius: 8px;
  background: #fffaf0;
  color: #7b5a21;
  line-height: 1.7;
}

.article-content {
  margin-top: 12px;
  color: #67543a;
  font-size: 15px;
  line-height: 1.85;
}

.article-content h4 {
  margin: 16px 0 8px;
  color: #6a430a;
  font-size: 18px;
}

.mall-loading {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

.mall-console {
  display: grid;
  gap: 12px;
}

.mall-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  color: #16372b;
  background: linear-gradient(135deg, #fff7d8, #e7f9ed);
  box-shadow: inset 0 0 0 1px rgba(4, 153, 76, 0.12);
}

.mall-hero span,
.mall-hero p,
.mall-hero-meta small {
  color: #5d6f66;
}

.mall-hero h3 {
  margin: 8px 0;
  color: #063b2d;
  font-size: 24px;
  line-height: 1.15;
}

.mall-hero-meta {
  align-self: stretch;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.mall-hero-meta b {
  color: #de5d11;
  font-size: 20px;
}

.mall-grid {
  display: grid;
  gap: 12px;
}

.mall-panel {
  padding: 14px;
  border: 1px solid #e5ecd9;
  border-radius: 8px;
  background: #fff;
}

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

.mall-panel-head h4 {
  margin: 0;
  color: #083e30;
  font-size: 16px;
}

.mall-panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.mall-add-code {
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed #f2b342;
  border-radius: 8px;
  color: #9c6205;
  background: #fffaf0;
  cursor: pointer;
  font-weight: 900;
}

.mall-chip-row,
.mall-grade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mall-chip,
.mall-grade {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cfe6d8;
  border-radius: 8px;
  color: #245242;
  background: #f8fcfa;
  cursor: pointer;
}

.mall-chip.active,
.mall-grade.active {
  border-color: #04994c;
  color: #fff;
  background: #04994c;
}

.mall-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mall-table th,
.mall-table td {
  padding: 8px 6px;
  border: 1px solid #ecedd9;
  text-align: center;
}

.mall-table thead th {
  color: #5f4e1d;
  background: #f6df88;
}

.mall-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.mall-table tbody tr:nth-child(even) td {
  background: #fff9df;
}

.mall-table input {
  width: 68px;
  min-height: 34px;
  border: 1px solid #d8e5dd;
  border-radius: 6px;
  text-align: center;
}

.mall-form {
  display: grid;
  gap: 10px;
}

.mall-form label {
  display: grid;
  gap: 5px;
  color: #53625c;
  font-size: 13px;
}

.mall-form input,
.mall-form select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #fff;
}

.mall-form button,
.mall-operate-actions button,
.mall-config-row button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #04994c;
  cursor: pointer;
  font-weight: 800;
}

.mall-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.mall-summary span {
  padding: 10px;
  border-radius: 8px;
  background: #f5faf7;
  color: #5f6a64;
  text-align: center;
}

.mall-summary b {
  display: block;
  color: #de5d11;
  font-size: 21px;
}

.mall-result {
  min-height: 58px;
  padding: 12px;
  border: 1px dashed #d8c578;
  border-radius: 8px;
  background: #fff9df;
  color: #71520e;
}

.mall-result b,
.mall-result small,
.mall-result span {
  display: block;
}

.mall-shop {
  gap: 14px;
}

.mall-shop-hero {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #063b2d;
}

.mall-shop-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.mall-shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 112, 55, 0.92), rgba(3, 112, 55, 0.42), rgba(3, 112, 55, 0.04));
}

.mall-shop-hero div {
  position: relative;
  z-index: 1;
  max-width: 280px;
  padding: 28px 22px;
}

.mall-shop-hero span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.mall-shop-hero h3 {
  margin: 12px 0 8px;
  font-size: 34px;
  line-height: 1.06;
}

.mall-shop-hero p {
  margin: 0;
  color: #f7ffe9;
  font-weight: 700;
}

.mall-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mall-flow span {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid #dfeee5;
  border-radius: 10px;
  color: #617269;
  background: #fff;
  font-weight: 900;
}

.mall-flow span.active {
  color: #fff;
  border-color: #05884f;
  background: linear-gradient(180deg, #18ae62, #04994c);
}

.mall-flow b {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.mall-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.mall-product-card {
  min-width: 0;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid #dfe8dd;
  border-radius: 10px;
  color: #245242;
  background: linear-gradient(180deg, #fff, #fff9e5);
  cursor: pointer;
}

.mall-product-card.active {
  border-color: #04994c;
  box-shadow: inset 0 0 0 2px rgba(4, 153, 76, 0.22), 0 10px 22px rgba(4, 153, 76, 0.1);
}

.mall-product-card b,
.mall-product-card small {
  display: block;
}

.mall-product-card small {
  color: #df7412;
  font-weight: 800;
}

.mall-product-egg {
  width: 56px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff6db 0 18%, transparent 19%),
    linear-gradient(135deg, #f8c77f, #d97825);
  box-shadow: -20px 8px 0 -5px #f6d6a0, 20px 8px 0 -5px #eaa15a;
}

.mall-panel-head.compact {
  margin-top: 8px;
}

.mall-selected,
.mall-selected-items,
.mall-table-tip,
.mall-total-line {
  padding: 12px;
  border: 1px solid #f0dfb3;
  border-radius: 8px;
  background: #fffaf0;
  color: #67543a;
}

.mall-selected b,
.mall-selected span,
.mall-selected-items b,
.mall-selected-items span {
  display: block;
}

.mall-selected span,
.mall-selected-items span,
.mall-table-tip {
  margin-top: 5px;
  line-height: 1.65;
  font-size: 13px;
}

.mall-order-table {
  min-width: 0;
}

.mall-order-table th {
  background: #fff3c4;
  color: #5f4e1d;
}

.mall-order-table th,
.mall-order-table td {
  width: 25%;
}

.mall-order-table td:nth-child(3) input {
  width: min(86px, 100%);
}

.mall-quote-price {
  position: relative;
  color: #df7412;
  font-weight: 800;
}

.mall-row-remove {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #9c6205;
  background: #fff0c8;
  cursor: pointer;
  font-weight: 900;
}

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

.mall-summary span {
  border: 1px solid #edf2ea;
  background: linear-gradient(180deg, #fff, #f7fbf8);
}

.mall-deposit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.mall-vehicle-tip,
.mall-register-tip {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid #f0dfb3;
  border-radius: 8px;
  background: #fffaf0;
  color: #67543a;
  font-size: 13px;
  line-height: 1.6;
}

.mall-deposit {
  min-height: 58px;
  border: 1px solid #dce7df;
  border-radius: 10px;
  color: #5e5131;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
}

.mall-deposit.active {
  color: #047d43;
  border-color: #04994c;
  background: #effaf3;
  box-shadow: inset 0 0 0 2px rgba(4, 153, 76, 0.16);
}

.mall-total-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.mall-total-line b {
  color: #df7412;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.mall-total-line em {
  font-style: normal;
}

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

.mall-form button {
  min-height: 48px;
  margin-top: 2px;
  background: linear-gradient(180deg, #18ae62, #04994c);
  box-shadow: 0 10px 22px rgba(4, 153, 76, 0.18);
}

.mall-code-sheet {
  border-color: #d8e9df;
  background: linear-gradient(180deg, #fff, #f6fcf8);
}

.mall-code-sheet.active {
  border-color: #04994c;
}

.mall-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, #04994c, #0b7d45);
}

.mall-sheet-lines {
  display: grid;
  gap: 8px;
  color: #2d453a;
}

.mall-sheet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mall-sheet-actions button {
  min-height: 42px;
  border: 1px solid #cfe6d8;
  border-radius: 8px;
  color: #047d43;
  background: #fff;
  font-weight: 800;
}

.mall-order-flow {
  display: grid;
  gap: 12px;
}

.mall-flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mall-flow-track span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #dfeee5;
  border-radius: 8px;
  color: #617269;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.mall-flow-track span.done,
.mall-flow-track span.active {
  color: #fff;
  border-color: #04994c;
  background: #04994c;
}

.mall-flow-track span.active {
  background: #df7412;
  border-color: #df7412;
}

.mall-module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mall-module-tabs span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  color: #245242;
  background: #f8fcfa;
  font-weight: 700;
}

.mall-admin-grid {
  align-items: start;
}

.mall-admin-table input,
.mall-admin-table select,
.mall-operate-grid input,
.mall-operate-grid select,
.mall-operate-grid textarea,
.mall-config-row input {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #d9e6dd;
  border-radius: 6px;
  background: #fff;
}

.mall-admin-table small {
  display: block;
  margin-top: 4px;
  color: #77857e;
  font-size: 12px;
}

.mall-price-table {
  display: block;
  max-height: 560px;
  overflow: auto;
}

.mall-price-sync-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #52645b;
  font-size: 13px;
}

.mall-price-sync-bar button {
  padding: 0 14px;
}

.mall-price-sync-bar span {
  flex: 1 1 260px;
}

.mall-price-collect-form {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #dde8df;
  border-radius: 8px;
  background: #f8fbf6;
}

.mall-operate-grid,
.mall-config-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mall-operate-grid label,
.mall-config-row label {
  display: grid;
  gap: 5px;
  color: #52645b;
  font-weight: 700;
}

.mall-operate-grid .wide {
  grid-column: 1 / -1;
}

.mall-operate-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mall-operate-actions button {
  padding: 0 14px;
}

.mall-config-row button {
  padding: 0 16px;
}

.article-content p {
  margin: 8px 0;
}

.article-content strong {
  color: #4c2c04;
}

.article-point::before {
  content: "✓";
  margin-right: 8px;
  color: #0b9b55;
  font-weight: 900;
}

.article-space {
  height: 10px;
}

.role-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.role-form input,
.role-form textarea {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-grid,
.role-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: normal;
}

.permission-grid label,
.role-checks label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid #dcebe2;
  border-radius: 999px;
  color: var(--deep);
  background: #f7fcf9;
  white-space: nowrap;
}

.role-checks input,
.permission-grid input {
  width: auto;
}

.admin-table button {
  border: 0;
  color: var(--green);
  background: transparent;
  padding: 4px 6px;
}

@media (max-width: 900px) {
  .login-screen {
    padding: 16px;
    overflow-y: auto;
  }

  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 230px;
    padding: 24px;
  }

  .login-visual-copy {
    margin-top: 18px;
  }

  .login-visual-copy h1 {
    margin: 8px 0;
    font-size: 26px;
  }

  .login-visual-copy p,
  .login-capabilities {
    display: none;
  }

  .login-card {
    padding: 28px 24px;
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    max-height: 48vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  .admin-brand {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .sidebar-collapse {
    grid-column: 1 / -1;
  }

  .sidebar-section {
    min-width: 0;
  }

  .sidebar-group {
    margin: 0;
    padding: 9px 10px;
  }

  .sidebar-section.open .sidebar-submenu {
    grid-column: 1 / -1;
  }

  .sidebar a {
    padding: 9px 10px;
    font-size: 13px;
    text-align: center;
  }

  .metric-grid,
  .admin-layout,
  .tables-grid,
  .article-editor-grid,
  .health-grid,
  .admin-combo-body,
  .quote-form,
  .quote-entry-form,
  .content-form,
  .mini-form,
  .ad-form,
  .ad-form .form-row,
  .ad-form .form-row:last-child,
  .factor-grid {
    grid-template-columns: 1fr;
  }

  .ad-form .wide {
    grid-column: auto;
  }

  .manual-form-row-4,
  .manual-entry-form > div:not(.manual-entry-footer) {
    grid-template-columns: 1fr;
  }

  .manual-flow-actions,
  .manual-entry-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .trade-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .trade-entry-form,
  .trade-match-management > article {
    grid-template-columns: 1fr;
  }

  .trade-match-management > article > div:last-child {
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .client-page {
    padding: 0;
  }

  .phone-shell {
    border: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .mobile-app {
    min-height: 100vh;
  }

  .tabbar {
    bottom: 0;
  }
}

.formal-runtime{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.formal-runtime span{padding:7px 10px;border:1px solid #d8dde3;border-radius:4px;background:#fff;font-size:12px}.formal-runtime .ready{color:#18794e;border-color:#9bd0b5;background:#f0faf5}.formal-runtime .wait{color:#8a5a00;border-color:#e8c778;background:#fff9e8}.formal-panel{overflow-x:auto}.formal-form{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:18px}.formal-form input,.formal-form select{min-width:0}.formal-form button{min-height:40px}.contract-form{grid-template-columns:repeat(5,minmax(120px,1fr))}.formal-status{display:inline-block;padding:3px 7px;border-radius:3px;background:#f2f4f6;color:#344054;font-size:12px}.formal-empty{text-align:center;color:#7a8491;padding:28px!important}.formal-panel .danger{margin-left:6px;background:#fff;color:#b42318;border-color:#f2b8b5}@media(max-width:900px){.formal-form,.contract-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
.platform-account-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid #dce3df;background:#fff;margin-bottom:12px}.platform-account-card div{display:grid;gap:4px}.platform-account-card span{font-size:12px;color:#69736d}.platform-account-card em{font-style:normal;font-size:12px;padding:4px 7px;border-radius:3px;background:#fff4d7;color:#8a5a00}.platform-account-card .verify-approved{background:#eaf7ef;color:#18794e}.sms-code-label span{display:grid;grid-template-columns:1fr auto;gap:8px}.sms-code-label button{white-space:nowrap}.platform-logout{width:100%;margin:10px 0;background:#fff!important;color:#a33!important;border:1px solid #e2b8b8!important}.verify-form{margin-top:12px}.mall-payment-channel{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;margin-top:10px}
/* Independent payment settings, sharing the admin's existing form controls. */
.payment-settings { max-width: 1100px; }
.payment-settings fieldset { border: 0; border-top: 1px solid #d9dfd9; padding: 18px 0 24px; margin: 12px 0; min-width: 0; }
.payment-settings legend { padding-right: 16px; font-weight: 600; }
.payment-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.payment-config-grid label { display: grid; gap: 8px; min-width: 0; }
.payment-config-grid input, .payment-config-grid select { width: 100%; min-width: 0; min-height: 42px; box-sizing: border-box; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; }
.payment-config-grid input[readonly] { background: #f1f4f2; color: #53645c; }
.payment-settings .payment-config-grid label { font-size: 14px; color: #345047; }
.payment-actions button, .mall-payment-entry button { min-height: 42px; padding: 10px 14px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: #fff; font: inherit; cursor: pointer; }
.payment-actions button[type="button"] { color: var(--green); background: #fff; }
.payment-actions button:disabled, .mall-payment-entry button:disabled { opacity: .55; cursor: wait; }
.mall-shop .mall-form label[hidden] { display: none; }
.payment-switches, .payment-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 18px; }
.payment-toggle { display: inline-flex; gap: 8px; align-items: center; }
.payment-toggle input { width: 18px; height: 18px; }
.payment-actions output { overflow-wrap: anywhere; }
.mall-payment-entry { display: grid; justify-items: center; gap: 12px; padding: 12px 0; }
.mall-payment-entry img { width: 240px; height: 240px; max-width: 100%; object-fit: contain; }
.mall-payment-entry a { color: #17683d; text-decoration: underline; }
@media (max-width: 640px) { .payment-config-grid { grid-template-columns: minmax(0, 1fr); } }
