:root {
  --client-ink: #173247;
  --client-muted: #68808f;
  --client-subtle: #90a2ad;
  --client-line: rgba(37, 91, 112, .16);
  --client-surface: rgba(255, 255, 255, .88);
  --client-surface-solid: #fff;
  --client-blue: #215f7d;
  --client-blue-deep: #173f57;
  --client-teal: #177b82;
  --client-coral: #e87d63;
  --client-radius: 16px;
  --client-shadow: 0 24px 70px rgba(26, 70, 92, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #dce9ed; }

body {
  position: relative;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  isolation: isolate;
  color: var(--client-ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background: #dce9ed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(224, 238, 241, .94) 0%, rgba(227, 239, 240, .76) 44%, rgba(205, 224, 230, .38) 100%),
    url("/images/client-placeholder-bg.webp") center / cover no-repeat;
  filter: saturate(.82);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 78% 12%, rgba(255, 255, 255, .48), transparent 28rem);
}

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(232, 125, 99, .75);
  outline-offset: 3px;
}

.client-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 34px 0 30px;
}

.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.client-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--client-blue-deep);
  text-decoration: none;
}

.client-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.client-brand-copy { display: grid; min-width: 0; }
.client-brand-copy strong { overflow: hidden; font-size: 15px; font-weight: 750; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }

