/* ==========================================================================
   NEXA-PING design system — pages
   Traceroute, FindPing and the batch matrix; the node picker and the copy dialog they share;
   the lookup pages (an address, a filing, a certificate); the help pages.
   ========================================================================== */

/* ---- shared bits --------------------------------------------------------- */

.nx-hint { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; line-height: 1.75; }
.nx-hint strong { color: var(--accent-ink); font-weight: 700; }
.kkyun-loading { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--accent-soft-2); border-top-color: var(--accent); border-radius: 50%; animation: nx-spin 0.8s linear infinite; vertical-align: middle; }
.kkyun-loading--lg { width: 36px; height: 36px; border-width: 3px; }
.kkyun-outline-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: all 0.2s; }
.kkyun-outline-btn:hover { border-color: transparent; color: var(--accent-ink); background: var(--accent-soft); }
.kkyun-outline-btn.is-active { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.kkyun-outline-btn--warning { border-color: var(--warn); color: var(--warn); }
.kkyun-button-icon { font-size: 16px; }
.kkyun-no-spinner { -moz-appearance: textfield; appearance: textfield; }
.kkyun-no-spinner::-webkit-outer-spin-button, .kkyun-no-spinner::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

/* a table that scrolls in its box at every width (the wide ones); on a phone its lines are cards
   (the rules of tools.css) and the box is no box */
.nx-table-wrap--box { overflow: auto; max-height: min(76vh, 860px); }
.nx-table-wrap--box .kkyun-base-table thead th { top: 0; }
@media (max-width: 767px) {
	.nx-table-wrap--box { overflow: visible; max-height: none; }
}

/* ---- node picker --------------------------------------------------------- */

.kkyun-node-picker { position: relative; display: flex; min-width: 0; }
.kkyun-node-picker-btn { max-width: 320px; }
.kkyun-node-picker-btn > .ic, .kkyun-node-picker-btn .kkyun-node-picker-arrow { font-size: 14px; flex: 0 0 auto; transition: transform 0.22s var(--ease); }
.kkyun-node-picker-btn.is-open { border-color: transparent; color: var(--accent-ink); background: var(--accent-soft); }
.kkyun-node-picker-btn.is-open > .ic, .kkyun-node-picker-btn.is-open .kkyun-node-picker-arrow { transform: rotate(180deg); }
.kkyun-node-picker-selected { overflow: hidden; max-width: 240px; text-overflow: ellipsis; white-space: nowrap; }
.kkyun-node-picker-placeholder { color: var(--ink-3); }
.kkyun-node-picker-count { color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.kkyun-node-picker-panel { width: min(32rem, calc(100vw - 24px)); max-height: 26rem; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: nx-pop 0.22s var(--ease-out); }
.kkyun-node-picker-search-wrap { position: relative; flex: 0 0 auto; }
.kkyun-node-picker-search-icon { position: absolute; top: 50%; left: 14px; font-size: 16px; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.kkyun-node-picker-search { width: 100%; height: 42px; padding: 0 40px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-size: 14.5px; outline: none; transition: border-color 0.2s, background 0.2s; }
.kkyun-node-picker-search:focus { border-color: var(--accent); background: var(--surface); }
.kkyun-node-picker-search-clear { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); transform: translateY(-50%); }
.kkyun-node-picker-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; }
.kkyun-node-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.kkyun-node-chip .kkyun-line-label { height: 20px; padding: 0 7px 0 6px; font-size: 11px; }
.kkyun-node-chip-name { font-weight: 600; }
.kkyun-node-chip-remove { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 15px; line-height: 1; }
.kkyun-node-chip-remove:hover { background: var(--bad-soft); color: var(--bad); }
.kkyun-node-picker-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.kkyun-node-picker-tip { flex: 1 1 auto; color: var(--ink-3); font-size: 12px; }
.kkyun-node-picker-actions button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.kkyun-node-picker-action-icon { font-size: 14px; }
.kkyun-node-picker-groups { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 2px; }
.kkyun-node-picker-group { min-width: 0; }
.kkyun-node-picker-group-title { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.kkyun-node-picker-group-count { color: var(--ink-4); font-weight: 500; }
.kkyun-node-picker-group-options { display: flex; flex-wrap: wrap; gap: 6px; }
.kkyun-node-picker-option { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 30px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; cursor: pointer; transition: all 0.16s var(--ease); }
.kkyun-node-picker-option:hover { background: var(--accent-soft); color: var(--accent-ink); }
.kkyun-node-picker-option.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.kkyun-node-picker-option:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.kkyun-node-picker-option .custom-control-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kkyun-node-picker-option .custom-control-label { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kkyun-node-picker-empty { padding: 8px 0; color: var(--ink-3); font-size: 12.5px; }

/* ---- traceroute ---------------------------------------------------------- */

.nx-source { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.nx-source-label { color: var(--ink-3); font-size: 13.5px; }
.kkyun-trace-meta { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; margin-left: auto; }
.kkyun-trace-meta-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.kkyun-trace-meta-label { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.kkyun-trace-meta-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 3px 11px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.kkyun-trace-meta-ip { font-family: var(--mono); font-weight: 600; }
.kkyun-trace-meta-geo { max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.kkyun-trace-meta-geo .adaptive-ip-geo-measure { display: none; }
/* the hop numbers start where the cell's own room does (--hop-x; a card on a phone gives its
   cells no room of their own) */
.kkyun-traceroute-table { --hop-x: 12px; min-width: 1040px; table-layout: auto; }
/* the head of the table starts its names where the cells start what they hold (the rule of every
   table gives the head a room of its own, 18px, and this table's cells take 12px) */
.kkyun-traceroute-table td { padding: 11px 12px; }
.kkyun-traceroute-table thead th { padding: 0 12px; }
/* a hop: its number in a round mark, then all it tells about itself, each whole. The number has
   a box as wide as the mark and starting where it starts, so that it stands in its middle with
   one digit or two */
.kkyun-traceroute-table tbody tr:not(:only-child) td:first-child { position: relative; width: 60px; padding-left: var(--hop-x); color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.kkyun-traceroute-table tbody tr:not(:only-child) td:first-child::before { content: ""; position: absolute; left: var(--hop-x); top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--accent-soft); }
/* the number stands over the mark, which is drawn first */
.trace-hop { position: relative; z-index: 1; display: inline-block; width: 30px; text-align: center; color: var(--accent-ink); font-weight: 800; }
.kkyun-traceroute-table td:nth-child(n + 6), .kkyun-traceroute-table th:nth-child(n + 6) { text-align: right; }
.kkyun-traceroute-table td:nth-child(n + 6) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.trace-col-ip, .trace-col-ptr { font-family: var(--mono); font-size: 13.5px; white-space: normal; overflow-wrap: anywhere; }
.trace-col-ptr { font-family: var(--font); }
.trace-col-geo { white-space: normal; overflow-wrap: anywhere; }
.kkyun-trace-as-cell { color: var(--ink-3); overflow-wrap: anywhere; }
.kkyun-trace-as-cell.has-asn { color: var(--accent-ink); font-weight: 600; cursor: help; }
.trace-empty-cell { height: auto !important; padding: 0 !important; }
.empty-state { display: grid; justify-items: center; gap: 4px; padding: 48px 16px; color: var(--ink-3); font-size: 14px; line-height: 1.7; text-align: center; animation: nx-fade 0.3s ease; }
.empty-state strong { color: var(--ink); font-size: 15.5px; font-weight: 700; }
.empty-state.running strong, .empty-state.bad strong { display: inline-flex; align-items: center; gap: 8px; }
.empty-state.running strong::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--accent-soft-2); border-top-color: var(--accent); border-radius: 50%; animation: nx-spin 0.8s linear infinite; }
.empty-state.bad strong { color: var(--bad); }
.kkyun-asn-tooltip { position: fixed; z-index: 1200; max-width: 300px; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.7; box-shadow: var(--sh-2); transform: translate(-50%, -100%); animation: nx-fade 0.15s ease; white-space: pre-line; }

/* ---- FindPing ------------------------------------------------------------ */

.findping-stats-section { display: grid; gap: 12px; }
.findping-stats-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; animation: nx-rise 0.5s var(--ease-out) backwards; }
.findping-stat-card { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; min-height: 88px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.findping-stat-label { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.findping-stat-value { color: var(--ink); font-family: var(--mono); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.findping-stat-sub { color: var(--ink-3); font-size: 12px; }
.findping-stat-card .badge-light-primary { justify-self: auto; min-width: 44px; height: 32px; font-size: 18px; }
.findping-partial-alert { grid-column: 1 / -1; display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: 13px; line-height: 1.7; }
.findping-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.findping-segmented { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 380px; border-top: 1px solid var(--line); }
.findping-group-list { display: flex; flex-direction: column; gap: 6px; padding: 14px; overflow-y: auto; max-height: 560px; border-right: 1px solid var(--line); background: var(--surface-2); transition: opacity 0.2s; }
.findping-group-list.is-scanning { opacity: 0.6; }
.findping-group-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px 0 14px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font-size: 14px; text-align: left; transition: all 0.16s var(--ease); }
.findping-group-item:hover { color: var(--accent-ink); background: var(--accent-soft); }
.findping-group-item.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.findping-group-badge { flex: 0 0 auto; }
.findping-group-badge .badge-light-primary { height: 22px; font-size: 12.5px; }
.findping-group-empty { padding: 24px 12px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.findping-group-loading { display: flex; align-items: center; gap: 8px; padding: 14px; color: var(--ink-3); font-size: 13.5px; }
.findping-result-textarea { min-height: 380px; margin: 0; padding: 16px 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: var(--mono); font-size: 13px; line-height: 1.8; resize: none; }
.findping-result-textarea:focus { border: 0; box-shadow: none; }
.findping-merged { padding: 14px 16px; min-height: 380px; }
.findping-scanning-panel { display: grid; justify-items: center; gap: 8px; padding: 64px 16px; text-align: center; color: var(--ink-3); }
.findping-scanning-panel p { margin: 0; font-size: 15px; }
.findping-scanning-panel::before { content: ""; width: 72px; height: 72px; margin-bottom: 10px; border-radius: 50%; border: 2px solid var(--accent-soft-2); background: radial-gradient(circle, var(--accent-soft) 0 30%, transparent 32%); animation: nx-radar 1.6s ease-out infinite; }
.findping-scanning-hint { font-size: 13px !important; }
@keyframes nx-radar { 0% { box-shadow: 0 0 0 0 var(--accent-ring); } 100% { box-shadow: 0 0 0 30px transparent; } }

/* ---- batch matrix -------------------------------------------------------- */

.nx-target-row--top { align-items: flex-start; }
.kbp-target-wrap { flex: 1 1 auto; min-width: 0; }
.kbp-right-col { display: grid; gap: 10px; flex: 0 0 auto; align-content: start; }
.nx-actions--wrap { flex-wrap: wrap; }
.kkyun-clearable-textarea { position: relative; height: auto !important; }
.kkyun-clearable-textarea .kkyun-textarea { min-height: 196px; padding-right: 76px; }
.kkyun-clearable-textarea-clear { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-3); font-size: 12.5px; }
.kkyun-clearable-textarea-clear .ic { font-size: 13px; }
.kkyun-clearable-textarea-clear:hover { background: var(--bad-soft); color: var(--bad); }
.kbp-cidr-panel { display: grid; gap: 12px; min-width: 300px; max-width: 340px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); animation: nx-unfold 0.26s var(--ease-out); transform-origin: top right; }
.kkyun-switch-control { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; cursor: pointer; }
.kkyun-switch-control .kkyun-switch { flex: 0 0 auto; margin-top: 1px; }
.kkyun-switch-track { position: relative; display: block; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-4); transition: background 0.2s; }
.kkyun-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3); transition: transform 0.2s var(--ease); }
.kkyun-switch input:checked + .kkyun-switch-track { background: var(--accent); }
.kkyun-switch input:checked + .kkyun-switch-track::after { transform: translateX(16px); }
.kbp-gateway-options { display: flex; gap: 6px; flex-wrap: wrap; }
.kbp-port-field, .kbp-http-method { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; }
.kbp-port-input { width: 110px; }
.kbp-port-hint { color: var(--ink-3); font-size: 12.5px; }
.kbp-toolbar-tail { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.kbp-copy-btn-mobile, .kbp-count-mobile { display: none; }
.kbp-result-toolbar .progress-div { flex: 1 0 100%; }
.kbp-result-table { min-width: 620px; }
.kbp-col-index { width: 64px; }
.kbp-col-target { min-width: 200px; }
.kbp-target-cell { max-width: 300px; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13.5px; white-space: normal; }
.kbp-col-sortable { cursor: pointer; user-select: none; }
.kbp-col-sortable:hover { color: var(--accent-ink); }
.kbp-sort-icon { display: inline-block; width: 10px; height: 12px; margin-left: 2px; vertical-align: -1px; color: var(--ink-4); }
.kbp-sort-icon::before { content: "↕"; font-size: 11px; line-height: 1; }
.kbp-col-sortable.is-sort-asc .kbp-sort-icon::before { content: "↑"; color: var(--accent-ink); }
.kbp-col-sortable.is-sort-desc .kbp-sort-icon::before { content: "↓"; color: var(--accent-ink); }
.kbp-cell { min-width: 180px; height: auto; padding: 10px 14px !important; text-align: left; }
.kbp-cell p { margin: 0; line-height: 1.55; }
.kbp-cell .total_time { color: var(--ink); font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kbp-cell .total_time.text-danger { color: var(--bad); }
.kbp-cell .ip, .kbp-cell .ipaddress { color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.kbp-result-table tbody tr.is-row-timeout > td { color: var(--bad); }
.kbp-result-table .kkyun-access-badge-inline { margin-left: 4px; vertical-align: 1px; }

/* ---- the dialog that copies the data of a table --------------------------- */

.kkyun-copydata-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: nx-fade 0.2s ease; }
.kkyun-copydata-dialog { position: relative; width: min(390px, 100%); padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: nx-pop 0.34s var(--ease-out); }
.kkyun-copydata-tip-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--info-soft); color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.kkyun-copydata-hint-icon { flex: 0 0 auto; margin-top: 2px; color: var(--info); font-size: 16px; }
.kkyun-copydata-btn-row { display: grid; gap: 10px; margin-top: 16px; }
.kkyun-copydata-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 0; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 8px 20px -8px var(--accent-shadow); transition: filter 0.2s, transform 0.16s var(--ease); }
.kkyun-copydata-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.kkyun-copydata-btn-icon { font-size: 17px; }

/* ---- small screens ------------------------------------------------------- */

@media (max-width: 1024px) {
	.findping-stats-row { grid-template-columns: 1fr 1fr; }
	.findping-stat-card--range { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.kkyun-trace-meta { flex: 1 0 100%; margin-left: 0; }
	.kkyun-trace-meta-geo { max-width: 100%; }
	.findping-segmented { grid-template-columns: minmax(0, 1fr); }
	.findping-group-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 300px; }
	.findping-result-textarea { min-height: 240px; }
	.findping-toolbar-actions { margin-left: 0; }
	.kbp-right-col { flex: 1 0 100%; }
	.kbp-cidr-panel { display: none; min-width: 0; max-width: none; }
	.kbp-cidr-panel.is-open { display: grid; }
	.kbp-toolbar-tail { display: none; }
	.kbp-copy-btn-mobile { display: inline-flex; margin-left: 4px; }
	.kbp-count-mobile { display: inline; flex: 1 0 100%; margin-left: 0; text-align: right; }
	.nx-actions--wrap > * { flex: 1 1 auto; }
	.kkyun-node-picker-panel { width: calc(100vw - 24px); }
	.kkyun-node-picker-groups { grid-template-columns: minmax(0, 1fr); }
	.kbp-result-toolbar .nx-results-title { flex: 1 0 100%; flex-wrap: wrap; }
	.kbp-count-mobile { flex: 1 1 auto; margin-left: auto; }
}
@media (max-width: 640px) {
	.findping-stats-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.findping-stat-card { min-height: 0; padding: 14px 16px; }
	.findping-stat-card--range { grid-column: auto; }
	.kkyun-clearable-textarea .kkyun-textarea { min-height: 170px; }
	.kbp-toolbar-tail + .progress-div, .kbp-result-toolbar .progress-div { margin-top: 4px; }
	.empty-state { padding: 32px 14px; }
}

/* ==========================================================================
   The lookup pages: an address, a filing, a certificate
   ========================================================================== */

/* ---- a quiet note between the cards -------------------------------------- */

.nx-note { padding: 14px 20px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line)); color: var(--ink-3); font-size: 13.5px; line-height: 1.75; }

