#token-explorer {
  --token-border: #d4dfd0;
  --token-muted: #5e7165;
  --token-dark: #214a39;
  margin: 32px 0 42px;
  min-width: 0;
  color: #253f34;
}
#token-explorer *, #token-explorer *::before, #token-explorer *::after { box-sizing: border-box; }
#token-explorer [hidden] { display: none !important; }
#token-explorer h3, #token-explorer h4, #token-explorer h5, #token-explorer h6,
#token-explorer p, #token-explorer dl, #token-explorer dd { margin: 0; }
#token-explorer h3 { font-size: 26px; line-height: 1.45; letter-spacing: -.025em; }
#token-explorer .token-eyebrow { color: #528365; font-size: 10px; font-weight: 750; letter-spacing: .08em; margin-bottom: 9px; }
#token-explorer .token-description { color: var(--token-muted); font-size: 13px; margin-top: 10px; max-width: 840px; }
#token-explorer .token-notation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 9px; }
#token-explorer .token-notation-item { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid var(--token-border); border-radius: 7px; background: #fbfcf7; min-width: 0; }
#token-explorer .token-notation dt { color: #387353; font: italic 24px/1 Georgia, serif; flex-shrink: 0; }
#token-explorer .token-notation dd { font-size: 11px; line-height: 1.6; }
#token-explorer .token-notation small { display: block; color: var(--token-muted); font-size: 10px; }
#token-explorer .token-symbol-note { font-size: 10px; color: var(--token-muted); }
#token-explorer .token-sample { padding: 19px 23px 16px; background: #fffefa; border: 1px solid var(--token-border); border-radius: 10px; margin-top: 24px; }
#token-explorer .token-sample-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
#token-explorer .token-sample-heading h4 { font-size: 13px; }
#token-explorer .token-sample-size { color: var(--token-muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
#token-explorer .token-table-scroll { overflow-x: auto; min-width: 0; }
#token-explorer .token-sample-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; text-align: center; }
#token-explorer .token-sample-table th, #token-explorer .token-sample-table td { border: 1px solid #e0e7db; padding: 7px 6px; overflow-wrap: anywhere; }
#token-explorer .token-sample-table thead th { color: #2d4939; font-weight: 650; background: #f2f5eb; }
#token-explorer .token-sample-table th:first-child { width: 15%; }
#token-explorer .token-sample-table th:last-child { width: 13%; }
#token-explorer .token-sample-table .token-role { font-size: 10px; font-weight: 600; background: #f5f7f0; }
#token-explorer .token-sample-table td { color: #59695b; font-variant-numeric: tabular-nums; }
#token-explorer .token-sample-table .token-target { color: #315e43; font-weight: 700; background: #f4f7ee; }
#token-explorer .token-sample-table .token-query-row th, #token-explorer .token-sample-table .token-query-row td { background: #faf6eb; }
#token-explorer .token-hidden-target { display: inline-grid; place-items: center; width: 25px; height: 23px; border: 1px dashed #c7b894; border-radius: 4px; background: #fffdf6; color: #8a7244; font-weight: 700; }
#token-explorer .token-sample-note { margin-top: 12px; font-size: 11px; color: var(--token-muted); }
#token-explorer .token-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 23px 0 12px; }
#token-explorer .token-status { font-size: 11px; color: var(--token-muted); overflow-wrap: anywhere; }
#token-explorer .token-swap { flex-shrink: 0; padding: 7px 12px; border-radius: 5px; border: 1px solid #c3d2bc; color: #356747; background: #f5f8ef; font-family: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; }
#token-explorer .token-swap:hover:not(:disabled) { background: #e8efdf; border-color: #91ac85; }
#token-explorer .token-swap:disabled { color: #8d9a87; cursor: default; opacity: .65; }
#token-explorer .token-swap:focus-visible, #token-explorer select:focus-visible, #token-explorer summary:focus-visible, #token-explorer a:focus-visible { outline: 3px solid #aa8754; outline-offset: 3px; }
#token-explorer .token-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#token-explorer .token-panel { min-width: 0; border: 1px solid #cbd9c4; border-radius: 10px; background: white; overflow: hidden; }
#token-explorer .token-panel-control { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 15px 20px; background: #edf3e8; border-bottom: 1px solid var(--token-border); }
#token-explorer .token-panel-control label { font-size: 11px; font-weight: 650; color: #5f795c; }
#token-explorer .token-select { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 8px 10px; font: 600 13px/1.5 system-ui, -apple-system, 'PingFang SC', sans-serif; color: #2f523c; border: 1px solid #bccdb2; border-radius: 5px; background: #fffefa; cursor: pointer; }
#token-explorer .token-panel-content { padding: 23px; min-width: 0; overflow-wrap: anywhere; }
#token-explorer .token-model-header { padding-bottom: 20px; border-bottom: 1px solid #e3e9de; }
#token-explorer .token-model-header h4 { font-size: 23px; line-height: 1.4; letter-spacing: -.025em; }
#token-explorer .token-model-version { font-size: 11px; color: var(--token-muted); line-height: 1.7; margin-top: 7px; }
#token-explorer .token-evidence { display: inline-block; font-size: 10px; line-height: 1.65; font-weight: 600; color: #62774c; background: #f0f4e8; border: 1px solid #d5dfc7; padding: 3px 7px; border-radius: 4px; margin-top: 12px; }
#token-explorer .token-section-label { font-size: 10px; color: #708467; letter-spacing: .035em; line-height: 1.6; font-weight: 650; margin-bottom: 12px; }
#token-explorer .token-groups-section { padding-top: 20px; }
#token-explorer .token-group-kind { font-size: 13px; font-weight: 650; margin-bottom: 12px; color: #354f3a; }
#token-explorer .token-group-set + .token-group-set { margin-top: 13px; }
#token-explorer .token-group-set-label { font-size: 11px; color: var(--token-muted); margin-bottom: 7px; }
#token-explorer .token-groups { display: flex; gap: 7px; flex-wrap: wrap; align-items: stretch; min-width: 0; }
#token-explorer .token-group { display: flex; align-items: center; flex-direction: column; gap: 6px; background: #f7f9f3; border: 1px solid #d8e2d0; border-radius: 6px; padding: 7px; min-width: 38px; max-width: 100%; }
#token-explorer .token-group-number { font-size: 9px; color: #7b8c71; line-height: 1.3; white-space: nowrap; }
#token-explorer .token-group-columns { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-width: 0; }
#token-explorer .token-column { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 25px; padding: 2px 6px; border-radius: 4px; font: 650 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
#token-explorer [data-column='0'] { background: #dcebd6 !important; color: #355c2d !important; }
#token-explorer [data-column='1'] { background: #f0e7c9 !important; color: #786228 !important; }
#token-explorer [data-column='2'] { background: #dae7ed !important; color: #3d6273 !important; }
#token-explorer [data-column='3'] { background: #f2dfd4 !important; color: #8a5d3e !important; }
#token-explorer [data-column='4'] { background: #d8e9e2 !important; color: #356f5f !important; }
#token-explorer [data-column='5'] { background: #e8dfee !important; color: #735e87 !important; }
#token-explorer .token-groups-unknown { border: 1px dashed #d4d9ce; border-radius: 7px; padding: 12px; background: #fafbf7; align-items: center; }
#token-explorer .token-group-unknown-label { color: #7a8271; font-size: 10px; margin-left: 3px; }
#token-explorer .token-group-note { margin-top: 12px; color: var(--token-muted); font-size: 12px; line-height: 1.8; }
#token-explorer .token-stages-section { margin-top: 25px; }
#token-explorer .token-stages { list-style: none; margin: 0; padding: 0; }
#token-explorer .token-stage { display: grid; grid-template-columns: 25px minmax(0, 1fr); column-gap: 12px; position: relative; padding-bottom: 20px; }
#token-explorer .token-stage:not(:last-child)::before { content: ''; position: absolute; top: 25px; bottom: 0; left: 12px; width: 1px; background: #d7e1d0; }
#token-explorer .token-stage:last-child { padding-bottom: 0; }
#token-explorer .token-stage-number { position: relative; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #ccd9c4; background: #eff4e8; color: #4d7144; border-radius: 50%; font-size: 10px; line-height: 1; }
#token-explorer .token-stage-content { min-width: 0; padding-top: 1px; }
#token-explorer .token-stage h6 { font-size: 13px; line-height: 1.7; font-weight: 700; color: #344f3b; }
#token-explorer .token-shape { display: block; white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; padding: 9px 11px; margin-top: 8px; border: 1px solid #e4eadc; background: #f5f8ef; border-radius: 5px; color: #4b6840; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; max-width: 100%; }
#token-explorer .token-stage p { font-size: 12px; line-height: 1.8; color: var(--token-muted); margin-top: 8px; white-space: pre-line; }
#token-explorer .token-details { border: 1px solid #dde5d5; border-radius: 7px; background: #fafbf7; margin-top: 25px; }
#token-explorer .token-details summary { padding: 13px 14px; font-size: 11px; font-weight: 650; color: #46683c; cursor: pointer; }
#token-explorer .token-details[open] summary { border-bottom: 1px solid #e2e8da; }
#token-explorer .token-detail-list { padding: 0 15px 15px; }
#token-explorer .token-detail-list dt { font-size: 10px; color: #77906b; font-weight: 700; margin: 15px 0 4px; }
#token-explorer .token-detail-list dd { color: #586c50; font-size: 12px; line-height: 1.85; white-space: pre-line; }
#token-explorer .token-source-heading { border-top: 1px solid #e2e8da; padding: 12px 15px 0; font-size: 10px; font-weight: 700; color: #77906b; }
#token-explorer .token-sources { list-style: none; margin: 6px 0 0; padding: 0 15px 15px; font-size: 11px; line-height: 1.9; }
#token-explorer .token-sources li + li { margin-top: 6px; }
#token-explorer .token-sources a { color: #3a704c; }
#token-explorer .token-source-arrow { font-size: 10px; text-decoration: none; }
#token-explorer .token-empty { padding: 28px 24px; background: #fffefa; border: 1px dashed #c6d4bf; border-radius: 9px; color: var(--token-muted); font-size: 13px; text-align: center; }
#token-explorer .token-date { color: #7a8973; font-size: 10px; margin-top: 15px; }
#token-explorer .token-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  #token-explorer .token-notation { gap: 8px; }
  #token-explorer .token-notation-item { padding: 11px; gap: 9px; }
  #token-explorer .token-panel-content { padding: 19px; }
  #token-explorer .token-panel-control { padding: 13px 17px; gap: 11px; }
  #token-explorer .token-comparison { gap: 14px; }
}
@media (max-width: 740px) {
  #token-explorer { margin: 29px 0 35px; }
  #token-explorer h3 { font-size: 22px; }
  #token-explorer .token-description { font-size: 12px; }
  #token-explorer .token-notation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  #token-explorer .token-notation-item { padding: 11px 12px; }
  #token-explorer .token-sample { padding: 15px 12px 13px; margin-top: 20px; }
  #token-explorer .token-sample-heading { gap: 8px; }
  #token-explorer .token-sample-size { font-size: 10px; }
  #token-explorer .token-sample-table { font-size: 10px; }
  #token-explorer .token-sample-table th, #token-explorer .token-sample-table td { padding: 7px 2px; }
  #token-explorer .token-sample-table .token-role { font-size: 8px; }
  #token-explorer .token-hidden-target { width: 21px; height: 21px; }
  #token-explorer .token-sample-note { font-size: 10px; }
  #token-explorer .token-comparison { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #token-explorer .token-toolbar { gap: 12px; margin-top: 19px; align-items: start; }
  #token-explorer .token-status { font-size: 10px; padding-top: 5px; }
  #token-explorer .token-swap { font-size: 10px; padding: 6px 9px; }
  #token-explorer .token-panel-control { padding: 14px 17px; }
  #token-explorer .token-model-header h4 { font-size: 22px; }
  #token-explorer .token-panel-content { padding: 20px 17px; }
  #token-explorer .token-stage { column-gap: 10px; }
  #token-explorer .token-group-note, #token-explorer .token-stage p, #token-explorer .token-detail-list dd { font-size: 12px; }
  #token-explorer .token-shape { font-size: 10px; padding: 8px 9px; }
}
@media print {
  #token-explorer .token-toolbar, #token-explorer .token-panel-control { display: none; }
  #token-explorer .token-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #token-explorer .token-panel { overflow: visible; }
  #token-explorer .token-stage, #token-explorer .token-sample { break-inside: avoid; }
}
