:root {
  color-scheme: light;
  --ink: #152341;
  --muted: #52617b;
  --line: #e0e6f0;
  --paper: #fff;
  --wash: #f3f6fb;
  --navy: #101c35;
  --blue: #224fcc;
  --aqua: #6beddd;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--blue); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .63; }
:focus-visible { outline: 3px solid #4880ff; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { background: var(--navy); color: white; border-bottom: 1px solid #293650; }
.top-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand, .top-link, .footer-brand { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.22rem; color: #fff; font-weight: 750; letter-spacing: -.025em; }
.brand-accent { color: #a9bbe3; }
.brand-mark { width: 31px; height: 31px; background: var(--aqua); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; }
.brand-mark i { width: 15px; height: 4px; background: #10243b; border-radius: 2px; position: relative; }
.brand-mark i::after { content: ''; position: absolute; width: 2px; height: 2px; background: var(--aqua); border-radius: 50%; left: 3px; top: 1px; }
.top-link { color: #d7e1fb; font-weight: 550; font-size: .9rem; }
.top-link:hover, .footer-brand:hover { text-decoration: underline; }
.hero { color: #fff; background: radial-gradient(ellipse at 83% 18%, #1c315d, transparent 63%), var(--navy); }
.hero-inner { padding-block: 57px 91px; display: grid; grid-template-columns: 1.22fr 1fr; gap: 34px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.65rem); line-height: .99; letter-spacing: -.067em; margin: 0; }
.hero h1 span { color: var(--aqua); }
.hero p { color: #c4d2ef; font-size: 1.08rem; line-height: 1.58; max-width: 32rem; margin: 20px 0 0; }
.visitor { isolation: isolate; overflow: hidden; position: relative; border: 1px solid #40577f; border-radius: 19px; min-width: 0; min-height: 186px; background: linear-gradient(123deg, #1d2b49, #1f3a5e); }
.visitor::after { content: ''; position: absolute; pointer-events: none; z-index: -1; width: min(62%, 290px); inset: 0 0 0 auto; background: radial-gradient(circle, #79a9e3 1px, transparent 1.65px) 0 0 / 15px 15px; opacity: .58; mask-image: radial-gradient(ellipse at 97% 54%, #000 1%, transparent 76%); }
.visitor-inner { padding: 28px 30px; }
.visitor h2 { font-size: .87rem; font-weight: 650; color: #d4dff5; margin: 0; }
#my-ip { color: var(--aqua); font-size: clamp(1.37rem, 3.2vw, 2.45rem); font-family: var(--mono); letter-spacing: -.05em; font-weight: 700; line-height: 1.12; margin: 13px 0 17px; overflow-wrap: anywhere; }
#my-ip.long-ip { font-size: clamp(1.05rem, 2.2vw, 1.65rem); }
.copy-button { display: inline-flex; gap: 9px; align-items: center; min-height: 33px; border: 1px solid #526c93; color: #eff5ff; background: #162944; border-radius: 7px; padding: 5px 10px; font-size: .82rem; }
.copy-button:hover:enabled { background: #2a4268; }
.copy-icon { display: inline-block; height: 10px; width: 9px; border: 1px solid currentColor; border-radius: 2px; position: relative; margin-right: 2px; }
.copy-icon::after { content: ''; position: absolute; inset: -4px 1px 1px -4px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; border-radius: 2px; }
.workspace { margin-top: -35px; position: relative; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 13px 33px -23px #172e6566; }
.search { padding: 25px 30px 24px; }
.switch { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 3px; background: #eff3fb; border-radius: 10px; margin-bottom: 22px; }
.switch button { border: 1px solid transparent; min-height: 38px; border-radius: 7px; color: var(--muted); background: transparent; padding: 6px 16px; font-size: .9rem; font-weight: 650; }
.switch button[aria-pressed='true'] { background: white; color: #1c47b5; border-color: #e0e7f4; box-shadow: 0 2px 6px #19336312; }
label, legend { display: block; font-size: .87rem; font-weight: 650; margin-bottom: 8px; }
.search-line { display: flex; gap: 11px; }
input, select { color: var(--ink); background: #f9fbfe; border: 1px solid #cad5e7; border-radius: 9px; min-height: 50px; padding: 10px 14px; }
input { flex: 1; min-width: 0; width: 100%; }
input::placeholder { color: #697891; opacity: 1; }
input[aria-invalid='true'] { border-color: #bc304b; }
.primary { min-height: 50px; border: 0; border-radius: 9px; padding: 9px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; background: var(--blue); color: #fff; font-weight: 700; }
.primary:hover:enabled { background: #173fab; }
.search-icon { width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; display: inline-block; position: relative; margin-right: 3px; }
.search-icon::after { content: ''; position: absolute; width: 7px; height: 2px; background: currentColor; transform: rotate(45deg); left: 8px; top: 9px; border-radius: 1px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.chips button { color: #25478f; border: 1px solid #dae4f6; background: #f2f6fd; border-radius: 6px; padding: 6px 9px; font-size: .82rem; }
.chips button:hover { border-color: #82a2e3; }
#dns-options { margin-top: 17px; padding: 15px 0 1px; border-top: 1px solid var(--line); }
select { min-height: 40px; min-width: min(222px, 100%); }
fieldset { padding: 0; margin: 13px 0 0; border: 0; min-width: 0; }
.chips button[aria-pressed='true'] { color: #fff; background: var(--blue); border-color: var(--blue); }
.feedback { color: var(--muted); font-size: .93rem; margin: 16px 0 0; }
.feedback:empty { display: none; }
.feedback.error { color: #a41f3a; }
#results { margin-top: 23px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
.result { padding: 23px 30px; }
.result-title { margin: 0 0 6px; font-size: clamp(1.38rem, 4vw, 1.85rem); line-height: 1.21; overflow-wrap: anywhere; }
.section-title { margin: 0 0 13px; font-size: 1.21rem; }
.result-meta { margin: 0 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.result-note { margin: 11px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.55; }
.restriction-state { display: inline-block; margin: 0 0 15px; padding: 5px 9px; border-radius: 6px; background: #e5f4ed; color: #15583b; font-size: .88rem; font-weight: 650; }
.restriction-state.match { background: #fff0d9; color: #774000; }
.details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; column-gap: 22px; row-gap: 10px; }
.detail { display: flex; flex-direction: column; justify-content: center; padding: 11px 13px; background: #f5f8fe; border: 1px solid #e6ecf7; border-radius: 8px; min-width: 0; }
.detail dt { color: var(--muted); font-size: .83rem; margin-bottom: 3px; }
.detail dd { margin: 0; overflow-wrap: anywhere; font-weight: 620; font-size: .98rem; line-height: 1.45; }
.country-value { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; vertical-align: middle; }
.country-flag { display: block; flex: none; width: 22px; aspect-ratio: 4 / 3; border-radius: 2px; box-shadow: 0 0 0 1px #15234126; }
.report-disclosure { margin-top: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; }
.report-codes { display: flex; flex-wrap: wrap; gap: 5px 7px; list-style: none; padding: 0; margin: 0; }
.report-disclosure > .report-codes { margin-top: 10px; }
.report-codes li { min-width: 0; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: #e9effa; }
.report-codes code { font: .84rem var(--mono); overflow-wrap: anywhere; }
.report-table { margin-top: 10px; }
summary { font-weight: 650; cursor: pointer; }
pre { margin-bottom: 0; max-height: 25rem; overflow: auto; padding: 14px; border-radius: 8px; background: #f5f8fe; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .83rem; line-height: 1.5; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
th { color: var(--muted); font-weight: 650; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:nth-child(2), td:nth-child(3) { font-family: var(--mono); overflow-wrap: anywhere; min-width: 105px; }
td:first-child, td:last-child { white-space: nowrap; }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding-block: 20px; border-top: 1px solid #dfe6f2; }
.footer-brand { font-size: .92rem; color: var(--ink); font-weight: 700; }
.footer p { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 42px 71px; gap: 23px; }
  .hero p { margin-top: 13px; }
  .visitor { min-height: 0; }
  .visitor-inner { padding: 18px 22px; }
  .search, .result { padding-inline: 18px; }
}
@media (max-width: 475px) {
  .top-inner { min-height: 58px; }
  .brand { font-size: 1.05rem; gap: 7px; }
  .top-link { font-size: .8rem; }
  .search-line { flex-direction: column; }
  .details { grid-template-columns: 1fr; }
}