/* ---- IP lookup ----------------------------------------------------------- */

/* the bar of the lookup is a layer over the record below, like the command card of a
   measurement: the list of earlier addresses opens out of the input, across the hint under it
   and over the record, and nothing in the bar clips it (the form stands over the hint) */
.nx-ipsearch-hero { position: relative; z-index: 20; padding: 12px 12px 10px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); transition: border-color 0.2s, box-shadow 0.2s; }
.nx-ipsearch-hero:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 5px var(--accent-ring), var(--sh-2); }
.kkyun-ipsearch-form { position: relative; z-index: 2; display: flex; align-items: stretch; gap: 10px; }
.nx-ipsearch-pin { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 24px; }
.kkyun-ipsearch-input-wrapper { flex: 1 1 auto; min-width: 0; }
.kkyun-ipsearch-form .form-control { height: 54px; padding-left: 4px; border: 0; background: transparent; font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.kkyun-ipsearch-form .form-control:focus { box-shadow: none; background: transparent; }
.kkyun-ipsearch-form .kkyun-history-input > .clear_input { right: 6px; }
.kkyun-ipsearch-submit { flex: 0 0 auto; height: 54px; padding: 0 28px; }
.kkyun-ipsearch-input-hint { position: relative; z-index: 1; margin: 8px 4px 2px 68px; color: var(--ink-3); font-size: 12.5px; }
.kkyun-ipsearch-result { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); animation: nx-rise 0.5s var(--ease-out) backwards; }
.kkyun-ipsearch-result-header { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.kkyun-ipsearch-result-header-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.kkyun-ipsearch-result-title { color: var(--ink); font-size: 18px; font-weight: 700; white-space: nowrap; }
.kkyun-ipsearch-result-ip-tag { overflow: hidden; max-width: 100%; min-height: 30px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono); font-size: 14px; font-weight: 700; line-height: 24px; overflow-wrap: anywhere; }
.kkyun-ipsearch-result-time { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kkyun-ipsearch-result-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; padding: 8px 12px; }
.kkyun-ipsearch-result-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px; border-bottom: 1px dashed var(--line); border-radius: 12px; transition: background 0.15s; }
.kkyun-ipsearch-result-row:hover { background: var(--surface-2); }
.kkyun-ipsearch-result-row:nth-last-child(-n + 2) { border-bottom-color: transparent; }
.kkyun-ipsearch-result-label-cell { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.kkyun-ipsearch-result-value-cell { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.kkyun-ipsearch-result-value-highlight { font-family: var(--mono); color: var(--accent-ink); }

/* ---- ICP filing lookup --------------------------------------------------- */

.icpsearch-right { display: grid; gap: 10px; flex: 0 0 auto; align-content: start; width: 260px; }
.icpsearch-right-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.icpsearch-right-row .nx-btn { flex: 1 1 auto; }
.icpsearch-count { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.icpsearch-count-value { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.icpsearch-hint { color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.icpsearch-status { padding: 44px 16px; color: var(--ink-3); font-size: 14px; text-align: center; animation: nx-fade 0.3s ease; }
.icpsearch-loading-area { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 44px 16px; color: var(--ink-3); font-size: 14px; }
.kkyun-result-toolbar .icpsearch-stats { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ink-3); font-size: 13px; }
.icpsearch-stats strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.icpsearch-stats .icpsearch-stats-success { color: var(--ok); }
.icpsearch-stats .icpsearch-stats-fail { color: var(--bad); }
.icpsearch-stats-sep { width: 1px; height: 14px; background: var(--line-2); }
.icpsearch-progress-track { width: 130px; height: 8px; border-radius: 999px; }
/* the figures stand beside the title; the buttons take the line under them, from the left */
.icpsearch-toolbar-actions { display: flex; align-items: center; flex: 1 0 100%; flex-wrap: wrap; gap: 8px; }
.icpsearch-col-panel-wrap { position: relative; display: flex; }
.icpsearch-results-section .table-responsive { overflow: auto; max-height: min(70vh, 760px); }
/* this box always scrolls on its own: its head sticks to the box, not under the bar of the header */
.icpsearch-results-table thead th { top: 0; }
.icpsearch-results-table { min-width: 900px; table-layout: fixed; }
.icpsearch-results-table th, .icpsearch-results-table td { padding: 0 12px; }
.icpsearch-results-table td { line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.icpsearch-col-check { width: 120px; }
.icpsearch-check-wrap { position: relative; display: inline-flex; vertical-align: middle; cursor: pointer; }
.icpsearch-check-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icpsearch-check-box { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); transition: all 0.2s var(--ease); }
.icpsearch-check-box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0) translate(1px, -1px); transition: transform 0.2s var(--ease); }
.icpsearch-check-input:checked + .icpsearch-check-box { border-color: var(--accent); background: var(--accent); }
.icpsearch-check-input:checked + .icpsearch-check-box::after { transform: rotate(-45deg) scale(1) translate(1px, -1px); }
.icpsearch-check-input:disabled + .icpsearch-check-box { opacity: 0.45; }
.icpsearch-check-wrap:has(.icpsearch-check-input:focus-visible) { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 6px; }
.icpsearch-btn-selall, .icpsearch-btn-update, .icpsearch-col-reset { height: 28px; padding: 0 11px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.icpsearch-btn-selall:hover, .icpsearch-btn-update:not(:disabled):hover, .icpsearch-col-reset:hover { background: var(--accent-soft); }
.icpsearch-btn-update { height: 30px; padding: 0 12px; background: var(--accent-soft); }
.icpsearch-btn-update:disabled { opacity: 0.5; }
.icpsearch-btn-sel-sep { margin: 0 6px; color: var(--line-2); }
.icpsearch-cell-error { color: var(--bad); }
.icpsearch-col-panel { z-index: 50; width: 220px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: nx-pop 0.2s var(--ease-out); }
.icpsearch-col-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.icpsearch-col-panel-title { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.icpsearch-col-option { display: flex; align-items: center; gap: 10px; height: 36px; color: var(--ink-2); font-size: 13.5px; cursor: pointer; }
.icpsearch-col-option.is-locked { color: var(--ink-4); cursor: default; }
.icpsearch-filing-text { display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.icpsearch-filing-text p:nth-child(3) { margin-top: 6px; color: var(--ink); font-weight: 700; }

/* ---- certificate check --------------------------------------------------- */

.tls-check-empty { overflow: hidden; }
.tls-check-empty-content { display: grid; justify-items: center; gap: 6px; padding: 52px 20px; color: var(--ink-3); font-size: 14px; line-height: 1.7; text-align: center; }
.tls-check-empty-content h2 { color: var(--ink); font-size: 18px; font-weight: 700; }
.tls-check-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 28px; animation: nx-float 4s ease-in-out infinite; }
.tls-skeleton { display: grid; gap: 10px; width: min(420px, 100%); margin-top: 18px; }
.tls-skeleton span { display: block; height: 14px; border-radius: 7px; background: var(--surface-3); position: relative; overflow: hidden; }
.tls-skeleton span::after { content: ""; position: absolute; inset: 0; background: var(--skeleton); animation: nx-sheen 1.6s var(--ease) infinite; }
.tls-skeleton span:nth-child(2) { width: 78%; }
.tls-skeleton span:nth-child(3) { width: 56%; }
.tls-result-summary, .tls-result { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); animation: nx-rise 0.5s var(--ease-out) backwards; }
.kkyun-result-heading { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.kkyun-result-target { overflow: hidden; max-width: 320px; min-height: 26px; padding: 2px 11px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 600; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.kkyun-result-time { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kkyun-compact-primary-button { height: 36px; padding: 0 15px; font-size: 13.5px; }
.tls-health-summary { padding: 20px 24px 22px; background: var(--ok-soft); border-left: 4px solid var(--ok); }
.tls-health-summary.is-invalid { background: var(--bad-soft); border-left-color: var(--bad); }
.tls-health-copy { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.tls-health-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tls-health-title h2 { color: var(--ok); font-size: 22px; font-weight: 800; }
.tls-health-summary.is-invalid .tls-health-title h2 { color: var(--bad); }
.tls-health-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.tls-expiry-summary { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.tls-result-content { display: grid; }
.tls-result-section { padding: 20px 24px; }
.tls-result-section + .tls-result-section { border-top: 1px solid var(--line); }
.tls-result-section > h3 { margin-bottom: 14px; color: var(--ink); font-size: 15px; font-weight: 700; }
.tls-detail-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.tls-detail-grid { display: grid; gap: 10px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.tls-detail-grid > div { display: grid; gap: 2px; min-width: 0; }
.tls-detail-grid dt { color: var(--ink-3); font-size: 12.5px; }
.tls-detail-grid dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.tls-alt-name-row { grid-column: 1 / -1; }
.tls-alt-names { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tls-alt-names > span { overflow: hidden; max-width: 100%; min-height: 24px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 12.5px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.tls-alt-names > button { height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.tls-status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); vertical-align: 1px; }
.tls-status-dot.is-invalid { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.tls-chain-list { display: grid; gap: 0; }
.tls-chain-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; position: relative; }
.tls-chain-item + .tls-chain-item { border-top: 1px dashed var(--line); }
.tls-chain-icon { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 1px; color: var(--accent-ink); }
.tls-chain-content { display: grid; gap: 2px; min-width: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.65; overflow-wrap: anywhere; }
.tls-chain-content span:first-child { color: var(--ink); font-weight: 600; }
.tls-result-disclaimer { padding: 0 24px 20px; color: var(--ink-3); font-size: 12.5px; }

/* ---- small screens ------------------------------------------------------- */

@media (max-width: 1024px) {
	.icpsearch-right { flex: 1 0 100%; width: auto; }
}
@media (max-width: 767px) {
	.kkyun-ipsearch-form { flex-wrap: wrap; }
	.nx-ipsearch-pin { display: none; }
	.kkyun-ipsearch-input-wrapper { flex: 1 0 100%; }
	.kkyun-ipsearch-submit { flex: 1 0 100%; }
	.kkyun-ipsearch-input-hint { margin-left: 4px; }
	.kkyun-ipsearch-result-table { grid-template-columns: minmax(0, 1fr); }
	.kkyun-ipsearch-result-row:nth-last-child(2) { border-bottom-color: var(--line); }
	.kkyun-ipsearch-result-row:last-child { border-bottom-color: transparent; }
	/* the card of a hop gives its cells no room of their own: the mark starts at the edge of the card */
	.kkyun-traceroute-table { --hop-x: 0px; }
	/* a phone has not the width for the figures and the bar together: the bar takes a line of its own */
	.kkyun-result-toolbar .icpsearch-stats { flex: 1 0 100%; margin-left: 0; flex-wrap: wrap; row-gap: 8px; }
	.icpsearch-stats-label, .icpsearch-stats strong, .icpsearch-stats-percent { white-space: nowrap; }
	.icpsearch-progress-track { flex: 1 1 130px; }
	.icpsearch-toolbar-actions { margin-left: 0; }
	.tls-detail-columns { grid-template-columns: minmax(0, 1fr); }
	.tls-result-section { padding: 16px; }
	.tls-result-disclaimer { padding: 0 16px 16px; }
	.kkyun-result-target { max-width: 100%; }
}
@media (max-width: 640px) {
	.kkyun-ipsearch-form .form-control { font-size: 16px; }
	.kkyun-ipsearch-result-header { padding: 14px 16px; }
	.kkyun-ipsearch-result-table { padding: 4px; }
	.tls-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   The help pages: the correction of an address, and the maintenance log
   ========================================================================== */

/* the bar over a table that a script draws itself (ICP, certificate) */
.kkyun-result-toolbar { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.kkyun-result-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kkyun-result-toolbar > .kkyun-result-title { flex: 0 0 auto; }

/* two cards side by side, the wider one first */
.nx-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.nx-field { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 12px; }
.nx-field .nx-label { margin: 0; padding-top: 11px; }
.nx-form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.nx-note-box { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.ipe-form-card .nx-card-pad { display: grid; gap: 14px; }

/* the form of a correction */
.ipe-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.ipe-radio-item { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; }
.ipe-radio-outer { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--surface); }
.ipe-radio-outer.checked { border: 5px solid var(--accent); }
.ipe-radio-item:has(.ipe-radio-outer.checked) { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ipe-radio-disabled { opacity: 0.55; }
.ipe-search-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.ipe-search-wrap .nx-input { padding-right: 44px; }
.ipe-search-wrap .clear_input { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }
.ipe-note-title { margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.ipe-note-list p { margin: 0; }
.ipe-note-warn { color: var(--warn); }

/* the figures of the week and the list of what was sent */
.ipe-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ipe-stat-card { padding: 18px 20px; }
.ipe-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ipe-stat-title { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.ipe-stat-title-text { display: grid; line-height: 1.35; }
.ipe-stat-title-text small { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.ipe-stat-bar { width: 4px; height: 32px; border-radius: 4px; background: var(--accent); }
.ipe-stat-icon-wrap { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 20px; }
.ipe-stat-card-updated .ipe-stat-bar { background: var(--ok); }
.ipe-stat-card-updated .ipe-stat-icon-wrap { background: var(--ok-soft); color: var(--ok); }
.ipe-stat-number-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ipe-stat-value { color: var(--ink); font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ipe-stat-unit { color: var(--ink-3); font-size: 12.5px; }
.ipe-list-card { overflow: hidden; }
.ipe-list-header { flex-wrap: nowrap; }
.ipe-list-total { margin-left: auto; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.ipe-search-row { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.ipe-search-row .ipe-search-btn { flex: 0 0 auto; }
.ipe-info-wrap { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; color: var(--ink-4); cursor: help; }
.ipe-info-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 20; width: max-content; max-width: 240px; padding: 10px 13px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.6; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(4px); transition: all 0.2s var(--ease); pointer-events: none; }
.ipe-tooltip-open { opacity: 1; visibility: visible; transform: translateX(-50%); }
.ipe-list { padding: 6px 14px 10px; }
.ipe-list-empty, .ipe-list-loading { padding: 28px 12px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.ipe-record { padding: 14px 8px; border-bottom: 1px dashed var(--line); animation: nx-fade 0.3s ease; }
.ipe-record:last-child { border-bottom: 0; }
.ipe-record-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ipe-record-time { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ipe-clock-icon { font-size: 14px; }
.ipe-status { display: inline-flex; align-items: center; height: 23px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ipe-status-pending { background: var(--warn-soft); color: var(--warn); }
.ipe-status-approved, .ipe-status-processed { background: var(--ok-soft); color: var(--ok); }
.ipe-status-rejected { background: var(--bad-soft); color: var(--bad); }
.ipe-record-body { display: grid; gap: 6px; }
.ipe-record-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; color: var(--ink-2); font-size: 13px; }
.ipe-row-label { color: var(--ink-3); }
.ipe-row-content { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ipe-row-ips { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.ipe-row-arrow { display: grid; place-items: center; flex: 0 0 auto; color: var(--ink-4); }
.ipe-arrow-icon { font-size: 14px; }
.ipe-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.25rem; padding: 12px; }
.ipe-page-btn { min-width: 1.875rem; height: 2rem; padding: 0 0.65rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; transition: all 0.16s var(--ease); }
.ipe-page-btn:hover:not(:disabled) { border-color: transparent; color: var(--accent-ink); background: var(--accent-soft); }
.ipe-page-btn.is-active { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; }
.ipe-page-btn:disabled { opacity: 0.45; cursor: default; }
.ipe-page-gap { padding: 0 0.25rem; color: var(--ink-4); }

/* the maintenance log */
.km-qq-btn { margin-left: 4px; }
.km-qq-btn .ic { font-size: 16px; }
.km-timeline { position: relative; display: grid; padding-left: 24px; }
.km-timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 12px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2) 60%, transparent); }
.km-timeline-item { position: relative; padding: 0 0 24px 18px; animation: nx-rise 0.5s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.km-timeline-item:last-child { padding-bottom: 0; }
.km-timeline-item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.km-timeline-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.km-date { color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.km-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.km-badge-maintenance { background: var(--info-soft); color: var(--info); }
.km-badge-hotfix { background: var(--warn-soft); color: var(--warn); }
.km-badge-release { background: var(--ok-soft); color: var(--ok); }
.km-content-title { color: var(--ink); font-size: 15px; font-weight: 700; }
.km-content-body { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; line-height: 1.75; white-space: pre-line; }

@media (max-width: 1024px) {
	.nx-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.nx-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.nx-field .nx-label { padding-top: 0; }
	.ipe-stat-card { padding: 14px; }
	.ipe-stat-value { font-size: 28px; }
	.ipe-stat-icon-wrap { display: none; }
	.ipe-search-row { flex-wrap: wrap; }
	.ipe-search-row .ipe-search-btn { flex: 1 0 100%; }
	.ipe-form-card .nx-card-pad { padding: 14px; }
}

/* ==========================================================================
   The lookups of a domain: its WHOIS record, the reverse lookups and the history, and whether
   it can be reached from inside the mainland
   ========================================================================== */

.nx-lookup-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.nx-lookup-tab { height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.nx-lookup-tab:hover { background: var(--surface-3); color: var(--ink); }
.nx-lookup-tab.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.nx-lookup-empty { overflow: hidden; }
.nx-lookup-result, .nx-lookup-intro { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); animation: nx-rise 0.5s var(--ease-out) backwards; }
.nx-lookup-intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 28px; padding: 20px 24px; }
.nx-lookup-intro h3 { margin-bottom: 10px; color: var(--ink); font-size: 15px; font-weight: 700; }
.nx-lookup-intro p { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.nx-lookup-intro p + p { margin-top: 8px; }
.nx-lookup-intro b { color: var(--ink); }
.nx-lookup-band { display: grid; gap: 8px; padding: 20px 24px 22px; background: var(--ok-soft); border-left: 4px solid var(--ok); }
.nx-lookup-band.is-warn { background: var(--warn-soft); border-left-color: var(--warn); }
.nx-lookup-band.is-bad { background: var(--bad-soft); border-left-color: var(--bad); }
.nx-lookup-band.is-empty { background: var(--surface-2); border-left-color: var(--line-2); }
.nx-lookup-band.is-info { background: var(--accent-soft); border-left-color: var(--accent); }
.nx-lookup-band.is-info .nx-lookup-band-title h2 { color: var(--accent-ink); }
.nx-lookup-band > .nx-lookup-chip { justify-self: start; }
.nx-lookup-band-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nx-lookup-band-title h2 { color: var(--ok); font-size: 22px; font-weight: 800; }
.nx-lookup-band.is-warn .nx-lookup-band-title h2 { color: var(--warn); }
.nx-lookup-band.is-bad .nx-lookup-band-title h2 { color: var(--bad); }
.nx-lookup-band.is-empty .nx-lookup-band-title h2 { color: var(--ink); }
.nx-lookup-band-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.nx-lookup-band-text { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.nx-lookup-basis { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-lookup-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.nx-lookup-chip.is-warn { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.nx-lookup-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.nx-lookup-dot.is-bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.nx-lookup-dot.is-warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.nx-lookup-dot.is-empty { background: var(--line-2); box-shadow: none; }
.nx-lookup-checks, .nx-lookup-sources, .nx-lookup-lines { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nx-lookup-check, .nx-lookup-source { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.nx-lookup-check-title { flex: 0 0 96px; color: var(--ink); font-weight: 600; }
.nx-lookup-check-text, .nx-lookup-source-text { min-width: 0; overflow-wrap: anywhere; }
.nx-lookup-source-name { flex: 0 0 auto; color: var(--ink); font-weight: 600; }
.nx-lookup-source.is-failed { color: var(--ink-3); }
.nx-lookup-source.is-failed .nx-lookup-source-name { color: var(--ink-2); }
.nx-lookup-notes { display: grid; gap: 6px; margin: 0; padding: 14px 24px 14px 42px; border-top: 1px solid var(--line); color: var(--warn); font-size: 13px; line-height: 1.7; list-style: disc; }
.nx-lookup-lines { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.nx-lookup-table-wrap { overflow-x: auto; }
.nx-lookup-table { min-width: 560px; }
/* the tables of the site stick their headers to the top of the window: in a wrapper that scrolls sideways they would stick to the top of the wrapper and cover the first row. Their rows rise into place when the body is filled; a body drawn at once needs no such entrance */
.nx-lookup-table-wrap .kkyun-base-table thead th { position: static; }
.nx-lookup-table th { white-space: nowrap; }
.nx-lookup-table-wrap .nx-lookup-table tbody:not(.is-filled) > tr, .nx-lookup-table-wrap .nx-lookup-table tbody > tr { animation: none; }
.nx-lookup-table td { font-size: 13.5px; }
.nx-lookup-none { color: var(--ink-3); text-align: center; }
.nx-lookup-cell { white-space: nowrap; }
.nx-lookup-cell-main { display: block; font-weight: 600; }
.nx-lookup-cell-sub { display: block; max-width: 200px; color: var(--ink-3); font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.nx-lookup-cell.is-ok .nx-lookup-cell-main { color: var(--ok); }
.nx-lookup-cell.is-bad .nx-lookup-cell-main { color: var(--bad); }
.nx-lookup-cell.is-none { color: var(--ink-4); }
.nx-lookup-ips { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.nx-lookup-ips.is-bad { color: var(--bad); }
.nx-lookup-probe { color: var(--ink); font-weight: 600; white-space: nowrap; }
.nx-lookup-more { margin-top: 12px; height: 30px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.nx-lookup-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 28px; }
.nx-lookup-contact h4 { margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.nx-lookup-contact dl { display: grid; gap: 8px; margin: 0; }
.nx-lookup-contact dl > div { display: grid; gap: 2px; min-width: 0; }
.nx-lookup-contact dt { color: var(--ink-3); font-size: 12.5px; }
.nx-lookup-contact dd { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.nx-lookup-contact-none { color: var(--ink-3); font-size: 13.5px; }
.nx-lookup-muted { color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.nx-lookup-muted + .tls-result-section { border-top: 1px solid var(--line); }
.nx-lookup-foot { padding: 0 24px 18px; }
.nx-lookup-raw summary { color: var(--accent-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.nx-lookup-raw pre { max-height: 420px; margin: 12px 0 0; padding: 14px 16px; overflow: auto; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.nx-lookup-raw + .nx-lookup-muted { margin-top: 14px; }
.nx-lookup-domain a { color: var(--accent-ink); font-weight: 600; }
.nx-lookup-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-lookup-tiles { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 18px 24px; }
.nx-lookup-tile { display: grid; gap: 2px; }
.nx-lookup-tile-value { color: var(--ink); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-lookup-tile-label { color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 767px) {
	.nx-lookup-tabs { padding: 10px 10px 8px; }
	.nx-lookup-tab { height: 32px; padding: 0 11px; font-size: 13px; }
	.nx-lookup-band { padding: 16px; }
	.nx-lookup-band-title h2 { font-size: 19px; }
	.nx-lookup-intro-grid { padding: 16px; }
	/* a phone gives every line of a table a card of its own (the convention of the site: .nx-table-wrap) */
	.nx-lookup-table-wrap { overflow: visible; }
	.nx-lookup-table { min-width: 0; }
	.nx-lookup-cell { white-space: normal; }
	.nx-lookup-cell-sub { max-width: none; }
	.nx-lookup-probe { white-space: normal; }
	.nx-table-wrap tbody > tr > td.nx-lookup-cell { display: grid; justify-content: stretch; gap: 2px; }
	.nx-table-wrap tbody > tr > td.nx-lookup-cell::before { grid-row: 1 / span 2; align-self: start; }
	.nx-table-wrap tbody > tr > td.col-probe { display: flex; }
	.nx-lookup-check-title { flex-basis: 76px; }
	.nx-lookup-notes { padding: 12px 16px 12px 34px; }
	.nx-lookup-tiles { padding: 14px 16px; }
	.nx-lookup-foot { padding: 0 16px 16px; }
}

/* the lookups of a domain: the platforms of the intercept check, and a cell that wraps */
.nx-domain-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nx-domain-platform { display: grid; gap: 8px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md, 12px); border-left: 4px solid var(--line-2); }
.nx-domain-platform.is-blocked { background: var(--bad-soft); border-left-color: var(--bad); }
.nx-domain-platform.is-clear { background: var(--ok-soft); border-left-color: var(--ok); }
.nx-domain-platform.is-failed, .nx-domain-platform.is-unknown { background: var(--warn-soft); border-left-color: var(--warn); }
.nx-domain-platform-head { display: flex; align-items: center; gap: 10px; }
.nx-domain-platform-head h3 { font-size: 17px; font-weight: 800; }
.nx-domain-platform.is-blocked .nx-domain-platform-head h3 { color: var(--bad); }
.nx-domain-platform.is-clear .nx-domain-platform-head h3 { color: var(--ok); }
.nx-domain-platform.is-failed .nx-domain-platform-head h3, .nx-domain-platform.is-unknown .nx-domain-platform-head h3 { color: var(--warn); }
.nx-domain-platform-text { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.nx-domain-platform-detail { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.nx-domain-platform-source { color: var(--ink-3); font-size: 12.5px; }
.nx-lookup-cell.is-warn .nx-lookup-cell-main { color: var(--warn); }
.nx-lookup-wrap { white-space: normal; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 720px) {
	.nx-domain-platforms { grid-template-columns: minmax(0, 1fr); }
}
