/* ============================================================
   mojeip.info.pl - design system "network instrument"
   Fonts: Space Grotesk (display) / Schibsted Grotesk (body) / JetBrains Mono (data)
   ============================================================ */

:root {
    --bg-0: #070b10;
    --bg-1: #0c131b;
    --bg-2: #101a25;
    --line: #1c2a3a;
    --line-soft: #14202d;
    --txt-0: #e9f1f4;
    --txt-1: #a3b6c9;
    --txt-2: #5f7489;
    --acc: #3ee58f;
    --acc-deep: #17b06b;
    --acc-dim: rgba(62, 229, 143, 0.11);
    --amber: #ffc864;
    --cyan: #5ac8ff;
    --red: #ff7a70;
    --radius: 14px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Schibsted Grotesk", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--txt-0);
    background-color: var(--bg-0);
    background-image:
        radial-gradient(1100px 520px at 78% -140px, rgba(62, 229, 143, 0.09), transparent 65%),
        radial-gradient(900px 460px at 8% 12%, rgba(90, 200, 255, 0.05), transparent 60%),
        radial-gradient(rgba(163, 182, 201, 0.075) 1px, transparent 1.4px);
    background-size: auto, auto, 26px 26px;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acc); color: #04130b; }

/* --- grain overlay ------------------------------------------------ */
.grain {
    position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- a11y --------------------------------------------------------- */
.skip-link {
    position: absolute; left: -9999px; top: 12px; z-index: 100;
    background: var(--acc); color: #04130b; font-weight: 700;
    padding: 10px 18px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }

/* --- typography --------------------------------------------------- */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.35em; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--acc);
    margin-bottom: 1.1rem;
}