.client-query-panel,
.client-results { border: 1px solid rgba(255, 255, 255, .75); border-radius: var(--client-radius); background: var(--client-surface); box-shadow: var(--client-shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.client-query-panel { margin-top: 32px; padding: 26px 28px 28px; }
.client-section-heading, .client-results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.client-section-heading h1, .client-results-heading h2 { margin: 0; color: var(--client-blue-deep); font-size: 23px; letter-spacing: -.04em; }

.client-demo-label { margin: 0 0 3px; padding: 5px 9px; border: 1px solid rgba(232, 125, 99, .32); border-radius: 999px; color: #b45e4a; background: rgba(255, 244, 240, .74); font-size: 11px; font-weight: 700; white-space: nowrap; }

.client-filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; margin-top: 23px; }
.client-field-keyword { grid-column: span 2; }
.client-field { display: grid; gap: 7px; min-width: 0; }
.client-field > span { color: var(--client-muted); font-size: 12px; font-weight: 700; }
.client-field input, .client-field select { width: 100%; height: 46px; min-width: 0; padding: 0 12px; border: 1px solid var(--client-line); border-radius: 9px; outline: 0; color: var(--client-ink); background: rgba(255, 255, 255, .82); font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.client-field input::placeholder { color: #9aabb4; }
.client-field input:hover, .client-field select:hover { background: #fff; }
.client-field input:focus, .client-field select:focus { border-color: var(--client-blue); background: #fff; box-shadow: 0 0 0 3px rgba(33, 95, 125, .13); }

.client-filter-actions { display: flex; align-items: center; gap: 8px; }
.client-filter-notice { grid-column: 1 / -1; margin: -2px 0 0; color: #b45e4a; font-size: 12px; font-weight: 700; }
.client-button { min-height: 46px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 750; white-space: nowrap; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.client-button:hover { transform: translateY(-1px); }
.client-button:active { transform: translateY(1px); }
.client-button-primary { color: #fff; background: var(--client-blue); box-shadow: 0 8px 18px rgba(33, 95, 125, .18); }
.client-button-primary:hover { background: var(--client-blue-deep); }
.client-button-secondary { border-color: var(--client-line); color: var(--client-blue); background: rgba(255, 255, 255, .6); }
.client-button-secondary:hover { border-color: rgba(33, 95, 125, .3); background: #fff; }

.client-results { margin-top: 18px; padding: 28px; }
.client-result-summary { min-height: 17px; margin: 0 0 3px; color: var(--client-muted); font-size: 12px; }
.client-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 23px; overflow: hidden; border: 1px solid rgba(37, 91, 112, .11); border-radius: 11px; background: rgba(37, 91, 112, .11); }
.client-stat { min-width: 0; padding: 17px 18px; background: rgba(255, 255, 255, .58); }
.client-skeleton-stat { min-height: 101px; background: linear-gradient(100deg, rgba(255, 255, 255, .45) 30%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .45) 70%); background-size: 220% 100%; animation: client-loading-shimmer 1.2s linear infinite; }
@keyframes client-loading-shimmer { to { background-position: -220% 0; } }
.client-stat span, .client-stat small { display: block; }
.client-stat span { color: var(--client-muted); font-size: 11px; font-weight: 700; }
.client-stat strong { display: block; margin-top: 7px; overflow: hidden; color: var(--client-blue-deep); font-size: clamp(20px, 2.6vw, 28px); font-weight: 760; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.client-stat small { margin-top: 3px; color: var(--client-subtle); font-size: 10px; }

.client-order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.client-order-card { min-width: 0; padding: 20px; border: 1px solid rgba(37, 91, 112, .12); border-radius: 12px; background: rgba(255, 255, 255, .72); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.client-order-card:hover { border-color: rgba(33, 95, 125, .28); box-shadow: 0 12px 26px rgba(26, 70, 92, .08); transform: translateY(-2px); }
.client-order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.client-order-card h3 { min-width: 0; margin: 0; overflow: hidden; color: var(--client-blue-deep); font-size: 17px; font-weight: 750; letter-spacing: -.025em; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.client-platform { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: var(--client-teal); background: rgba(23, 123, 130, .1); font-size: 10px; font-weight: 750; white-space: nowrap; }
.client-order-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; color: var(--client-muted); font-size: 11px; }
.client-order-video { margin: 14px 0 0; overflow: hidden; color: #536e7c; font-size: 13px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.client-order-identifiers { display: flex; gap: 8px; margin-top: 12px; color: var(--client-subtle); font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; }
.client-order-identifiers span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-order-identifiers span:first-child { flex: 0 1 44%; }
.client-order-identifiers span:last-child { flex: 1 1 56%; }
.client-order-card-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(37, 91, 112, .11); }
.client-order-metric span { display: block; color: var(--client-subtle); font-size: 10px; }
.client-order-metric strong { display: block; margin-top: 5px; overflow: hidden; color: var(--client-blue-deep); font-size: 14px; font-weight: 750; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.client-order-metric:last-child strong { color: var(--client-coral); }
.client-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.client-pagination-button { min-width: 88px; min-height: 44px; padding: 0 14px; border: 1px solid var(--client-line); border-radius: 9px; color: var(--client-blue); background: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 750; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.client-pagination-button:hover:not(:disabled) { border-color: rgba(33, 95, 125, .3); background: #fff; transform: translateY(-1px); }
.client-pagination-button:active:not(:disabled) { transform: translateY(1px); }
.client-pagination-button:disabled { cursor: not-allowed; color: #a7b5bb; background: rgba(255, 255, 255, .42); }
.client-page-status { min-width: 90px; color: var(--client-muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }

.client-empty { grid-column: 1 / -1; padding: 55px 20px 48px; border: 1px dashed rgba(37, 91, 112, .22); border-radius: 12px; color: var(--client-muted); text-align: center; }
.client-empty strong { display: block; color: var(--client-blue-deep); font-size: 16px; }
.client-empty p { margin: 8px 0 0; font-size: 12px; }
.client-loading strong { color: var(--client-blue); }
.client-error { border-color: rgba(232, 125, 99, .35); }
.client-error strong { color: #b45e4a; }
.client-footer { display: grid; justify-items: center; gap: 10px; padding: 24px 16px 0; color: var(--client-muted); font-size: 11px; text-align: center; }
.client-filing-block { display: grid; justify-items: center; gap: 4px; }
.client-filing-number { color: var(--client-blue-deep); }
.client-filing-link { color: var(--client-blue); text-decoration: underline; text-underline-offset: 3px; }
.client-filing-link:hover { color: var(--client-blue-deep); }
.client-footer-meta { display: flex; gap: 16px; }

@media (max-width: 980px) {
  .client-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-field-keyword { grid-column: 1 / -1; }
  .client-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 700px) {
  .client-shell { width: min(100% - 32px, 580px); padding-top: 16px; }
  .client-query-panel, .client-results { padding: 22px 16px; }
  .client-query-panel { margin-top: 24px; }
  .client-filter-form { grid-template-columns: 1fr; gap: 13px; }
  .client-field-keyword, .client-filter-actions { grid-column: auto; }
  .client-filter-actions { display: grid; grid-template-columns: 1fr; }
  .client-button { width: 100%; padding: 0 10px; }
  .client-results-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .client-result-summary { margin: 0; }
  .client-stats { grid-template-columns: 1fr; }
  .client-stat { padding: 14px 16px; }
  .client-stat strong { margin-top: 4px; font-size: 23px; }
  .client-order-grid { grid-template-columns: 1fr; }
  .client-order-card { padding: 17px; }
  .client-order-card-footer { gap: 8px; }
  .client-order-metric strong { font-size: 13px; }
  .client-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .client-pagination-button { width: 100%; min-width: 0; padding: 0 8px; }
  .client-footer { padding-right: 4px; padding-left: 4px; }
}

@media (prefers-reduced-transparency: reduce) {
  body::before { background: #e5eff1; filter: none; }
  .client-query-panel, .client-results { background: var(--client-surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .client-order-card, .client-stat { background: #fff; }
}

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