#peek-ip-tool {
    --pkip-ink: #142d47;
    --pkip-muted: #52667a;
    --pkip-line: #d9e3ed;
    --pkip-on-dark: #fff;
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    margin: 0 auto 2rem;
    color: var(--pkip-ink);
    font-family: inherit;
    line-height: 1.5;
    text-align: start;
    container-type: inline-size;
}
#peek-ip-tool *, #peek-ip-tool *::before, #peek-ip-tool *::after { box-sizing: border-box; }
#peek-ip-tool [hidden] { display: none !important; }
#peek-ip-tool h2, #peek-ip-tool h3, #peek-ip-tool p, #peek-ip-tool dl, #peek-ip-tool dt, #peek-ip-tool dd {
    margin: 0;
    padding: 0;
}
#peek-ip-tool h2, #peek-ip-tool h3 {
    color: var(--pkip-ink);
    font-family: inherit;
    text-transform: none;
    font-weight: 650;
}
#peek-ip-tool .pkip-panel, #peek-ip-tool .pkip-network {
    padding: clamp(18px, 3.5%, 34px);
    border: 1px solid var(--pkip-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 26px -18px rgba(26, 56, 87, .29);
}
#peek-ip-tool .pkip-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--pkip-on-dark);
    border-color: #15455e;
    background: radial-gradient(ellipse at 100% 0%, #136878 0%, transparent 48%),
                linear-gradient(118deg, #0a2039, #113a59 72%, #104755);
    box-shadow: 0 12px 30px -18px rgba(6, 35, 59, .55);
}
/* Latitude and longitude lines sit behind the header, clear of the two addresses. */
#peek-ip-tool .pkip-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 268px;
    height: 268px;
    top: -142px;
    right: 4%;
    border: 1px solid rgba(168, 238, 244, .20);
    border-radius: 50%;
    transform: rotate(-22deg);
    background:
        repeating-radial-gradient(ellipse 17% 50% at 50% 50%, transparent 0 95%, rgba(168, 238, 244, .15) 96% 97%, transparent 99% 100%),
        repeating-radial-gradient(ellipse 70% 15% at 50% 50%, transparent 0 96%, rgba(168, 238, 244, .12) 97% 98%, transparent 99% 100%);
}
#peek-ip-tool .pkip-panel .pkip-panel-heading h2 { color: var(--pkip-on-dark); }
#peek-ip-tool .pkip-panel-heading { display: flex; gap: 15px; align-items: flex-start; }
#peek-ip-tool .pkip-panel-heading h2 {
    font-size: clamp(24px, 3.1vw, 32px);
    line-height: 1.18;
    letter-spacing: -.036em;
}
#peek-ip-tool .pkip-panel-heading p, #peek-ip-tool .pkip-network-heading p, #peek-ip-tool .pkip-noscript {
    margin-top: 6px;
    max-width: 66ch;
    color: var(--pkip-muted);
    font-size: 14px;
    line-height: 1.55;
}
#peek-ip-tool .pkip-panel-heading p, #peek-ip-tool .pkip-noscript { color: #c4dce9; }
#peek-ip-tool .pkip-globe {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-top: 1px;
    border: 1px solid #437087;
    border-radius: 12px;
    color: #a7efee;
    background: #183f56;
}
#peek-ip-tool .pkip-globe::before, #peek-ip-tool .pkip-globe::after {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 22px;
    content: "";
    border: 1.6px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
#peek-ip-tool .pkip-globe::before {
    width: 22px;
    background: linear-gradient(to bottom, transparent calc(50% - 1px), currentColor 50%, transparent calc(50% + 1px));
}
#peek-ip-tool .pkip-globe::after { width: 10px; }
#peek-ip-tool .pkip-protocols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
    margin-top: 23px;
}
#peek-ip-tool .pkip-protocol {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(17px, 3.5%, 23px);
    border: 1px solid var(--pkip-card-border);
    border-radius: 13px;
    background: linear-gradient(128deg, var(--pkip-card-top), var(--pkip-card-base));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}
#peek-ip-tool [data-family="4"] {
    --pkip-card-border: #426a95;
    --pkip-card-top: #204c78;
    --pkip-card-base: #163553;
    --pkip-card-label: #c2ddff;
}
#peek-ip-tool [data-family="6"] {
    --pkip-card-border: #367688;
    --pkip-card-top: #195466;
    --pkip-card-base: #113b50;
    --pkip-card-label: #adeae8;
}
#peek-ip-tool .pkip-protocol-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
}
#peek-ip-tool .pkip-protocol h3 {
    color: var(--pkip-card-label);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .015em;
}
#peek-ip-tool .pkip-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 20px;
    color: #ecf1fa;
    background: #364d63;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}
