/* =========================================================
   寻址导航 — 视觉系统
   索引蓝 + 路牌黄，纸张底色，直角卡片，地址编号贯穿全站
   ========================================================= */

:root {
    color-scheme: light;
    --paper: #f1f4f2;
    --paper-deep: #e7eeeb;
    --surface: #ffffff;
    --ink: #0f2533;
    --ink-2: #3d5563;
    --muted: #536873;
    --line: #d4dfe3;
    --line-strong: #8299a3;
    --blue: #1646d8;
    --blue-deep: #0c2f9e;
    --blue-soft: #e8eeff;
    --yellow: #ffd43b;
    --yellow-soft: #fff5c7;
    --green: #0c7a5b;
    --red: #b83a2e;
    --red-soft: #fbeceb;
    --wrap: 1180px;
    --gutter: 32px;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-num: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
figure {
    margin: 0;
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

code,
pre {
    font-family: var(--font-mono);
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.wrap {
    width: min(var(--wrap), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 999;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: top 0.18s ease;
}

.skip-link:focus {
    top: 12px;
}

.mono,
.break-all {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
}

.break-all {
    word-break: break-all;
}

.text-link {
    color: var(--blue);
    font-weight: 700;
    border-bottom: 1px solid currentColor;
    transition: color 0.16s ease;
}

.text-link:hover {
    color: var(--blue-deep);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--solid {
    background: var(--blue);
    color: #fff;
}

.btn--solid:hover {
    background: var(--blue-deep);
}

.btn--yellow {
    background: var(--yellow);
    color: var(--ink);
    border-color: rgba(15, 37, 51, 0.14);
}

.btn--yellow:hover {
    background: #ffe16b;
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn--danger {
    background: var(--red);
    color: #fff;
}

.btn--danger:hover {
    background: #992e24;
}

.btn--danger-ghost {
    background: var(--surface);
    border-color: #e3b4ae;
    color: var(--red);
}

.btn--danger-ghost:hover {
    background: var(--red-soft);
    border-color: var(--red);
}

.btn--sm {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 11px;
}

.btn--block {
    width: 100%;
}

.btn.is-disabled,
.btn:disabled {
    opacity: 0.4;
    pointer-events: none;
    transform: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-row--stack {
    flex-direction: column;
}

/* ---------- Header ---------- */

.site-head {
    background: rgba(255, 255, 255, 0.92);
    border-top: 5px solid var(--blue);
    border-bottom: 1px solid var(--line);
}

.site-head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.brand__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--blue);
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.brand__mark::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 12px;
    height: 12px;
    background: var(--yellow);
    border: 2px solid #fff;
}

.brand__text {
    display: grid;
    gap: 1px;
}

.brand__text strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.14em;
}

.brand__text span {
    font-family: var(--font-num);
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    position: relative;
    padding: 9px 15px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.16s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---------- Ads ---------- */

.ad-wrap {
    margin-top: 24px;
}

.ad {
    position: relative;
    padding: 5px;
    border: 1px dashed var(--line-strong);
    background: var(--surface);
}

.ad--content {
    margin: 0 32px 30px;
}

.ad__tag {
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 2;
    padding: 2px 8px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

.ad__inner {
    display: grid;
    place-items: center;
    min-height: 108px;
    padding: 10px;
    overflow: hidden;
    background-color: #f7f9fa;
    background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(22, 70, 216, 0.035) 11px 12px);
}

.ad--content .ad__inner {
    min-height: 116px;
}

.ad__placeholder {
    display: grid;
    gap: 3px;
    text-align: center;
}

.ad__placeholder-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-2);
}

.ad__placeholder-meta {
    font-size: 10px;
    color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
    background-image: linear-gradient(90deg, rgba(15, 37, 51, 0.035) 1px, transparent 1px);
    background-size: 64px 100%;
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
    gap: 56px;
    align-items: start;
    padding-top: 58px;
    padding-bottom: 68px;
}

.hero__copy {
    min-width: 0;
}

.hero__kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.hero__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--yellow);
    border: 2px solid var(--ink);
}

.hero h1 {
    max-width: 12em;
    margin-bottom: 22px;
    color: var(--ink);
    font-size: clamp(2.9rem, 5.6vw, 4.9rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.hero__lead {
    max-width: 48ch;
    margin-bottom: 28px;
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.85;
}

.search-bar {
    display: flex;
    align-items: center;
    width: min(560px, 100%);
    min-height: 60px;
    padding-left: 17px;
    border: 1.5px solid var(--ink);
    background: var(--surface);
    box-shadow: 5px 5px 0 rgba(22, 70, 216, 0.13);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.search-bar:focus-within {
    border-color: var(--blue);
    box-shadow: 5px 5px 0 var(--yellow);
}

.search-bar__icon {
    display: grid;
    place-items: center;
    flex: none;
    color: var(--muted);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    height: 58px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #8b9aa2;
}

.search-bar input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-bar button {
    align-self: stretch;
    flex: none;
    padding: 0 24px;
    border: 0;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.16s ease;
}

.search-bar button:hover {
    background: var(--blue-deep);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 34px;
}

.hero__stats > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 0 26px;
    border-left: 1px solid var(--line-strong);
}

.hero__stats > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero__stats dt {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.hero__stats dd {
    color: var(--ink);
    font-family: var(--font-num);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* ---------- Latest board ---------- */

.board {
    margin-top: 6px;
    border: 1px solid var(--ink);
    border-top: 6px solid var(--blue);
    background: var(--surface);
    box-shadow: 12px 12px 0 var(--yellow);
}

.board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.board__head h2 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.live-tag i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(12, 122, 91, 0.12);
}

.board__list {
    display: grid;
}

.board__item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px dashed var(--line);
    transition: background 0.16s ease;
}

.board__item:hover {
    background: #f7f9ff;
}

.board__item:hover .board__title {
    color: var(--blue);
}

.board__item:hover .board__arrow {
    color: var(--blue);
    transform: translateX(2px);
}

.board__id {
    grid-row: 1 / 3;
    justify-self: start;
    padding: 2px 6px;
    background: var(--blue-soft);
    color: var(--blue);
    font-family: var(--font-num);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.board__title {
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.16s ease;
}

.board__host {
    overflow: hidden;
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board__arrow {
    grid-column: 3;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    color: var(--line-strong);
    transition: color 0.16s ease, transform 0.16s ease;
}

.board__empty {
    padding: 28px 20px;
    border-bottom: 1px dashed var(--line);
}

.board__empty p {
    font-size: 13px;
    font-weight: 700;
}

.board__empty span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.board__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: #fbfcfc;
    color: var(--muted);
    font-size: 10px;
}

.board__foot a {
    color: var(--blue);
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

/* ---------- Index ---------- */

.index {
    padding-top: 18px;
    padding-bottom: 8px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
}

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.section-head__tag {
    flex: none;
    padding: 4px 10px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.03em;
}

.site-list {
    border-bottom: 1px solid var(--line);
}

.site-list__item {
    display: block;
}

.site-row {
    display: grid;
    grid-template-columns: 82px 52px minmax(0, 1fr) 156px 30px;
    gap: 18px;
    align-items: center;
    padding: 16px 8px;
    border-top: 1px solid var(--line);
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.site-list__item:first-child .site-row {
    border-top: 0;
}

.site-row:hover {
    background: var(--surface);
    box-shadow: inset 3px 0 0 var(--blue);
}

.site-row__id {
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 11px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    transition: color 0.16s ease;
}

.site-row:hover .site-row__id {
    color: var(--blue);
}

.site-row__main {
    min-width: 0;
}

.site-row__title {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.16s ease;
}

.site-row:hover .site-row__title {
    color: var(--blue);
}

.site-row__summary {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-row__host {
    overflow: hidden;
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 11px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-row__go {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-strong);
    color: var(--ink-2);
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.site-row:hover .site-row__go {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    transform: translateX(2px);
}

.logo-tile {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}

.logo-tile--sm {
    width: 36px;
    height: 36px;
}

.logo-tile--md {
    width: 46px;
    height: 46px;
}

.logo-tile--lg {
    width: 76px;
    height: 76px;
    border-color: var(--line-strong);
}

.logo-tile__fallback {
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.logo-tile--sm .logo-tile__fallback {
    font-size: 14px;
}

.logo-tile--lg .logo-tile__fallback {
    font-size: 28px;
}

.logo-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 5px;
    background: var(--surface);
    object-fit: contain;
}

.logo-tile--sm img {
    padding: 3px;
}

/* ---------- Pagination ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 36px 0 66px;
}

.pager a,
.pager span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-2);
    font-family: var(--font-num);
    font-size: 11px;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.pager a:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.pager .is-current {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.pager .pager__step {
    padding: 0 14px;
    font-family: var(--font-sans);
}

.pager .is-disabled {
    opacity: 0.4;
}

.pager .pager__gap {
    border-color: transparent;
    background: transparent;
}

/* ---------- Empty states ---------- */

.empty-state {
    margin: 36px 0 66px;
    padding: 52px 28px;
    border: 1px dashed var(--line-strong);
    background: var(--surface);
    text-align: center;
}

.empty-state--left {
    text-align: left;
}

.empty-state__serial {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.empty-state p {
    max-width: 52ch;
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state--left p {
    margin-left: 0;
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.03em;
}

.crumbs a {
    color: var(--ink-2);
}

.crumbs a:hover {
    color: var(--blue);
}

/* ---------- Site detail ---------- */

.site-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 38px;
    align-items: start;
    padding-bottom: 82px;
}

.site-sheet {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}

.site-sheet__head {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
}

.sheet-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 10px;
    background: var(--blue);
    background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.055) 12px 13px);
    color: #fff;
}

.sheet-rail span {
    opacity: 0.72;
    font-size: 9px;
    letter-spacing: 0.18em;
    writing-mode: vertical-rl;
}

.sheet-rail strong {
    font-family: var(--font-num);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.site-sheet__title {
    min-width: 0;
    padding: 26px 32px 30px;
}

.status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid;
    background: var(--surface);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.status-pill i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill--online {
    border-color: #b7d9cc;
    background: #f0f8f5;
    color: var(--green);
}

.status-pill--offline {
    border-color: #dcc0bc;
    background: var(--red-soft);
    color: var(--red);
}

.title-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.title-lockup__text {
    min-width: 0;
}

.title-lockup h1 {
    color: var(--ink);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.04em;
    word-break: break-word;
}

.domain {
    display: inline-block;
    margin-top: 5px;
    color: var(--blue);
    font-family: var(--font-num);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.site-summary {
    max-width: 62ch;
    margin-top: 22px;
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.8;
}

.intro-block {
    padding: 30px 32px 34px;
    border-top: 1px solid var(--line);
}

.intro-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.intro-block__head h2 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.intro-block__head span {
    color: var(--muted);
    font-size: 10px;
}

.prose {
    max-width: 68ch;
    padding-top: 18px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.95;
    word-break: break-word;
}

.prose p {
    margin-bottom: 1em;
}

.prose a {
    color: var(--blue);
    border-bottom: 1px solid currentColor;
}

.sheet-meta {
    padding: 17px 32px;
    border-top: 1px solid var(--line);
    background: #f8faf9;
}

.sheet-meta dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sheet-meta dt {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.sheet-meta dd {
    margin-top: 2px;
    font-family: var(--font-num);
    font-size: 12px;
    color: var(--ink);
}

.site-aside {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.jump-ticket {
    position: relative;
    padding: 26px;
    background-color: var(--blue);
    background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.045) 14px 15px);
    color: #fff;
    box-shadow: 8px 8px 0 var(--yellow);
}

.jump-ticket__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 0.9;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.jump-ticket__online {
    padding: 1px 7px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 9px;
    letter-spacing: 0.02em;
}

.jump-ticket__host {
    display: block;
    margin-top: 15px;
    color: #fff;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    word-break: break-all;
}

.jump-ticket__note {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
}

.jump-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    padding: 13px 17px;
    border: 1px solid rgba(15, 37, 51, 0.18);
    background: var(--yellow);
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    transition: background 0.16s ease, transform 0.16s ease;
}

.jump-btn:hover {
    background: #ffe16b;
    transform: translateY(-1px);
}

.jump-btn:focus-visible {
    outline-color: #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px var(--ink);
}

.jump-ticket__encoded {
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    line-height: 1.6;
}

.ticket-perf {
    position: relative;
    margin: 20px -26px 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.36);
}

.ticket-perf::before,
.ticket-perf::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--paper);
}

.ticket-perf::before {
    left: -11px;
}

.ticket-perf::after {
    right: -11px;
}

.jump-ticket__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.jump-ticket__facts dt {
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.jump-ticket__facts dd {
    margin-top: 1px;
    font-size: 13px;
    font-weight: 600;
}

.side-block {
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.side-block h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.fact-list {
    display: grid;
}

.fact-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

.fact-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fact-list dt {
    color: var(--muted);
    font-size: 11px;
}

.fact-list dd {
    color: var(--ink);
    font-family: var(--font-num);
    font-size: 11px;
    text-align: right;
}

.related-list {
    display: grid;
}

.related-list li + li {
    border-top: 1px dashed var(--line);
}

.related-list a {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 10px 0;
}

.related-list a:hover strong {
    color: var(--blue);
}

.related-list__id {
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 10px;
}

.related-list__main {
    min-width: 0;
}

.related-list strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.16s ease;
}

.related-list small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-jump {
    display: none;
}

.page-site {
    padding-bottom: 0;
}

/* ---------- Search page ---------- */

.search-page {
    padding-top: 38px;
    padding-bottom: 78px;
}

.search-page__head {
    max-width: 820px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.eyebrow__mark {
    width: 10px;
    height: 10px;
    background: var(--yellow);
    border: 1px solid var(--ink);
}

.search-page h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    word-break: break-word;
}

.search-page__meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.search-bar--inline {
    margin-top: 24px;
}

.search-page__list {
    margin-top: 32px;
}

/* ---------- Error page ---------- */

.status-page {
    padding-top: 54px;
    padding-bottom: 96px;
}

.status-page__grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
    min-height: 380px;
}

.status-page__code {
    position: relative;
    isolation: isolate;
    color: var(--blue-soft);
    font-family: var(--font-num);
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.08em;
    -webkit-text-stroke: 2px var(--blue);
}

@supports (-webkit-text-stroke: 2px #000) {
    .status-page__code {
        color: transparent;
    }
}

.status-page__code::before {
    content: "";
    position: absolute;
    left: -18px;
    bottom: 4%;
    z-index: -1;
    width: 54%;
    height: 42%;
    background: var(--yellow);
}

.status-page__copy h1 {
    max-width: 15ch;
    margin-top: 14px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.status-page__message {
    max-width: 50ch;
    margin-top: 16px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.85;
}

.status-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.status-page__hint {
    margin-top: 20px;
    color: var(--muted);
    font-size: 11px;
}

/* ---------- Footer ---------- */

.site-foot {
    border-top: 1px solid var(--line);
    background: var(--surface);
    margin-top: 32px;
}

.site-foot__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding-top: 38px;
    padding-bottom: 26px;
}

.brand--footer .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
}

.brand--footer .brand__text strong {
    font-size: 17px;
}

.site-foot__brand p {
    max-width: 48ch;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.site-foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
    padding-top: 8px;
    font-size: 12px;
}

.site-foot__links a {
    color: var(--ink-2);
    border-bottom: 1px solid transparent;
}

.site-foot__links a:hover {
    color: var(--blue);
    border-bottom-color: currentColor;
}

.site-foot__legal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

/* =========================================================
   Admin
   ========================================================= */

.admin-body {
    background: #e9eeee;
    font-size: 14px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 20px;
    background: var(--ink);
    color: #fff;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 6px;
}

.admin-brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    background: var(--yellow);
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.admin-brand strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.admin-brand small {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.admin-nav {
    display: grid;
    gap: 3px;
    margin-top: 36px;
}

.admin-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-left: 2px solid transparent;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.admin-nav__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-nav__item.is-active {
    border-left-color: var(--yellow);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.admin-side a:focus-visible,
.admin-side button:focus-visible {
    outline-color: var(--yellow);
    outline-offset: 2px;
}

.admin-nav__icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: none;
    opacity: 0.8;
}

.admin-side__foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-side__link,
.admin-side__logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 6px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    text-align: left;
}

.admin-side__link:hover,
.admin-side__logout:hover {
    color: #fff;
}

.admin-side__foot form {
    margin: 0;
}

.admin-side__foot p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    line-height: 1.6;
}

.admin-main {
    min-width: 0;
    max-width: 1480px;
    padding: 30px 38px 48px;
}

.admin-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.admin-top__crumb {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.admin-top h1 {
    margin-top: 2px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.admin-top__user {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
}

.admin-top__user strong {
    color: var(--ink);
    font-size: 12px;
}

.admin-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.admin-foot a {
    color: var(--blue);
}

/* Flash */

.flash {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    background: var(--surface);
    font-size: 12px;
    line-height: 1.65;
}

.flash--compact {
    margin-bottom: 14px;
}

.flash__dot {
    width: 7px;
    height: 7px;
    flex: none;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.flash--success {
    border-left-color: var(--green);
}

.flash--success .flash__dot {
    background: var(--green);
}

.flash--warning {
    border-left-color: #c79200;
    background: #fffaf0;
}

.flash--warning .flash__dot {
    background: #c79200;
}

.flash--error {
    border-left-color: var(--red);
    background: #fffafa;
}

.flash--error .flash__dot {
    background: var(--red);
}

.flash--info {
    border-left-color: var(--blue);
}

.flash code {
    padding: 1px 4px;
    background: var(--paper-deep);
    font-size: 11px;
}

/* Stats strip */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: var(--surface);
}

.stat {
    padding: 20px 22px;
    border-left: 1px solid var(--line);
}

.stat:first-child {
    border-left: 0;
}

.stat__label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.stat__value {
    display: block;
    margin-top: 3px;
    color: var(--blue);
    font-family: var(--font-num);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat__value--muted {
    color: var(--ink);
}

.stat__note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

/* Quick actions */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 22px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.quick-action:hover {
    border-color: var(--blue);
    transform: translateY(-1px);
}

.quick-action__index {
    flex: none;
    color: var(--blue);
    font-family: var(--font-num);
    font-size: 11px;
}

.quick-action strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.quick-action small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

/* Admin grid & panels */

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.admin-grid--import {
    grid-template-columns: minmax(0, 1fr) 380px;
}

.admin-side-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.panel--wide {
    min-width: 0;
}

.panel--placeholder {
    margin-top: 20px;
    padding: 38px;
    border-style: dashed;
}

.panel__serial {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel__head--tight {
    margin-bottom: 10px;
}

.panel__head h2 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.panel__head p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.panel__divider {
    height: 1px;
    margin: 24px 0;
    background: var(--line);
}

.panel__empty {
    padding: 34px 20px;
    border: 1px dashed var(--line);
    background: #fafcfc;
    text-align: center;
}

.panel__empty p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
}

.panel__hint {
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.panel__hint code {
    padding: 1px 4px;
    background: var(--paper-deep);
}

.panel--placeholder h2 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.panel--placeholder p {
    max-width: 58ch;
    color: var(--ink-2);
    font-size: 12px;
}

/* Tables */

.table-scroll {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.admin-table th {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    background: #f7f9f9;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: #fbfcfc;
}

.admin-table .is-right {
    text-align: right;
}

.table-site {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--ink);
}

.table-site > span:last-child {
    min-width: 0;
}

.table-site strong {
    display: block;
    max-width: 280px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-site small {
    display: block;
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 9px;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.table-actions form {
    margin: 0;
}

.table-dates {
    white-space: nowrap;
}

.table-dates span {
    display: block;
    font-family: var(--font-num);
    font-size: 10px;
}

.table-dates small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.admin-table--errors td {
    font-size: 11px;
}

.admin-table--guide td:first-child {
    white-space: nowrap;
}

.admin-table--guide code,
.rule-list code {
    padding: 1px 4px;
    background: var(--paper-deep);
    font-size: 10px;
}

/* Endpoints / code */

.endpoint-list {
    display: grid;
    gap: 7px;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 10px;
}

.endpoint code {
    overflow: hidden;
    color: var(--ink-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint__method {
    flex: none;
    padding: 1px 5px;
    background: var(--blue);
    color: #fff;
    font-family: var(--font-num);
    font-size: 8px;
    letter-spacing: 0.03em;
}

.endpoint__method--get {
    background: var(--green);
}

.code-block {
    margin-top: 13px;
    padding: 11px 12px;
    overflow-x: auto;
    background: var(--ink);
    color: #dce7ea;
    font-size: 9px;
    line-height: 1.7;
}

/* Import */

.upload-form {
    display: grid;
    gap: 14px;
}

.upload-box {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 28px 20px;
    border: 1.5px dashed var(--line-strong);
    background: #f8fafa;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.upload-box:hover,
.upload-box:focus-within {
    border-color: var(--blue);
    background: #f5f8ff;
}

.upload-box__icon {
    color: var(--blue);
}

.upload-box__title {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
}

.upload-box__hint {
    color: var(--muted);
    font-size: 10px;
}

.upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upload-form__actions span {
    color: var(--muted);
    font-size: 10px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

.result-stats > div {
    padding: 12px;
    border-left: 1px solid var(--line);
    text-align: center;
}

.result-stats > div:first-child {
    border-left: 0;
}

.result-stats span {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.result-stats strong {
    display: block;
    margin-top: 1px;
    color: var(--blue);
    font-family: var(--font-num);
    font-size: 23px;
}

.result-stats strong.is-error {
    color: var(--red);
}

.rule-list {
    display: grid;
}

.rule-list li {
    position: relative;
    padding: 9px 0 9px 15px;
    border-top: 1px dashed var(--line);
    color: var(--ink-2);
    font-size: 11px;
    line-height: 1.7;
}

.rule-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.rule-list li::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--blue);
}

/* Offline management */

.offline-search {
    margin-bottom: 20px;
}

.offline-search__form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 460px;
}

.offline-search__form .input {
    flex: 1;
    min-width: 190px;
}

.offline-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 20px;
    align-items: start;
}

.offline-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}

.offline-card__head {
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.offline-card__title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.offline-card__title > div {
    min-width: 0;
}

.offline-card__title h2 {
    margin-top: 7px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.offline-card__title .mono {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.offline-card__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.offline-card__facts > div {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
}

.offline-card__facts > div:nth-child(1),
.offline-card__facts > div:nth-child(2) {
    border-top: 0;
}

.offline-card__facts > div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.offline-card__facts dt {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.05em;
}

.offline-card__facts dd {
    margin-top: 3px;
    color: var(--ink-2);
    font-size: 11px;
    line-height: 1.7;
    word-break: break-word;
}

.offline-actions {
    display: grid;
    gap: 16px;
}

.action-panel {
    border-top: 4px solid var(--red);
}

.action-panel h2 {
    font-size: 16px;
    font-weight: 800;
}

.action-panel > p {
    margin: 7px 0 16px;
    color: var(--ink-2);
    font-size: 11px;
    line-height: 1.75;
}

.action-panel__note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 10px;
}

.action-panel__note span {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--ink-2);
}

.action-panel__note li {
    position: relative;
    padding-left: 11px;
    line-height: 1.7;
}

.action-panel__note li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--line-strong);
}

/* Filters */

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.filter-tab span {
    padding: 0 5px;
    background: var(--paper-deep);
    color: var(--muted);
    font-family: var(--font-num);
    font-size: 9px;
}

.filter-tab:hover {
    color: var(--ink);
}

.filter-tab.is-active {
    border-bottom-color: var(--blue);
    color: var(--blue);
}

.filter-tab.is-active span {
    background: var(--blue-soft);
    color: var(--blue);
}

.admin-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

/* Forms */

.field {
    display: grid;
    gap: 5px;
}

.field label {
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600;
}

.input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    outline: 0;
    background: var(--surface);
    font-size: 13px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

textarea.input {
    height: auto;
    min-height: 120px;
    padding: 10px 12px;
    resize: vertical;
}

/* Auth */

.admin-body--auth {
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 12px 12px 0 var(--blue);
}

.auth-card__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.auth-card__brand .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
}

.auth-card__brand strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.auth-card__brand span:last-child {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.auth-card h1 {
    margin-top: 24px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.auth-card__lead {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.auth-form__submit {
    width: 100%;
    margin-top: 4px;
    min-height: 46px;
}

.auth-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.auth-card__foot a {
    color: var(--blue);
    font-weight: 700;
}

.auth-card .flash {
    margin-top: 16px;
    margin-bottom: 0;
}

.auth-card code {
    padding: 1px 3px;
    background: var(--paper-deep);
    font-size: 10px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
    .hero__grid {
        gap: 38px;
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
    }

    .site-layout {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 28px;
    }

    .admin-grid,
    .admin-grid--import {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid--import .admin-side-stack {
        grid-template-columns: 1fr;
    }

    .offline-result {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 44px;
        padding-bottom: 54px;
    }

    .hero h1 {
        max-width: 11em;
    }

    .board {
        width: min(620px, 100%);
    }

    .site-row {
        grid-template-columns: 76px 50px minmax(0, 1fr) 28px;
    }

    .site-row__host {
        display: none;
    }

    .offline-result {
        grid-template-columns: 1fr;
    }

    .stat-strip {
        grid-template-columns: 1fr 1fr;
    }

    .stat:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stat:nth-child(4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 900px) {
    :root {
        --gutter: 24px;
    }

    .site-layout {
        grid-template-columns: 1fr;
    }

    .site-aside {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .jump-ticket {
        grid-row: span 2;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-side {
        position: static;
        height: auto;
        padding: 16px 20px;
    }

    .admin-brand {
        padding: 0;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 16px;
    }

    .admin-nav__item {
        border-left: 0;
        border-bottom: 2px solid transparent;
        padding: 8px 11px;
    }

    .admin-nav__item.is-active {
        border-bottom-color: var(--yellow);
        background: rgba(255, 255, 255, 0.08);
    }

    .admin-side__foot {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 14px;
        padding-top: 12px;
    }

    .admin-side__foot p {
        display: none;
    }

    .admin-side__link,
    .admin-side__logout {
        width: auto;
        padding: 4px 0;
    }

    .admin-main {
        padding: 24px 24px 40px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .mobile-jump {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 3px solid var(--yellow);
        background: var(--ink);
        color: #fff;
    }

    .mobile-jump__text {
        min-width: 0;
        line-height: 1.3;
    }

    .mobile-jump__text span {
        display: block;
        color: rgba(255, 255, 255, 0.55);
        font-size: 9px;
    }

    .mobile-jump__text strong {
        display: block;
        overflow: hidden;
        font-family: var(--font-num);
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-jump__btn {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        flex: none;
        min-height: 38px;
        padding: 0 16px;
        background: var(--yellow);
        color: var(--ink);
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-jump__btn:focus-visible {
        outline-color: #fff;
        outline-offset: 3px;
    }

    .page-site {
        padding-bottom: 66px;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 16px;
    }

    .site-head__inner {
        min-height: 66px;
        gap: 12px;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .brand__text strong {
        font-size: 17px;
    }

    .brand__text span {
        font-size: 8px;
    }

    .site-nav {
        gap: 0;
    }

    .site-nav a {
        padding: 8px 9px;
        font-size: 11px;
    }

    .site-nav a::after {
        left: 9px;
        right: 9px;
        bottom: 2px;
    }

    .ad-wrap {
        margin-top: 16px;
    }

    .ad__inner {
        min-height: 84px;
    }

    .ad--content {
        margin-right: 20px;
        margin-left: 20px;
    }

    .ad__placeholder-meta {
        font-size: 9px;
    }

    .hero {
        background-image: none;
    }

    .hero__grid {
        padding-top: 34px;
        padding-bottom: 44px;
        gap: 34px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.2rem);
        letter-spacing: -0.05em;
    }

    .hero__lead {
        font-size: 14px;
    }

    .hero__kicker {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .search-bar {
        min-height: 54px;
        box-shadow: 4px 4px 0 rgba(22, 70, 216, 0.13);
    }

    .search-bar input {
        height: 52px;
        padding: 0 9px;
        font-size: 13px;
    }

    .search-bar button {
        padding: 0 17px;
        font-size: 13px;
    }

    .hero__stats {
        margin-top: 26px;
    }

    .hero__stats > div {
        padding: 0 18px;
    }

    .hero__stats dd {
        font-size: 23px;
    }

    .board {
        box-shadow: 7px 7px 0 var(--yellow);
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-row {
        grid-template-columns: 62px 42px minmax(0, 1fr) 26px;
        gap: 10px;
        padding: 13px 4px;
    }

    .site-row__id {
        font-size: 9px;
    }

    .site-row__title {
        font-size: 15px;
    }

    .site-row__summary {
        font-size: 10px;
    }

    .logo-tile--md {
        width: 40px;
        height: 40px;
    }

    .site-row__go {
        width: 26px;
        height: 26px;
    }

    .pager {
        margin: 28px 0 48px;
    }

    .pager .pager__step {
        padding: 0 9px;
    }

    .empty-state {
        padding: 38px 18px;
    }

    .empty-state h3 {
        font-size: 20px;
    }

    .crumbs {
        padding: 18px 0;
    }

    .site-sheet__head {
        grid-template-columns: 1fr;
    }

    .sheet-rail {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 18px;
    }

    .sheet-rail span,
    .sheet-rail strong {
        writing-mode: horizontal-tb;
        font-size: 9px;
    }

    .site-sheet__title {
        padding: 20px;
    }

    .logo-tile--lg {
        width: 60px;
        height: 60px;
    }

    .title-lockup {
        gap: 13px;
    }

    .title-lockup h1 {
        font-size: 1.8rem;
    }

    .site-summary {
        margin-top: 16px;
        font-size: 14px;
    }

    .intro-block {
        padding: 22px 20px 26px;
    }

    .prose {
        font-size: 14px;
        line-height: 1.9;
    }

    .sheet-meta {
        padding: 15px 20px;
    }

    .sheet-meta dl {
        grid-template-columns: 1fr 1fr;
        gap: 10px 18px;
    }

    .site-aside {
        grid-template-columns: 1fr;
    }

    .jump-ticket {
        grid-row: auto;
        padding: 22px;
    }

    .ticket-perf {
        margin-right: -22px;
        margin-left: -22px;
    }

    .status-page {
        padding-top: 34px;
        padding-bottom: 64px;
    }

    .status-page__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .status-page__code {
        font-size: 8rem;
    }

    .status-page__code::before {
        left: -6px;
        width: 42%;
    }

    .site-foot__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 28px;
    }

    .site-foot__links {
        padding-top: 0;
    }

    .search-page {
        padding-top: 26px;
        padding-bottom: 54px;
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .admin-top h1 {
        font-size: 25px;
    }

    .admin-top__user {
        display: none;
    }

    .admin-main {
        padding: 20px 16px 36px;
    }

    .stat {
        padding: 16px;
    }

    .stat__value {
        font-size: 28px;
    }

    .admin-side-stack {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 16px;
    }

    .offline-card__facts {
        grid-template-columns: 1fr;
    }

    .offline-card__facts > div {
        padding: 11px 18px;
    }

    .offline-card__facts > div:nth-child(odd) {
        border-right: 0;
    }

    .offline-card__facts > div:nth-child(2) {
        border-top: 1px solid var(--line);
    }

    .offline-card__head {
        padding: 18px;
    }

    .offline-card__title {
        align-items: flex-start;
    }

    .offline-card__title h2 {
        font-size: 20px;
    }

    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 24px;
        box-shadow: 7px 7px 0 var(--blue);
    }

    .auth-card h1 {
        font-size: 27px;
    }
}

@media (max-width: 520px) {
    .brand__text span {
        display: none;
    }

    .site-nav a {
        padding: 7px 8px;
    }

    .hero__stats {
        gap: 12px 0;
    }

    .hero__stats > div {
        flex: 1;
        padding: 0 12px;
    }

    .hero__stats dd {
        font-size: 21px;
    }

    .hero__stats dt {
        font-size: 9px;
    }

    .board__item {
        grid-template-columns: 74px minmax(0, 1fr) 16px;
        padding: 13px 14px;
    }

    .board__head,
    .board__foot {
        padding-right: 14px;
        padding-left: 14px;
    }

    .site-row {
        grid-template-columns: 52px 38px minmax(0, 1fr) 24px;
        gap: 8px;
    }

    .site-row__summary {
        display: none;
    }

    .logo-tile--md {
        width: 36px;
        height: 36px;
    }

    .status-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .site-summary {
        font-size: 13px;
    }

    .title-lockup h1 {
        font-size: 1.55rem;
    }

    .jump-ticket__host {
        font-size: 1.3rem;
    }

    .jump-btn {
        min-height: 50px;
        font-size: 14px;
    }

    .status-page__actions .btn {
        width: 100%;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .stat {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stat:first-child {
        border-top: 0;
    }

    .quick-action {
        padding: 12px;
    }

    .admin-table {
        min-width: 580px;
    }

    .admin-table--guide {
        min-width: 540px;
    }

    .admin-nav__item {
        font-size: 11px;
        padding: 7px 8px;
    }

    .admin-nav__icon {
        display: none;
    }

    .filter-tabs {
        gap: 0;
    }

    .filter-tab {
        padding: 7px 8px;
        font-size: 10px;
    }

    .auth-card__foot {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}