.accent { color: var(--acc); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

.lede, .section__lede {
    color: var(--txt-1);
    max-width: 56ch;
    margin-top: 1.1rem;
    font-size: 1.06rem;
}

a { color: var(--cyan); text-decoration-color: rgba(90, 200, 255, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

/* --- nav ----------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 11, 16, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 28px; height: 64px;
}
.nav__logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--txt-0); flex-shrink: 0;
}
.nav__logo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 0 4px var(--acc-dim), 0 0 14px rgba(62, 229, 143, 0.8);
    animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(62,229,143,0.05), 0 0 18px rgba(62,229,143,0.9); } }
.nav__logo-text {
    font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em;
}
.nav__logo-text b { color: var(--acc); font-weight: 700; }
.nav__logo-text i { font-style: normal; color: var(--txt-2); font-size: 0.8em; }

.nav__links {
    display: flex; gap: 4px; margin-left: auto;
    overflow-x: auto; scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
    color: var(--txt-1); text-decoration: none; white-space: nowrap;
    font-size: 0.92rem; font-weight: 500;
    padding: 7px 12px; border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav__links a:hover { color: var(--txt-0); background: var(--bg-2); }

.nav__status {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; color: var(--acc);
    display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}

.led { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.led--on { background: var(--acc); box-shadow: 0 0 8px rgba(62, 229, 143, 0.9); }

/* --- hero ----------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 96px) 24px 0; max-width: var(--maxw); margin: 0 auto; }
.hero__inner {
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.7rem; list-style: none; }
.chips li {
    font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
    color: var(--txt-1); letter-spacing: 0.05em;
    border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; background: rgba(12, 19, 27, 0.6);
}

/* readout: the IP instrument panel */
.readout {
    position: relative;
    background: linear-gradient(160deg, var(--bg-2), var(--bg-1) 60%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3.4vw, 36px);
    overflow: hidden;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(233, 241, 244, 0.05);
}
/* viewfinder corners */
.readout::before, .readout::after,
.readout__head::before, .readout__head::after {
    content: ""; position: absolute; width: 18px; height: 18px;
    border: 2px solid rgba(62, 229, 143, 0.55); z-index: 3;
}
.readout::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.readout::after { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.readout__head::before { bottom: 10px; left: 10px; top: auto; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.readout__head::after { bottom: 10px; right: 10px; top: auto; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.readout__head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: static;
}
.readout__label {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.16em; color: var(--txt-1);
    display: flex; align-items: center; gap: 8px;
}
.readout__proto {
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
    color: var(--acc); background: var(--acc-dim);
    border: 1px solid rgba(62, 229, 143, 0.3);
    padding: 3px 10px; border-radius: 999px; letter-spacing: 0.1em;
}
.readout__value {
    font-family: var(--font-mono);
    font-size: clamp(1.7rem, 4.2vw, 2.6rem);
    font-weight: 700;
    color: var(--acc);
    text-shadow: 0 0 26px rgba(62, 229, 143, 0.45);
    margin: 22px 0 4px;
    overflow-wrap: anywhere;
    min-height: 1.2em;
    position: relative; z-index: 2;
}
.readout__scan { color: var(--txt-2); font-size: 0.72em; font-weight: 400; letter-spacing: 0.06em; }

.readout__v6 {
    font-family: var(--font-mono); font-size: 0.82rem; color: var(--txt-1);
    margin-bottom: 6px; word-break: break-all; position: relative; z-index: 2;
}
.readout__v6 span { color: var(--cyan); }

.readout__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 2; }

.readout__meta {
    margin-top: 18px; padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono); font-size: 0.76rem; color: var(--txt-2);
    position: relative; z-index: 2;
}

/* --- buttons -------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-body); font-size: 0.94rem; font-weight: 700;
    padding: 11px 20px; border-radius: 10px; cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s, border-color 0.15s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
    background: linear-gradient(180deg, #4bf0a0, var(--acc-deep));
    color: #03130a;
    box-shadow: 0 8px 24px -8px rgba(62, 229, 143, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 10px 30px -6px rgba(62, 229, 143, 0.7), inset 0 1px 0 rgba(255,255,255,0.35); }

.btn--ghost {
    background: transparent; color: var(--txt-0);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-dim); }

/* --- ticker --------------------------------------------------------- */
.ticker {
    margin-top: clamp(36px, 5vw, 60px);
    display: grid; grid-template-columns: repeat(5, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(12, 19, 27, 0.75); overflow: hidden;
}
.ticker__item {
    padding: 16px 20px;
    border-right: 1px solid var(--line-soft);
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.ticker__item:last-child { border-right: 0; }
.ticker__item span {
    font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600;
    letter-spacing: 0.16em; color: var(--txt-2);
}
.ticker__item b {
    font-size: 0.95rem; font-weight: 500; color: var(--txt-0);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- sections ------------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 110px) 24px 0; }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); }

/* --- cards ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards--three { grid-template-columns: repeat(3, 1fr); }

.card {
    background: linear-gradient(165deg, var(--bg-2), var(--bg-1) 70%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 26px 24px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(62, 229, 143, 0.35); transform: translateY(-2px); }
.card h3 {
    font-family: var(--font-display); font-size: 1.06rem; font-weight: 700;
    display: flex; align-items: center; gap: 11px; margin-bottom: 16px;
}
.card h3 svg {
    width: 20px; height: 20px; flex-shrink: 0;
    fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card dl div {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 0; border-bottom: 1px dashed var(--line-soft);
}
.card dl div:last-child { border-bottom: 0; }
.card dt { color: var(--txt-2); font-size: 0.86rem; flex-shrink: 0; }
.card dd { font-family: var(--font-mono); font-size: 0.86rem; text-align: right; word-break: break-word; color: var(--txt-0); }

.card--tool p { color: var(--txt-1); font-size: 0.93rem; margin-bottom: 18px; }
.card--tool .btn { width: 100%; justify-content: center; }
.tool-result {
    font-family: var(--font-mono); font-size: 0.82rem; margin-top: 14px !important;
    color: var(--txt-1); min-height: 1.4em; margin-bottom: 0 !important;
}
.tool-result.ok { color: var(--acc); }
.tool-result.warn { color: var(--amber); }
.tool-result.bad { color: var(--red); }

/* --- map ------------------------------------------------------------ */
.map-frame {
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; background: var(--bg-1);
    box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.9);
}
.map { height: 440px; background: var(--bg-1); }
.map--small { height: 300px; border-radius: 10px; }
.map-frame__caption {
    padding: 13px 20px; border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--txt-2);
}
.leaflet-container { font-family: var(--font-body); }
.ip-marker {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--acc); border: 3px solid rgba(4, 19, 11, 0.9);
    box-shadow: 0 0 0 3px rgba(62, 229, 143, 0.45), 0 0 20px rgba(62, 229, 143, 0.8);
}

/* --- lookup ---------------------------------------------------------- */
.lookup {
    background: linear-gradient(165deg, var(--bg-2), var(--bg-1) 70%);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
}
.lookup__form { display: flex; gap: 12px; flex-wrap: wrap; }
.lookup__input {
    flex: 1 1 300px;
    background: var(--bg-0); color: var(--txt-0);
    border: 1px solid var(--line); border-radius: 10px;
    font-family: var(--font-mono); font-size: 1rem;
    padding: 12px 16px; caret-color: var(--acc);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lookup__input::placeholder { color: var(--txt-2); }
.lookup__input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
.lookup__input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 122, 112, 0.12); }

.lookup__hint { margin-top: 14px; font-size: 0.85rem; color: var(--txt-2); }
.lookup__hint button {
    background: var(--bg-0); color: var(--cyan); cursor: pointer;
    border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--font-mono); font-size: 0.78rem;
    padding: 3px 12px; margin: 2px 3px;
    transition: border-color 0.15s, color 0.15s;
}
.lookup__hint button:hover { border-color: var(--cyan); }

