:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #e7edf6; background: #101722; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.25; margin: 12px 0 18px; }
h2 { font-size: 1.15rem; margin: 0 0 14px; }
main, .site-header, footer { max-width: 1200px; margin: auto; padding: 20px 24px; }
main { min-height: 70vh; }
.site-header { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #293243; }
.brand { font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.header-search { flex: 1; max-width: 420px; }
.header-search input, .hero-search input { width: 100%; font: inherit; padding: 9px 12px; border-radius: 8px; border: 1px solid #3a4b61; background: #0d131c; color: #e7edf6; }
.site-header nav { margin-left: auto; display: flex; gap: 16px; font-size: .95rem; white-space: nowrap; }
.site-header nav a { color: #b4bfd0; }
footer { border-top: 1px solid #293243; color: #a2afc1; font-size: .9rem; }
.hero { padding: 36px 0 12px; }
.hero-search { display: flex; gap: 10px; max-width: 640px; margin-bottom: 18px; }
.block { margin: 34px 0; }
.eyebrow { color: #83dcbb; letter-spacing: .15em; font-size: .8rem; }
.muted, .result-count, .empty { color: #a2afc1; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.site-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #2b3a4d; border-radius: 10px; background: #141d2a; min-width: 0; }
.site-link { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.site-text { display: grid; min-width: 0; }
.site-text strong, .site-text small, .site-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-text small { color: #8d9bb0; }
.site-summary { color: #b4bfd0; font-size: .85rem; }
.site-go { flex-shrink: 0; font-size: .85rem; padding: 6px 10px; border-radius: 6px; border: 1px solid #3a4b61; color: #83dcbb; }
.site-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; font-weight: 700; color: #0d1a14; }
.site-icon.large { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 14px; }
.icon-c0 { background: #83dcbb; } .icon-c1 { background: #8fb8ff; } .icon-c2 { background: #f5c46b; } .icon-c3 { background: #f59aa7; }
.icon-c4 { background: #b99cf5; } .icon-c5 { background: #7fd3e8; } .icon-c6 { background: #c4e07f; } .icon-c7 { background: #f0a878; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.category-card { padding: 14px; border: 1px solid #2b3a4d; border-radius: 10px; }
.category-name { font-weight: 600; }
.category-name small { color: #8d9bb0; font-weight: 400; margin-left: 4px; }
.category-children { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0 0; font-size: .9rem; color: #b4bfd0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: .85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid #3a4b61; color: #b4bfd0; }
.chips a.tag { color: #8fb8ff; }
.breadcrumb { font-size: .9rem; color: #8d9bb0; }
.breadcrumb a { color: #b4bfd0; }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 24px 0; color: #a2afc1; }
.pagination a { color: #83dcbb; }
.site-detail { max-width: 760px; }
.site-detail-head { display: flex; gap: 16px; align-items: center; }
.site-detail-head h1 { margin: 0; }
.site-detail-head p { margin: 4px 0 0; }
.site-summary-full { line-height: 1.8; color: #cfd8e5; margin: 16px 0; }
.site-header nav a:hover, .links a:hover { color: #83dcbb; }
.card { max-width: 440px; padding: 32px; border: 1px solid #314356; border-radius: 12px; background: #141d2a; }
.card h1 { font-size: 1.6rem; margin: 0 0 20px; }
.card p { color: #b4bfd0; line-height: 1.7; }
.form { display: grid; gap: 14px; }
.form.inline { display: inline-block; margin: 16px 12px 0 0; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: #a2afc1; }
.form input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #3a4b61; background: #0d131c; color: #e7edf6; }
.form input:focus { outline: 2px solid #83dcbb; outline-offset: 1px; }
button { font: inherit; font-weight: 600; padding: 10px 18px; border: 0; border-radius: 8px; background: #83dcbb; color: #0d1a14; cursor: pointer; }
button.secondary { background: transparent; color: #e7edf6; border: 1px solid #3a4b61; }
.alert { padding: 10px 14px; border-radius: 8px; background: #3a1d24; color: #ffb4c0 !important; }
.field-error { margin: -6px 0 0; font-size: .85rem; color: #ffb4c0 !important; }
.hint { margin: -6px 0 0; font-size: .85rem; }
.links { font-size: .9rem; }
.links a { color: #83dcbb; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.facts dt { color: #a2afc1; }
.facts dd { margin: 0; }
.site-card { max-width: 640px; }
a.button { display: inline-block; font-weight: 600; padding: 10px 18px; border-radius: 8px; background: #83dcbb; color: #0d1a14; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; border: 1px solid #3a4b61; color: #b4bfd0; }
.go-card { max-width: 560px; }
.go-checks { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.go-checks li.ok { color: #83dcbb; }
.go-checks li.fail { color: #ffb4c0; }

@media (max-width: 640px) {
  main, .site-header, footer { padding: 14px 16px; }
  .site-header { flex-wrap: wrap; gap: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .hero { padding-top: 16px; }
  .site-grid, .category-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
@media (min-width: 1280px) { .site-grid { grid-template-columns: repeat(4, 1fr); } }
.workbench-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 18px; font-size: .95rem; }
.workbench-nav a { color: #b4bfd0; }
.workbench-head h1 { margin-bottom: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; border-bottom: 1px solid #293243; }
.tabs a { padding: 8px 12px; color: #b4bfd0; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: #e7edf6; border-bottom-color: #83dcbb; }
.card.wide { max-width: none; margin-bottom: 18px; }
.card.highlight { border-color: #83dcbb; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #293243; vertical-align: top; }
table.data th { color: #a2afc1; font-weight: 500; }
.status { font-size: .8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid #3a4b61; }
.status-published { color: #83dcbb; border-color: #3d7a62; }
.status-pending { color: #f5c46b; border-color: #7a6333; }
.status-rejected, .status-suspended { color: #ffb4c0; border-color: #7a3f4a; }
.alert.success { background: #173327; color: #9fe6c8 !important; }
.alert.info { background: #172637; color: #b9d3ff !important; }
.form.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.form textarea, .form input[type="number"], .form input[type="date"] { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #3a4b61; background: #0d131c; color: #e7edf6; }
.form .radio { display: flex; flex-direction: row; gap: 8px; align-items: center; color: #cfd8e5; }
.form fieldset { border: 1px solid #293243; border-radius: 8px; padding: 10px 14px; display: grid; gap: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions .form.inline { margin: 0; }
button.danger { background: transparent; color: #ffb4c0; border: 1px solid #7a3f4a; }
button:disabled { opacity: .45; cursor: not-allowed; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
code.copy { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 4px 8px; border-radius: 6px; background: #0d131c; border: 1px solid #293243; user-select: all; }
.steps { line-height: 2; padding-left: 20px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { padding: 14px; border: 1px solid #2b3a4d; border-radius: 10px; }
.tile p { margin: 4px 0; }
.tile .big { font-size: 2rem; font-weight: 700; }
meter { width: 120px; }
.definitions summary { cursor: pointer; color: #a2afc1; }
.admin-tabs { margin-top: 0; }
a.tile { display: block; color: inherit; }
a.tile:hover { border-color: #83dcbb; }
.form select { font: inherit; padding: 9px 10px; border-radius: 8px; border: 1px solid #3a4b61; background: #0d131c; color: #e7edf6; }
.depth-1 { padding-left: 18px; } .depth-2 { padding-left: 36px; } .depth-3 { padding-left: 54px; }
.warn { color: #f5c46b; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
pre.debug { max-height: 420px; overflow: auto; font-size: .8rem; line-height: 1.5; padding: 12px; background: #0b1017; border: 1px solid #293243; border-radius: 8px; white-space: pre-wrap; word-break: break-all; }
.qr { width: 200px; max-width: 100%; padding: 10px; background: #ffffff; border-radius: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.status-succeeded { color: #83dcbb; border-color: #3d7a62; }
.status-queued, .status-running { color: #f5c46b; border-color: #7a6333; }
.status-failed { color: #ffb4c0; border-color: #7a3f4a; }
.entry-list { padding-left: 1.2rem; } .entry-list li { margin: .8rem 0; }
