@layer reset, base, components, responsive;
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  input,
  textarea,
  select {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  img {
    max-width: 100%;
    display: block;
  }
  button:disabled {
    cursor: wait;
    opacity: 0.5;
  }
  table {
    border-collapse: collapse;
    width: 100%;
  }
}
@layer base {
  :root {
    color-scheme: dark;
    --bg: #0b0e14;
    --side: #0e121a;
    --panel: #111720;
    --panel2: #151d29;
    --line: #26303e;
    --muted: #96a3b6;
    --text: #e6edf7;
    --accent: #709bff;
    --blue: #426fea;
    --green: #6dd4a9;
    --amber: #e7b970;
    --red: #ef949b;
    --mono:
      ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    --sans:
      Inter, -apple-system, BlinkMacSystemFont, "PingFang SC",
      "Microsoft YaHei", sans-serif;
    font: 14px/1.65 var(--sans);
  }
  body {
    background: var(--bg);
    color: var(--text);
  }
  ::selection {
    background: #345795;
    color: white;
  }
  button,
  input,
  select,
  textarea {
    color: var(--text);
  }
  input,
  select,
  textarea {
    background: #0c111a;
    border: 1px solid #334053;
    border-radius: 6px;
    padding: 10px 12px;
    width: 100%;
    min-width: 0;
    outline: none;
  }
  textarea {
    min-height: 100px;
    resize: vertical;
  }
  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #709bff20;
  }
  input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
  }
  label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #bcc8d9;
    font-size: 13px;
  }
  label small {
    color: var(--muted);
    font-size: 12px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -0.8px;
    font-weight: 650;
    line-height: 1.3;
  }
  h2 {
    font-size: 16px;
    font-weight: 600;
  }
  h3 {
    font-size: 14px;
    font-weight: 600;
  }
  .muted,
  small {
    color: var(--muted);
  }
  .mono,
  code,
  pre {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
  }
  .mono {
    font-size: 13px;
  }
  strong {
    font-weight: 600;
  }
  a:hover {
    color: #a4bfff;
  }
  button:focus-visible,
  a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
  svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }
  pre {
    padding: 23px;
    background: #0b1018;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.9;
    overflow: auto;
    color: #b6ceff;
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  code {
    font-size: 0.92em;
    color: #b6ceff;
  }
  p {
    overflow-wrap: anywhere;
  }
  .skip {
    position: fixed;
    top: -60px;
    z-index: 100;
    background: var(--blue);
    padding: 12px;
  }
  .skip:focus {
    top: 10px;
  }
}
@layer components {
  .boot {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--muted);
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .brand-mark {
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    width: 31px;
    height: 33px;
    border-radius: 7px;
    font-size: 23px;
    line-height: 1;
  }
  .brand-word {
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 750;
  }
  .brand-sub {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.3;
  }
  .workspace {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    min-height: 100vh;
  }
  .sidebar {
    background: var(--side);
    border-right: 1px solid var(--line);
    position: fixed;
    inset: 0 auto 0 0;
    width: 228px;
    padding: 31px 19px 18px;
    display: flex;
    flex-direction: column;
    z-index: 30;
  }
  .sidebar .brand {
    padding: 0 10px;
  }
  .space-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 29px 9px 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 1.4px;
    color: var(--muted);
  }
  .nav-label {
    padding: 22px 12px 9px;
    font-size: 10px;
    color: #6f7f95;
    letter-spacing: 1.6px;
  }
  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #96a6ba;
    font-size: 13px;
    padding: 11px 13px;
    border-radius: 6px;
    position: relative;
    margin-bottom: 3px;
  }
  .nav-link:hover {
    background: #182132;
    color: var(--text);
  }
  .nav-link.active {
    background: #1b2942;
    color: #b9ceff;
  }
  .nav-link.active::before {
    content: "";
    position: absolute;
    left: -19px;
    height: 20px;
    width: 2px;
    background: var(--accent);
  }
  .nav-link small {
    margin-left: auto;
    font: 10px var(--mono);
    color: inherit;
  }
  .sidebar-foot {
    margin-top: auto;
    padding-top: 25px;
  }
  .connection {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    padding: 12px;
  }
  .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .dot.amber {
    background: var(--amber);
  }
  .user-block {
    display: flex;
    gap: 9px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 17px 7px 0;
  }
  .avatar {
    width: 31px;
    height: 31px;
    border: 1px solid #3c4d67;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #1e2b40;
    color: #bbceeb;
    font-size: 12px;
    flex-shrink: 0;
  }
  .user-block .user-copy {
    min-width: 0;
    flex: 1;
  }
  .user-copy strong {
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-copy small {
    font-size: 10px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 8px;
    border-radius: 5px;
  }
  .icon-button:hover {
    background: var(--panel2);
    color: white;
  }
  .main {
    grid-column: 2;
    min-width: 0;
  }
  .topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    gap: 14px;
  }
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .breadcrumb span:last-child {
    color: #bcc8d9;
  }
  .top-right {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .menu-button {
    display: none;
  }
  .live-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 10px var(--mono);
    letter-spacing: 1px;
  }
  .content {
    padding: 34px 38px 50px;
    max-width: 1600px;
    margin: 0 auto;
  }
  .page-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 29px;
  }
  .eyebrow {
    font: 10px var(--mono);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .page-heading p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
  }
  .btn {
    background: #1b2533;
    border: 1px solid #344155;
    padding: 9px 15px;
    color: #d5e0ef;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    line-height: 1.6;
  }
  .btn:hover {
    background: #27354b;
    color: white;
    border-color: #4b6386;
  }
  .btn.primary {
    background: var(--blue);
    border-color: #668df2;
    color: white;
  }
  .btn.primary:hover {
    background: #527ef4;
  }
  .btn.small {
    padding: 5px 10px;
    font-size: 11px;
  }
  .btn.danger {
    color: var(--red);
    background: #36202a;
    border-color: #62363f;
  }
  .btn.ghost {
    background: transparent;
    border-color: transparent;
  }
  .actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    margin-bottom: 25px;
    overflow: hidden;
  }
  .stat {
    padding: 23px 25px;
    border-right: 1px solid var(--line);
  }
  .stat:last-child {
    border: 0;
  }
  .stat-label {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .stat-value {
    font: 32px/1.2 var(--mono);
    letter-spacing: -1.5px;
    margin: 13px 0 8px;
  }
  .stat-note {
    font-size: 10px;
    color: #7e8ea4;
  }
  .stat-value small {
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 0;
  }
  .split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
    gap: 23px;
  }
  .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
    margin-bottom: 23px;
  }
  .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 23px;
    border-bottom: 1px solid var(--line);
  }
  .panel-head p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
  }
  .panel-body {
    padding: 23px;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 10px var(--mono);
    padding: 3px 8px;
    border: 1px solid #30415b;
    border-radius: 4px;
    background: #1a293e;
    color: #b2c8ef;
    white-space: nowrap;
  }
  .pill.green {
    color: var(--green);
    border-color: #2b4b42;
    background: #142822;
  }
  .pill.amber {
    color: var(--amber);
    border-color: #574633;
    background: #2a231b;
  }
  .pill.red {
    color: var(--red);
    border-color: #59363f;
    background: #2e1d25;
  }
  .pill.gray {
    color: var(--muted);
    background: #1d2531;
    border-color: #354052;
  }
  .table-wrap {
    overflow-x: auto;
  }
  th {
    text-align: left;
    font-size: 10px;
    font-weight: 500;
    color: #8292a8;
    background: #101620;
    white-space: nowrap;
    letter-spacing: 0.4px;
  }
  th,
  td {
    padding: 14px 22px;
    border-bottom: 1px solid #222c3a;
  }
  td {
    font-size: 12px;
    color: #becbdb;
    vertical-align: middle;
  }
  tbody tr:last-child td {
    border-bottom: 0;
  }
  tbody tr:hover {
    background: #18213080;
  }
  .right {
    text-align: right;
  }
  .nowrap {
    white-space: nowrap;
  }
  .table-note {
    padding: 14px 22px;
    font-size: 10px;
    color: #7788a0;
    border-top: 1px solid var(--line);
  }
  .empty {
    text-align: center;
    padding: 52px 24px;
  }
  .empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #1b2637;
    border: 1px solid #334058;
    border-radius: 12px;
    margin: 0 auto 15px;
    color: #8099c3;
  }
  .empty-icon svg {
    width: 23px;
    height: 23px;
  }
  .empty h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .empty p {
    font-size: 12px;
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto 18px;
  }
  .notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 16px;
    border: 1px solid #394b69;
    background: #152136;
    color: #b5c9e8;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 22px;
  }
  .notice.warn {
    background: #262119;
    border-color: #594630;
    color: #dcc19a;
  }
  .notice.error {
    background: #2b1b23;
    border-color: #6c3642;
    color: #f0a7b0;
  }
  .notice svg {
    margin-top: 3px;
  }
  .info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .info-row:last-child {
    border: 0;
  }
  .info-row span:first-child {
    color: var(--muted);
  }
  .info-row span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .progress {
    height: 4px;
    background: #283346;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
    width: 100%;
    min-width: 75px;
  }
  .progress i {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
  }
  .progress.warn i {
    background: var(--amber);
  }
  .steps {
    counter-reset: step;
  }
  .step {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child {
    border: 0;
  }
  .step-num {
    font: 12px var(--mono);
    color: var(--accent);
    padding-top: 2px;
  }
  .step h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .step p {
    font-size: 11px;
    color: var(--muted);
  }
  .intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #152137;
    border: 1px solid #30496e;
    border-radius: 8px;
    margin-bottom: 26px;
    gap: 15px;
  }
  .intro-strip strong {
    font-size: 13px;
  }
  .intro-strip p {
    font-size: 11px;
    color: #9cafd0;
    margin-top: 4px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1.15fr 0.8fr 0.9fr 1fr auto;
    align-items: end;
    gap: 13px;
    padding: 22px;
  }
  .filters label {
    font-size: 10px;
  }
  .filters input,
  .filters select {
    padding: 9px;
    font-size: 12px;
  }
  .category-filters {
    display: flex;
    gap: 15px;
    padding: 0 22px 22px;
    align-items: end;
  }
  .category-filters label {
    max-width: 200px;
    flex: 1;
  }
  .category-filters input {
    font-size: 12px;
    padding: 8px 10px;
  }
  .category-filters summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 11px;
  }
  .category-filters details {
    width: 100%;
  }
  .category-fields {
    display: flex;
    gap: 15px;
    margin-top: 15px;
  }
  .market-heading {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .market-tile {
    background: #f3f4f7;
    color: #c83249;
    border-radius: 5px;
    width: 35px;
    height: 30px;
    display: grid;
    place-items: center;
    font: 16px var(--mono);
  }
  .product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 260px;
    max-width: 460px;
  }
  .product-image {
    width: 57px;
    height: 57px;
    border-radius: 6px;
    background: #e9ecf2;
    flex-shrink: 0;
    object-fit: contain;
    border: 1px solid #354157;
  }
  .image-placeholder {
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px dashed #3a4a62;
    border-radius: 6px;
    color: #8190a6;
    font-size: 10px;
    background: #1a2433;
  }
  .product-name {
    min-width: 0;
    text-align: left;
    border: 0;
    background: none;
    padding: 0;
    color: #d8e4f5;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.65;
    font-size: 12px;
    cursor: pointer;
  }
  .product-name:hover {
    color: var(--accent);
  }
  .product-id {
    font: 9px var(--mono);
    color: #71829c;
    margin-top: 5px;
  }
  .rank-num {
    font: 17px var(--mono);
    color: #8191a6;
  }
  .rank-num.top {
    color: #b2caff;
  }
  .ranking-table {
    min-width: 920px;
    table-layout: fixed;
  }
  .ranking-table th,
  .ranking-table td {
    padding: 17px 15px;
  }
  .ranking-table th:first-child {
    width: 60px;
    text-align: center;
  }
  .ranking-table th:nth-child(2) {
    width: 37%;
  }
  .ranking-table th:last-child {
    width: 58px;
  }
  .ranking-table .numeric {
    font: 12px var(--mono);
  }
  .source-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 21px;
    font-size: 10px;
    color: #8191a8;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .loading {
    padding: 90px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
  }
  .loading::before {
    content: "";
    display: block;
    border: 2px solid #273750;
    border-top-color: var(--accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 0.8s linear infinite;
  }
  .loader-line {
    height: 3px;
    background: var(--accent);
    position: fixed;
    top: 0;
    width: 30%;
    z-index: 90;
    animation: loading 1.5s ease-in-out infinite;
  }
  .fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .fields .full {
    grid-column: 1/-1;
  }
  .form-stack {
    display: flex;
    flex-direction: column;
    gap: 19px;
  }
  .form-error {
    font-size: 12px;
    color: var(--red);
    padding: 11px 13px;
    border: 1px solid #643844;
    background: #301d26;
    border-radius: 5px;
  }
  .help {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.9;
  }
  .check-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 8px;
  }
  .table-primary {
    color: #dce7f6;
  }
  .subline {
    font-size: 10px;
    color: #7e90a9;
    margin-top: 4px;
    overflow-wrap: anywhere;
  }
  .stacked {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .bar-chart {
    height: 134px;
    display: flex;
    align-items: end;
    gap: 9px;
    border-bottom: 1px solid #39465a;
    padding-top: 16px;
  }
  .bar-chart .bar {
    flex: 1;
    background: #426fea90;
    border-top: 2px solid #83a4ff;
    min-height: 2px;
    position: relative;
  }
  .bar-labels {
    display: flex;
    justify-content: space-between;
    color: #7d8ca2;
    font: 9px var(--mono);
    margin-top: 8px;
  }
  .key-display {
    color: #c0d4ff;
    font-size: 13px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    user-select: all;
    background: #0a101a;
    border: 1px solid #425a85;
    padding: 18px;
    border-radius: 6px;
  }
  .modal-backdrop {
    background: #000b;
  }
  dialog {
    background: var(--panel);
    color: var(--text);
    border: 1px solid #3b4b62;
    border-radius: 12px;
    width: min(570px, calc(100% - 32px));
    padding: 0;
    box-shadow: 0 35px 120px #0009;
    max-height: 90dvh;
  }
  dialog::backdrop {
    background: #06090fc9;
    backdrop-filter: blur(4px);
  }
  .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 23px 26px;
    border-bottom: 1px solid var(--line);
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .modal-body {
    padding: 25px;
  }
  .modal-body > p {
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--muted);
  }
  dialog.drawer {
    max-height: 100dvh;
    height: 100dvh;
    margin: 0 0 0 auto;
    width: min(520px, 100%);
    border-radius: 0;
    border-width: 0 0 0 1px;
  }
  .detail-image {
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    background: #eef0f5;
    border-radius: 7px;
    margin-bottom: 23px;
  }
  .detail-title {
    font-size: 19px;
    line-height: 1.7;
    font-weight: 600;
    overflow-wrap: anywhere;
    margin-bottom: 15px;
  }
  .detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
  }
  .detail-stat {
    background: #0e141e;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 15px;
  }
  .detail-stat small {
    font-size: 10px;
  }
  .detail-stat strong {
    display: block;
    font: 21px var(--mono);
    margin-top: 7px;
  }
  .spec {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;
    color: #b6c4d7;
    background: #0c121b;
    padding: 15px;
    border-radius: 5px;
    max-height: 260px;
    overflow: auto;
  }
  #toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translate(-50%, 16px);
    background: #263953;
    border: 1px solid #506f9e;
    color: #e6efff;
    padding: 12px 20px;
    border-radius: 7px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    font-size: 12px;
    max-width: calc(100% - 40px);
    transition:
      opacity 0.2s,
      transform 0.2s;
    box-shadow: 0 10px 40px #0006;
  }
  #toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .public-header {
    height: 90px;
    max-width: 1260px;
    margin: auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .public-header nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 12px;
    color: #a2b0c4;
  }
  .landing {
    max-width: 1180px;
    margin: auto;
    padding: 77px 40px 60px;
  }
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(35px, 4.6vw, 58px);
    line-height: 1.25;
    letter-spacing: -2px;
    margin: 18px 0 24px;
  }
  .hero h1 span {
    color: #8bafff;
  }
  .hero .lead {
    font-size: 14px;
    line-height: 2.1;
    color: #a7b6cc;
    max-width: 410px;
    margin-bottom: 30px;
  }
  .hero-note {
    font-size: 10px;
    color: #72839c;
    margin-top: 20px;
  }
  .terminal {
    background: #101722;
    border: 1px solid #34435b;
    border-radius: 10px;
    box-shadow: 0 30px 90px #0005;
    transform: perspective(1200px) rotateY(-3deg);
  }
  .terminal-top {
    padding: 13px 17px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .terminal-top i {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background: #465369;
  }
  .terminal-top span {
    margin-left: auto;
    font: 9px var(--mono);
    color: var(--muted);
  }
  .terminal pre {
    border: 0;
    margin: 0;
    padding: 25px 23px;
    border-radius: 0;
    background: none;
    font-size: 11px;
  }
  .terminal-status {
    border-top: 1px solid var(--line);
    padding: 13px 20px;
    color: var(--green);
    font: 10px var(--mono);
  }
  .capabilities {
    margin-top: 100px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
  }
  .capabilities .index {
    font: 11px var(--mono);
    color: var(--accent);
  }
  .capabilities h2 {
    margin: 14px 0 9px;
    font-size: 15px;
  }
  .capabilities p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
  }
  .public-footer {
    max-width: 1100px;
    margin: 50px auto 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #76869b;
  }
  .auth-layout {
    min-height: calc(100dvh - 90px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1050px;
    margin: auto;
    padding: 55px 40px 80px;
    align-items: center;
    gap: 100px;
  }
  .auth-aside h1 {
    font-size: 38px;
    line-height: 1.4;
    margin: 18px 0 22px;
  }
  .auth-aside p {
    font-size: 13px;
    color: var(--muted);
    line-height: 2.1;
  }
  .auth-aside .quote {
    border-left: 2px solid #4a73be;
    padding-left: 20px;
    margin-top: 40px;
    font: 12px/2 var(--mono);
    color: #91acdc;
  }
  .auth-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 10px;
    padding: 31px;
  }
  .auth-card h2 {
    font-size: 23px;
    margin-bottom: 5px;
  }
  .auth-card .sub {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 28px;
  }
  .auth-card .btn {
    width: 100%;
    padding: 11px;
  }
  .auth-bottom {
    border-top: 1px solid var(--line);
    margin-top: 25px;
    padding-top: 20px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }
  .text-link {
    color: var(--accent);
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
  }
  .auth-recovery {
    font-size: 10px;
    color: #7f90a7;
    margin-top: 18px;
    text-align: center;
  }
  .docs {
    max-width: 1030px;
    margin: 35px auto;
    padding: 0 40px 60px;
  }
  .docs h1 {
    margin-bottom: 13px;
  }
  .docs .intro {
    color: var(--muted);
    margin-bottom: 30px;
  }
  .docs h2 {
    margin: 28px 0 14px;
  }
  .docs p {
    font-size: 12px;
    line-height: 1.9;
    color: #a7b6cb;
    margin-bottom: 14px;
  }
  .docs-table {
    min-width: 600px;
  }
  .docs-table td:first-child {
    font: 12px var(--mono);
    color: #bdd1f8;
  }
  .inline-docs {
    padding: 0;
    max-width: none;
    margin: 0;
  }
  .code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 10px;
    color: var(--muted);
  }
  .inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .inline-form label {
    flex: 1;
  }
  .section-gap {
    margin-top: 27px;
  }
  .settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
  }
  .settings-row:last-child {
    border: 0;
  }
  .settings-row p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
  }
  .secret-input {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .secret-input input {
    flex: 1;
  }
  .error-page {
    padding: 70px 0;
    max-width: 600px;
    margin: auto;
  }
  .chart-total {
    font: 30px var(--mono);
    margin-top: 5px;
  }
  .legend {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 10px;
    color: var(--muted);
  }
  .nav-shade {
    display: none;
  }
  .account-meter {
    min-width: 145px;
  }
  .log-detail {
    max-width: 340px;
    overflow-wrap: anywhere;
  }
  .status-http {
    font: 11px var(--mono);
    color: var(--green);
  }
  .status-http.error {
    color: var(--red);
  }
  .snapshot-link {
    color: var(--accent);
    font-size: 12px;
  }
  .public-header .brand-sub {
    display: none;
  }
  .small-only {
    display: none;
  }
  .code-key {
    color: #87d1b3;
  }
  .section-caption {
    color: #778aa6;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes loading {
    0% {
      left: 0;
      width: 0;
    }
    60% {
      left: 20%;
      width: 65%;
    }
    100% {
      left: 100%;
      width: 0;
    }
  }
}
@layer responsive {
  @media (min-width: 1600px) {
    .content {
      padding-top: 45px;
    }
    .page-heading {
      margin-bottom: 35px;
    }
    .stat {
      padding: 28px;
    }
    .stat-value {
      font-size: 37px;
    }
  }
  @media (max-width: 1200px) {
    .workspace {
      grid-template-columns: 205px minmax(0, 1fr);
    }
    .sidebar {
      width: 205px;
      padding-left: 14px;
      padding-right: 14px;
    }
    .topbar {
      padding: 0 26px;
    }
    .content {
      padding: 28px 26px;
    }
    .split {
      grid-template-columns: 1fr;
    }
    .filters {
      grid-template-columns: repeat(3, 1fr);
    }
    .filters .btn {
      height: 38px;
    }
    .stat {
      padding: 19px;
    }
    .stat-value {
      font-size: 27px;
    }
    .hero {
      gap: 35px;
    }
    .auth-layout {
      gap: 50px;
    }
    .nav-link.active::before {
      left: -14px;
    }
  }
  @media (max-width: 800px) {
    .workspace {
      display: block;
    }
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.2s;
    }
    .workspace.menu-open .sidebar {
      transform: translateX(0);
    }
    .workspace.menu-open .nav-shade {
      display: block;
      position: fixed;
      inset: 0;
      background: #000a;
      z-index: 25;
      border: 0;
    }
    .topbar {
      height: 60px;
      padding: 0 20px;
    }
    .menu-button {
      display: inline-flex;
    }
    .breadcrumb {
      gap: 7px;
    }
    .top-right {
      gap: 10px;
    }
    .live-label {
      display: none;
    }
    .content {
      padding: 25px 20px;
    }
    .page-heading {
      gap: 12px;
    }
    .page-heading h1 {
      font-size: 25px;
    }
    .page-heading p {
      max-width: 400px;
    }
    .stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat {
      border-bottom: 1px solid var(--line);
    }
    .stat:nth-child(2) {
      border-right: 0;
    }
    .stat:nth-child(3),
    .stat:nth-child(4) {
      border-bottom: 0;
    }
    .hero {
      grid-template-columns: 1fr;
      gap: 50px;
    }
    .hero h1 {
      font-size: 46px;
    }
    .hero .lead {
      max-width: 520px;
    }
    .terminal {
      transform: none;
    }
    .landing {
      padding-top: 40px;
    }
    .capabilities {
      margin-top: 60px;
      gap: 25px;
    }
    .auth-layout {
      grid-template-columns: 1fr;
      max-width: 490px;
      padding: 25px 25px 60px;
    }
    .auth-aside {
      display: none;
    }
    .public-header {
      height: 75px;
      padding: 0 25px;
    }
    .public-header nav {
      gap: 16px;
    }
    .public-header .brand-word {
      font-size: 16px;
    }
    .public-footer {
      margin-top: 35px;
      gap: 15px;
    }
    .docs {
      padding-left: 24px;
      padding-right: 24px;
    }
    .inline-docs {
      padding: 0;
    }
    .fields {
      gap: 14px;
    }
    .panel-head,
    .panel-body {
      padding: 20px;
    }
    .topbar .muted {
      display: none;
    }
    .intro-strip {
      padding: 17px;
    }
    .intro-strip p {
      font-size: 10px;
    }
  }
  @media (max-width: 500px) {
    .public-header nav > a:first-child {
      display: none;
    }
    .landing {
      padding: 30px 24px;
    }
    .hero h1 {
      font-size: 38px;
    }
    .capabilities {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    .capabilities h2 {
      margin-top: 7px;
    }
    .capabilities p {
      max-width: 350px;
    }
    .public-footer {
      flex-direction: column;
      gap: 4px;
    }
    .filters {
      grid-template-columns: repeat(2, 1fr);
      padding: 17px;
      gap: 13px;
    }
    .filters label:last-of-type {
      grid-column: auto;
    }
    .filters .btn {
      grid-column: 1/-1;
    }
    .fields {
      grid-template-columns: 1fr;
    }
    .fields .full {
      grid-column: auto;
    }
    .page-heading {
      align-items: start;
      flex-direction: column;
      gap: 16px;
    }
    .page-heading .actions {
      width: 100%;
    }
    .content {
      padding: 23px 16px;
    }
    .stat {
      padding: 18px;
    }
    .stat-value {
      font-size: 27px;
    }
    .stat-note {
      font-size: 9px;
    }
    .intro-strip {
      align-items: start;
      flex-direction: column;
    }
    .category-filters {
      padding-left: 17px;
      padding-right: 17px;
    }
    .category-fields {
      flex-direction: column;
    }
    .category-fields label {
      max-width: none;
    }
    .auth-card {
      padding: 25px;
    }
    .brand-sub {
      display: none;
    }
    .topbar {
      padding: 0 12px;
    }
    .docs h1 {
      font-size: 26px;
    }
    th,
    td {
      padding: 12px 17px;
    }
    .settings-row {
      align-items: start;
      flex-direction: column;
    }
    .small-only {
      display: block;
    }
    .modal-body {
      padding: 20px;
    }
    .modal-head {
      padding: 18px 20px;
    }
    .panel-head h2 {
      font-size: 14px;
    }
    .panel-head .btn {
      font-size: 10px;
      padding: 5px 8px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer components {
  .brand > span:last-child {
    min-width: 0;
  }
  .table-wrap table:not(.ranking-table) {
    min-width: 640px;
  }
  .docs-table {
    min-width: 600px;
  }
}

@layer components {
  .query-access {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    background: #101925;
  }
  .query-access .query-key {
    width: 300px;
    flex-shrink: 0;
    font-size: 11px;
  }
  .query-access .query-key select {
    font-size: 12px;
    padding: 8px 10px;
  }
  .query-access .help {
    max-width: 560px;
  }
  .query-access-copy {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
  }
}
@layer responsive {
  @media (max-width: 800px) {
    .query-access {
      align-items: stretch;
      flex-direction: column;
      gap: 12px;
    }
    .query-access .query-key {
      width: 100%;
    }
  }
}
@layer components {
  .snapshot-shortcuts {
    margin-bottom: 20px;
  }
  .snapshot-shortcuts:empty {
    display: none;
  }
}
