:root {
    --tx-orange: #ff6900;
    --tx-orange-soft: #fff4ec;
    --tx-black: #161616;
    --tx-text: #242424;
    --tx-muted: #6f7782;
    --tx-bg: #f6f7f8;
    --tx-card: #ffffff;
    --tx-border: #e3e6e9;
    --tx-border-strong: #d4d8dd;
    --tx-success: #16833a;
    --tx-warning: #9a6200;
    --tx-danger: #b42318;
    --tx-radius: 8px;
    --tx-container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--tx-bg);
    color: var(--tx-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
button, input, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.tx-container {
    width: min(var(--tx-container), calc(100% - 32px));
    margin: 0 auto;
}

.tx-header {
    position: sticky;
    z-index: 900;
    top: 0;
    height: 54px;
    background: rgba(18, 18, 18, .97);
    border-bottom: 1px solid #2a2a2a;
    backdrop-filter: blur(12px);
}
.tx-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}
.tx-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
}
.tx-logo img {
    display: block;
    width: auto;
    height: 36px;
    max-width: 166px;
    object-fit: contain;
}
.tx-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.tx-nav a {
    padding: 8px 10px;
    border-radius: 6px;
    color: #bfc3c8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.tx-nav a:hover,
.tx-nav a.is-active {
    background: #252525;
    color: #fff;
}
.tx-header-search {
    position: relative;
    width: min(330px, 32vw);
    margin-left: auto;
}
.tx-header-search input {
    width: 100%;
    height: 34px;
    padding: 0 12px 0 31px;
    border: 1px solid #343434;
    border-radius: 7px;
    outline: 0;
    background: #202020;
    color: #fff;
    font-size: 13px;
}
.tx-header-search input:focus { border-color: #666; }
.tx-header-search input::placeholder { color: #84898f; }
.tx-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 11px;
    color: #8c9299;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}
.tx-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tx-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.tx-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #eef0f2;
    background: #fff;
    color: var(--tx-text);
    text-align: left;
    cursor: pointer;
}
.tx-suggestion:last-child { border-bottom: 0; }
.tx-suggestion:hover,
.tx-suggestion.is-active { background: var(--tx-orange-soft); }
.tx-suggestion strong { display: block; font-size: 12px; }
.tx-suggestion small { color: var(--tx-muted); font-size: 10px; }
.tx-suggestion-brand { color: var(--tx-orange); font-size: 9px; font-weight: 800; }

.tx-page-head {
    background: #fff;
    border-bottom: 1px solid var(--tx-border);
}
.tx-page-head-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}
.tx-page-title { margin: 0; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; }
.tx-page-subtitle { margin: 4px 0 0; color: var(--tx-muted); font-size: 12px; }
.tx-main { padding: 20px 0 48px; }

.tx-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--tx-border-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--tx-text);
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}
.tx-button:hover { border-color: #aeb4bb; }
.tx-button-primary { border-color: var(--tx-orange); background: var(--tx-orange); color: #fff; }
.tx-button-soft { border-color: #ffd8bf; background: var(--tx-orange-soft); color: #c44f00; }
.tx-button-dark { border-color: #222; background: #222; color: #fff; }

.tx-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-chip {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--tx-border);
    border-radius: 999px;
    background: #fff;
    color: var(--tx-muted);
    font-size: 10px;
    font-weight: 800;
}
.tx-chip.is-active { border-color: var(--tx-orange); background: var(--tx-orange-soft); color: #c44f00; }

.tx-card {
    background: #fff;
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius);
}
.tx-empty {
    padding: 42px 20px;
    background: #fff;
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius);
    color: var(--tx-muted);
    text-align: center;
}

.tx-table-shell { overflow-x: auto; background: #fff; border: 1px solid var(--tx-border); border-radius: var(--tx-radius); }
.tx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tx-table th {
    padding: 8px 10px;
    background: #fafafa;
    border-bottom: 1px solid var(--tx-border);
    color: var(--tx-muted);
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tx-table td { padding: 9px 10px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
.tx-table tr:last-child td { border-bottom: 0; }
.tx-table tbody tr:hover { background: #fcfcfc; }

.tx-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; }
.tx-status-online::before { background: #22a447; }
.tx-status-slow::before { background: #d99200; }
.tx-status-offline::before { background: #d33b32; }

.tx-footer { margin-top: 20px; background: #fff; border-top: 1px solid var(--tx-border); color: var(--tx-muted); }
.tx-footer-inner { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }

@media (max-width: 860px) {
    .tx-nav { display: none; }
    .tx-header-search { width: auto; flex: 1; }
}
@media (max-width: 640px) {
    .tx-container { width: min(var(--tx-container), calc(100% - 20px)); }
    .tx-header { height: 50px; }
    .tx-logo img { height: 30px; max-width: 138px; }
    .tx-page-head-inner { min-height: 68px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .tx-page-title { font-size: 22px; }
    .tx-footer-inner { align-items: flex-start; flex-direction: column; padding: 15px 0; gap: 4px; }
}


/* UI V2.1 readability + autocomplete */
.tx-header-search input { font-size:13px; }
.tx-suggestion strong { font-size:13px; }
.tx-suggestion small { font-size:11px; }
.tx-suggestion-brand { font-size:10px; }
.tx-page-subtitle { font-size:13px; }
.tx-chip { font-size:11px; }
.tx-autocomplete { position:relative; min-width:0; }
.tx-autocomplete-input { width:100%; height:42px; padding:0 38px 0 12px; border:1px solid var(--tx-border-strong); border-radius:8px; background:#fff; color:var(--tx-text); outline:0; font-size:13px; }
.tx-autocomplete-input:focus { border-color:#999fa6; box-shadow:0 0 0 3px rgba(255,105,0,.08); }
.tx-autocomplete .tx-suggestions { z-index:1000; max-height:310px; overflow-y:auto; }
.tx-table td { line-height:1.4; }
@media (max-width:640px){ body{font-size:15px}.tx-header-search input{font-size:12px}.tx-button{font-size:12px}.tx-table{font-size:12px} }

/* UI V2.2 live metadata */
.tx-status-checking::before { background: var(--tx-orange); animation: tx-status-pulse 1s ease-in-out infinite alternate; }
.tx-status-unknown::before { background: #9aa0a6; }
@keyframes tx-status-pulse { from { opacity: .35; } to { opacity: 1; } }
