body:has(.sds-directory) { margin: 0; background: #f8fafc; }
.sds-directory { color: #192635; font: 15px/1.5 "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.sds-directory *, .sds-directory *::before, .sds-directory *::after { box-sizing: border-box; }
.sds-directory a { color: inherit; text-decoration: none; }
.sds-directory a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sds-directory :focus-visible { outline: 3px solid #986022; outline-offset: 3px; }
.sds-sitebar { background: #fff; border-bottom: 1px solid #e2e8f0; }
.sds-sitebar > div, .sds-lookup { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.sds-sitebar > div { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.sds-sitebar img { display: block; }
.sds-sitebar nav { display: flex; gap: 24px; color: #46576a; font-size: 14px; }
.sds-lookup { padding-bottom: 64px; }
.sds-crumb { display: flex; gap: 10px; margin: 18px 0; color: #536579; font-size: 13px; }
.sds-hero, .sds-hit, .sds-no-results { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.sds-hero { padding: 35px 24px 29px; text-align: center; }
.sds-hero h1 { margin: 0; color: #162536; font-size: clamp(27px, 3.5vw, 43px); line-height: 1.17; letter-spacing: -.035em; font-weight: 680; }
.sds-hero p { margin: 12px 0 3px; color: #45586c; }
.sds-hero small, .sds-evidence { color: #59697a; font-size: 13px; }
.sds-form { display: flex; gap: 4px; max-width: 710px; margin: 24px auto 10px; padding: 5px; border: 1px solid #a6b5c3; border-radius: 10px; background: #fff; }
.sds-form:focus-within { border-color: #ac6625; }
.sds-form input { flex: 1; min-width: 0; border: 0; padding: 9px 13px; font: inherit; font-size: 16px; color: inherit; background: #fff; }
.sds-form button, .sds-primary { border: 0; border-radius: 7px; cursor: pointer; font: inherit; font-weight: 600; }
.sds-form button { padding: 10px 25px; color: #1a1e24; background: #c9782a; }
.sds-form button:hover { background: #d88938; }
.sds-examples, .sds-chips, .sds-pager { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sds-examples, .sds-pager { justify-content: center; }
.sds-examples { font-size: 13px; color: #526477; }
.sds-examples a, .sds-chips span, .sds-chips b { border: 1px solid #e2e8f0; background: #f8fafc; padding: 3px 9px; border-radius: 20px; }
.sds-examples a { padding: 4px 10px; }
.sds-results h2 { margin: 23px 0 10px; font-size: 21px; font-weight: 650; }
.sds-hit { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 9px; padding: 20px 22px; }
.sds-identity { min-width: 0; overflow-wrap: anywhere; }
.sds-hit h3 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.3; }
.sds-en-name { margin: 2px 0 0; color: #526477; font-size: 14px; }
.sds-chips { margin-top: 10px; gap: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.sds-chips b { color: #273d4e; }
.sds-chips .sds-signal { border-color: #bdc9d4; }
.sds-evidence { margin: 9px 0 0; }
.sds-hit-actions { flex: none; display: grid; gap: 5px; text-align: center; }
.sds-hit-actions a { display: inline-block; padding: 8px 14px; font-size: 14px; }
.sds-hit-actions .sds-primary { color: #814618; background: #fff; border: 1px solid #c78c55; }
.sds-hit-actions .sds-secondary { color: #41546a; }
.sds-pager { margin-top: 20px; gap: 16px; }
.sds-pager a, .sds-no-results a { text-decoration: underline; }
.sds-no-results { padding: 20px 22px; }
@media (max-width: 640px) {
  .sds-sitebar > div, .sds-lookup { width: calc(100% - 28px); }
  .sds-sitebar nav { font-size: 12px; gap: 12px; }
  .sds-sitebar img { width: 112px; height: auto; }
  .sds-hero { padding: 24px 13px 19px; }
  .sds-hero p { font-size: 14px; }
  .sds-form { margin-top: 16px; }
  .sds-form input { padding: 8px 4px; }
  .sds-form button { padding: 10px 14px; }
  .sds-hit { display: block; padding: 15px; }
  .sds-hit-actions { display: flex; align-items: center; flex-wrap: wrap; margin-top: 12px; gap: 6px; }
  .sds-hit-actions a { padding: 8px 9px; font-size: 13px; }
}