#peek-ip-tool .pkip-status::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: currentColor; }
#peek-ip-tool [data-state="found"] .pkip-status { color: #b6f4d9; background: #123f41; box-shadow: inset 0 0 0 1px #39706c; }
#peek-ip-tool [data-state="checking"] .pkip-status { color: #d9ecff; background: #294b67; }
#peek-ip-tool .pkip-value {
    flex: 1 1 auto;
    min-height: clamp(57.2px, 6.76vw, 75.4px);
    margin: 17px 0 12px;
    color: #d5e3ee;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
}
#peek-ip-tool [data-state="found"] .pkip-value {
    color: var(--pkip-on-dark);
    font: 600 clamp(22px, 2.6vw, 29px)/1.3 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.053em;
}
#peek-ip-tool .pkip-copy-row { min-height: 40px; }
#peek-ip-tool .pkip-copy, #peek-ip-tool .pkip-report {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
#peek-ip-tool .pkip-copy {
    min-height: 40px;
    color: #f1f8ff;
    border-color: #7694a9;
    background: rgba(255, 255, 255, .07);
}
#peek-ip-tool .pkip-copy:hover { color: #112f46; background: #f0f8fc; border-color: #f0f8fc; }
#peek-ip-tool .pkip-report { margin-inline-start: auto; padding-inline: 8px; color: #e1f1fc; background: transparent; }
#peek-ip-tool .pkip-report:hover { color: #fff; background: rgba(255, 255, 255, .12); }
#peek-ip-tool .pkip-report:disabled { color: #b4c8d7; cursor: progress; }
#peek-ip-tool button:focus-visible, #peek-ip-tool a:focus-visible, #peek-ip-tool textarea:focus-visible {
    outline: 3px solid #2774bc;
    outline-offset: 3px;
}
#peek-ip-tool .pkip-panel button:focus-visible { outline-color: #abefff; }
#peek-ip-tool .pkip-copy-icon { position: relative; display: inline-block; flex: 0 0 13px; width: 13px; height: 14px; }
#peek-ip-tool .pkip-copy-icon::before, #peek-ip-tool .pkip-copy-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}
#peek-ip-tool .pkip-copy-icon::before { top: 0; left: 0; border-right-color: transparent; border-bottom-color: transparent; }
#peek-ip-tool .pkip-copy-icon::after { right: 0; bottom: 0; }
#peek-ip-tool .pkip-panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
#peek-ip-tool .pkip-probe-note:not([hidden]), #peek-ip-tool .pkip-report:not([hidden]) { margin-top: 12px; }
#peek-ip-tool .pkip-probe-note, #peek-ip-tool .pkip-attribution { color: var(--pkip-muted); font-size: 12px; line-height: 1.5; }
#peek-ip-tool .pkip-panel .pkip-probe-note { color: #c6dbe8; }
#peek-ip-tool .pkip-network {
    margin-top: 16px;
    background: linear-gradient(118deg, #f5faff, #fff 46%, #f3faf9);
}
#peek-ip-tool .pkip-network h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
#peek-ip-tool .pkip-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr));
    gap: 17px 20px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--pkip-line);
}
#peek-ip-tool .pkip-network-grid dt { color: var(--pkip-muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
#peek-ip-tool .pkip-network-grid dd {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin-top: 2px;
    color: var(--pkip-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
#peek-ip-tool .pkip-flag {
    display: inline-block;
    flex: 0 0 auto;
    width: 32px;
    height: auto;
    max-height: 24px;
    object-fit: contain;
    vertical-align: middle;
}
#peek-ip-tool .pkip-attribution { margin-top: 19px; }
#peek-ip-tool .pkip-attribution a { color: #14599d; text-decoration: underline; }
#peek-ip-tool .pkip-manual, #peek-ip-tool .pkip-feedback:not(:empty) { margin-top: 12px; }
#peek-ip-tool .pkip-manual label { display: block; color: var(--pkip-ink); font-size: 14px; }
#peek-ip-tool .pkip-manual textarea {
    width: 100%; padding: 9px; color: var(--pkip-ink); border: 1px solid var(--pkip-line); border-radius: 7px; background: #fff; font: inherit;
}
#peek-ip-tool .pkip-feedback { color: #205777; font-size: 14px; }
@media (max-width: 680px) {
    #peek-ip-tool .pkip-protocols { grid-template-columns: 1fr; }
    #peek-ip-tool .pkip-protocol { padding: 17px; }
    #peek-ip-tool .pkip-panel-heading { gap: 10px; }
    #peek-ip-tool .pkip-panel::before { top: -170px; right: -115px; opacity: .65; }
    #peek-ip-tool .pkip-globe { flex-basis: 33px; width: 33px; height: 33px; border-radius: 9px; }
}
@container (max-width: 620px) {
    #peek-ip-tool .pkip-protocols { grid-template-columns: 1fr; }
}
@container (min-width: 320px) and (max-width: 620px) {
    #peek-ip-tool .pkip-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    #peek-ip-tool .pkip-copy, #peek-ip-tool .pkip-report { transition: none; }
}