.lookup__error {
    margin-top: 14px; padding: 12px 16px;
    background: rgba(255, 122, 112, 0.08);
    border: 1px solid rgba(255, 122, 112, 0.35);
    border-radius: 10px; color: var(--red); font-size: 0.9rem;
}

.lookup__result {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px;
    margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line);
}
.lookup__data dl div {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 9px 0; border-bottom: 1px dashed var(--line-soft);
}
.lookup__data dt { color: var(--txt-2); font-size: 0.88rem; }
.lookup__data dd { text-align: right; font-size: 0.92rem; word-break: break-word; }

/* --- knowledge base / faq -------------------------------------------- */
.kb { display: flex; flex-direction: column; gap: 12px; }
.kb__item {
    background: linear-gradient(165deg, var(--bg-2), var(--bg-1) 75%);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: border-color 0.2s;
}
.kb__item[open] { border-color: rgba(62, 229, 143, 0.3); }
.kb__item summary {
    list-style: none; cursor: pointer;
    padding: 20px 54px 20px 24px; position: relative;
    transition: background 0.15s;
}
.kb__item summary::-webkit-details-marker { display: none; }
.kb__item summary:hover { background: rgba(62, 229, 143, 0.04); }
.kb__item summary h3 {
    font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; display: inline;
}
.kb__item summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono); font-size: 1.3rem; color: var(--acc);
    transition: transform 0.2s ease;
}
.kb__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.kb__body { padding: 2px 24px 24px; color: var(--txt-1); }
.kb__body p + p, .kb__body p + ul, .kb__body ul + p, .kb__body p + div { margin-top: 12px; }
.kb__body ul, .kb__body ol { padding-left: 22px; }
.kb__body li { margin: 7px 0; }
.kb__body strong { color: var(--txt-0); }

/* tables */
.table-scroll { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
th, td { text-align: left; padding: 10px 14px; border: 1px solid var(--line-soft); }
th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--acc); background: rgba(62, 229, 143, 0.05); }
td:first-child { color: var(--txt-2); }

/* tabs */
.tabs { margin-top: 16px; }
.tabs__list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs__tab {
    background: var(--bg-0); color: var(--txt-1); cursor: pointer;
    border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
    padding: 7px 16px; transition: all 0.15s;
}
.tabs__tab[aria-selected="true"] {
    background: var(--acc-dim); color: var(--acc); border-color: rgba(62, 229, 143, 0.45);
}
.tabs__panel {
    background: var(--bg-0); border: 1px solid var(--line-soft);
    border-radius: 10px; padding: 16px 20px;
}
.tabs__panel ol { padding-left: 22px; }

