/* LIKE A PRO .DEV — ~/cidr (loaded after tools.css + tools-extra.css) */
.tool-ui input.is-err, .tool-ui textarea.is-err { border-color: rgba(255,95,87,.55); }

.n-inrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem); gap: 0 1.5rem; align-items: end; }
.n-pfx input[type="range"] { margin: .7rem 0 .55rem; }
#n-in { font-size: 1rem; }

.n-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-top: .6rem; }
.n-cidr { font-size: clamp(1.4rem, 3.6vw, 2.4rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; color: var(--accent); word-break: break-all; text-shadow: 0 0 24px rgba(200,255,46,.22); }
.n-cidr span { color: var(--text); }
.n-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.n-desc { margin: .3rem 0 .2rem; }

.n-bar { margin: 1rem 0 1.2rem; }
.n-bar-track { position: relative; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #14141c 0 calc(6.25% - 1px), #0c0c11 calc(6.25% - 1px) 6.25%); border: 1px solid var(--border); overflow: hidden; }
.n-bar-fill { position: absolute; top: 0; bottom: 0; min-width: 2px; background: var(--accent); box-shadow: 0 0 14px rgba(200,255,46,.5); }
.n-bar-host { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #ff9ac0; }
.n-bar-lab { display: flex; justify-content: space-between; gap: .6rem; font-size: .68rem; color: var(--dim); margin-top: .3rem; }
.n-bar-lab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-bar-lab span:nth-child(2) { color: var(--muted); flex: none; }

.n-cols { margin-top: .2rem; }
.n-kv dd { position: relative; }
.n-kv .n-cp { position: static; margin-left: .4rem; padding: 0 .35rem; font-size: .6rem; opacity: 0; transition: opacity .15s; vertical-align: .1em; }
.n-kv dd:hover .n-cp, .n-kv .n-cp:focus-visible { opacity: 1; }
@media (hover: none) { .n-kv .n-cp { opacity: .7; } }
.n-kv sup { font-size: .7em; }
.n-kv dd span.t-dim { word-break: normal; overflow-wrap: anywhere; }
.n-ptr { font-size: .76rem; }

.n-legend { margin-left: .6rem; font-size: .68rem; }
.n-bin { display: flex; flex-wrap: wrap; font-size: .88rem; letter-spacing: .02em; line-height: 1.7; padding: .6rem .8rem; background: #0b0b10; border: 1px solid var(--border); border-radius: 6px; }
.n-bin.is-v6 { font-size: .72rem; }
.n-bin i { font-style: normal; color: var(--dim); padding: 0 .15rem; }
.n-bin .n-brk { flex-basis: 100%; height: 0; }
.n-bin b { font-weight: 400; }
.n-bin-mask { margin-top: 2px; opacity: .7; }
.bn-n { color: var(--accent); }
.bn-h { color: var(--cyan); }

.n-tablewrap { overflow: auto; max-height: 30rem; border: 1px solid var(--border); border-radius: 6px; }
.n-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.n-table th { position: sticky; top: 0; background: #0e0e14; text-align: left; font-weight: 400; color: var(--dim); font-size: .7rem; letter-spacing: .06em; padding: .45rem .8rem; }
.n-table td { padding: .35rem .8rem; border-top: 1px solid rgba(255,255,255,.04); white-space: nowrap; }
.n-table tr:hover td { background: rgba(255,255,255,.025); }
#k-out { margin-top: .6rem; font-size: .84rem; }
#s-status { margin: 0; }

@media (max-width: 768px) {
    .n-inrow { grid-template-columns: minmax(0, 1fr); }
    .n-bin { font-size: .78rem; }
    .n-bin.is-v6 { font-size: .64rem; }
}
@media (max-width: 480px) {
    .n-bin { font-size: .68rem; padding: .5rem; }
    .n-bin.is-v6 { font-size: .58rem; }
    .n-bin i { padding: 0 .05rem; }
    .n-bar-lab span:nth-child(1), .n-bar-lab span:nth-child(3) { max-width: 38%; }
}