/* --- footer ----------------------------------------------------------- */
.footer {
    margin-top: clamp(64px, 10vw, 120px);
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, transparent, rgba(62, 229, 143, 0.03));
    padding: 48px 24px 28px;
}
.footer__inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer__brand { max-width: 380px; }
.footer__brand p { color: var(--txt-2); font-size: 0.88rem; margin-top: 12px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { color: var(--txt-1); text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover { color: var(--acc); }
.footer__note {
    max-width: var(--maxw); margin: 36px auto 0;
    padding-top: 20px; border-top: 1px dashed var(--line-soft);
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--txt-2);
}

/* --- toast ------------------------------------------------------------ */
.toast {
    position: fixed; bottom: 26px; left: 50%; z-index: 60;
    transform: translate(-50%, 20px);
    background: var(--bg-2); color: var(--txt-0);
    border: 1px solid rgba(62, 229, 143, 0.5);
    border-radius: 10px; padding: 12px 22px;
    font-size: 0.92rem; font-weight: 500;
    box-shadow: 0 16px 44px -12px rgba(0, 0, 0, 0.8), 0 0 24px rgba(62, 229, 143, 0.15);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- reveal animations -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .nav__logo-dot { animation: none; }
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .ticker { grid-template-columns: repeat(2, 1fr); }
    .ticker__item { border-bottom: 1px solid var(--line-soft); }
    .cards--three { grid-template-columns: 1fr; }
    .lookup__result { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    body { font-size: 15.5px; }
    .nav__inner { gap: 14px; padding: 0 16px; }
    .nav__status { display: none; }
    .cards { grid-template-columns: 1fr; }
    .ticker { grid-template-columns: 1fr; }
    .ticker__item { flex-direction: row; justify-content: space-between; align-items: center; }
    .section { padding-left: 16px; padding-right: 16px; }
    .hero { padding-left: 16px; padding-right: 16px; }
    .map { height: 340px; }
    .lookup__form .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   PRZEŁĄCZNIK MOTYWU
   ============================================================ */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border: 1px solid var(--line); border-radius: 10px;
    background: transparent; color: var(--txt-1); cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--acc); border-color: var(--acc); background: var(--acc-dim); }
.theme-toggle svg {
    width: 18px; height: 18px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
/* ikona pokazuje motyw, na który przełączy kliknięcie */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ============================================================
   MOTYW JASNY - "instrument diagnostyczny w świetle dziennym"
   Chłodny papier, głęboka zieleń (kontrast), jasne kafelki mapy.
   ============================================================ */
:root { color-scheme: dark; }

:root[data-theme="light"] {
    color-scheme: light;
    --bg-0: #eef2f4;
    --bg-1: #f7fafb;
    --bg-2: #ffffff;
    --line: #d3dde4;
    --line-soft: #e2e9ee;
    --txt-0: #10202b;
    --txt-1: #3f566b;
    --txt-2: #66798c;
    --acc: #077a4b;
    --acc-deep: #05603a;
    --acc-dim: rgba(7, 122, 75, 0.10);
    --amber: #9a6b00;
    --cyan: #076fa3;
    --red: #c23b32;
}

:root[data-theme="light"] body {
    background-image:
        radial-gradient(1100px 520px at 78% -140px, rgba(7, 122, 75, 0.07), transparent 65%),
        radial-gradient(900px 460px at 8% 12%, rgba(7, 111, 163, 0.05), transparent 60%),
        radial-gradient(rgba(16, 32, 43, 0.09) 1px, transparent 1.4px);
    background-size: auto, auto, 26px 26px;
}

:root[data-theme="light"] .grain {
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

:root[data-theme="light"] ::selection { color: #ffffff; }
:root[data-theme="light"] .skip-link { color: #ffffff; }

:root[data-theme="light"] .nav { background: rgba(238, 242, 244, 0.85); }

:root[data-theme="light"] .readout {
    background: linear-gradient(160deg, #ffffff, var(--bg-1) 60%);
    box-shadow: 0 26px 55px -32px rgba(16, 32, 43, 0.35), inset 0 1px 0 #ffffff;
}
:root[data-theme="light"] .readout::before,
:root[data-theme="light"] .readout::after,
:root[data-theme="light"] .readout__head::before,
:root[data-theme="light"] .readout__head::after { border-color: rgba(7, 122, 75, 0.5); }
:root[data-theme="light"] .readout__value { text-shadow: 0 0 20px rgba(7, 122, 75, 0.22); }
:root[data-theme="light"] .readout__proto { border-color: rgba(7, 122, 75, 0.35); }

:root[data-theme="light"] .chips li { background: #ffffff; }
:root[data-theme="light"] .ticker { background: #ffffff; }

:root[data-theme="light"] .btn--primary {
    background: linear-gradient(180deg, #0d9c60, #067a49);
    color: #ffffff;
    box-shadow: 0 8px 20px -8px rgba(7, 122, 75, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
:root[data-theme="light"] .btn--primary:hover {
    box-shadow: 0 10px 26px -6px rgba(7, 122, 75, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

:root[data-theme="light"] .card { background: linear-gradient(165deg, #ffffff, var(--bg-1) 70%); }
:root[data-theme="light"] .card:hover { border-color: rgba(7, 122, 75, 0.45); }

:root[data-theme="light"] .map-frame { box-shadow: 0 24px 48px -34px rgba(16, 32, 43, 0.4); }
:root[data-theme="light"] .ip-marker {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(7, 122, 75, 0.4), 0 0 16px rgba(7, 122, 75, 0.55);
}

:root[data-theme="light"] .lookup { background: linear-gradient(165deg, #ffffff, var(--bg-1) 70%); }
:root[data-theme="light"] .lookup__input { background: #ffffff; }

:root[data-theme="light"] .kb__item { background: linear-gradient(165deg, #ffffff, var(--bg-1) 75%); }
:root[data-theme="light"] .kb__item[open] { border-color: rgba(7, 122, 75, 0.4); }
:root[data-theme="light"] .kb__item summary:hover { background: rgba(7, 122, 75, 0.05); }
:root[data-theme="light"] th { background: rgba(7, 122, 75, 0.07); }
:root[data-theme="light"] .tabs__tab[aria-selected="true"] { border-color: rgba(7, 122, 75, 0.45); }
:root[data-theme="light"] .tabs__panel { background: #f2f6f8; }

:root[data-theme="light"] .footer { background: linear-gradient(180deg, transparent, rgba(7, 122, 75, 0.04)); }

:root[data-theme="light"] .toast {
    border-color: rgba(6, 122, 73, 0.45);
    box-shadow: 0 16px 40px -14px rgba(16, 32, 43, 0.35), 0 0 20px rgba(7, 122, 75, 0.12);
}
