/* ==========================================================
   gorgemuld – noir
   Sort/hvid som et gammelt fotografi, røg der driver,
   og én varm farve: gløden fra cigaren.
   ========================================================== */

:root {
    --ink: #0d0c0b;            /* dybeste sort, en anelse varm */
    --coal: #151413;           /* flader */
    --coal-2: #1d1c1a;         /* hævede flader */
    --smoke: #8c8781;          /* dæmpet tekst */
    --ash: #3a3733;            /* kanter */
    --bone: #e8e2d6;           /* tekst – papir, ikke skærmhvid */
    --ember: #f06a2c;          /* cigarglød – eneste accent */
    --ember-soft: rgba(240, 106, 44, 0.14);
    --tobacco: #8a5a3b;
    --danger: #e0685a;
    --radius: 4px;

    --display: "Bodoni Moda", "Didot", Georgia, serif;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
    font-family: var(--font);
    background: var(--ink);
    color: var(--bone);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Filmkorn over hele siden */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--bone); text-decoration-color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--ember); }
h1:focus { outline: none; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
::selection { background: var(--ember); color: var(--ink); }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; padding-top: 56px; padding-bottom: 80px; }

/* ---------- Røg i baggrunden ---------- */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, #1f1d1b 0%, transparent 70%);
}

.smoke {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.16;
    background: radial-gradient(circle, #d8d3cb 0%, transparent 65%);
    animation: drift 40s ease-in-out infinite alternate;
}

.smoke--1 { width: 60vmax; height: 40vmax; top: -15vmax; left: -20vmax; }
.smoke--2 { width: 50vmax; height: 35vmax; top: 30vh; right: -25vmax; animation-duration: 55s; animation-delay: -12s; opacity: 0.1; }
.smoke--3 { width: 45vmax; height: 30vmax; bottom: -20vmax; left: 20vw; animation-duration: 65s; animation-delay: -30s; opacity: 0.08; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate(6vw, -4vh) scale(1.15) rotate(8deg); }
    100% { transform: translate(-4vw, 3vh) scale(0.95) rotate(-6deg); }
}

/* ---------- Art deco-detaljer ---------- */
.deco-rule {
    position: relative;
    display: block;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ash) 20%, var(--ash) 80%, transparent);
}

.deco-rule::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid var(--smoke);
    background: var(--ink);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(13, 12, 11, 0.72);
    border-bottom: 1px solid var(--ash);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--bone);
}

.brand:hover { color: var(--bone); }

/* Monogram med en lille cigarglød i kanten */
.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--smoke);
    flex-shrink: 0;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1;
    padding-bottom: 4px;
}

.brand-mark::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 8px var(--ember);
}

.brand-name {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

.nav a {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    color: var(--smoke);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nav a:hover, .nav a.active { color: var(--bone); }

.nav a.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: calc(12px + 0.2em);
    bottom: 2px;
    height: 1px;
    background: var(--ember);
    box-shadow: 0 0 8px var(--ember);
}

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 40px; color: var(--smoke); font-size: 0.8rem; }

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
}

.footer-inner .deco-rule { width: 100%; }

/* ---------- Typografi ---------- */
.eyebrow {
    margin: 0 0 20px;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-right: 12px;
    vertical-align: middle;
    background: var(--ember);
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.02;
}

.hero h1 em { font-style: italic; color: var(--ember); font-weight: 400; }

.lead { color: var(--smoke); font-size: 1.08rem; max-width: 52ch; }

.page-head h1, .prose h1 {
    margin: 0 0 6px;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
}

.prose { max-width: 62ch; }
.prose p { color: var(--smoke); }

.fineprint {
    margin-top: 40px;
    color: var(--smoke);
    font-size: 0.8rem;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 32px;
    min-height: min(680px, calc(100vh - 160px));
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-figure { position: relative; margin: 0; }

.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(1) contrast(1.08) brightness(0.92);
    /* Billedet opløses i mørket i kanterne, så røgen flyder ud i siden */
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}

/* Gløden fra cigaren */
.hero-figure::after {
    content: "";
    position: absolute;
    left: calc(32.2% - 11px);
    top: calc(41.2% - 11px);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 150, 80, 0.9) 0%, rgba(240, 106, 44, 0.45) 40%, transparent 72%);
    mix-blend-mode: screen;
    animation: ember 3.4s ease-in-out infinite;
}

@keyframes ember {
    0%, 100% { opacity: 0.55; transform: scale(0.9); }
    45%      { opacity: 1;    transform: scale(1.35); }
}

/* ---------- Sektion-overskrift ---------- */
.section-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 72px 0 32px;
}

.section-head h2 {
    margin: 0;
    font-size: 0.8rem;
    font-family: var(--mono);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--smoke);
}

/* ---------- Værktøjskort ---------- */
.tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 26px 24px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
    color: var(--bone);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Deco-hjørner */
.tool-card::before, .tool-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--smoke);
    border-style: solid;
    transition: border-color 0.25s ease;
}

.tool-card::before { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.tool-card::after { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

a.tool-card:hover {
    color: var(--bone);
    border-color: var(--smoke);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(240, 106, 44, 0.08);
}

a.tool-card:hover::before, a.tool-card:hover::after { border-color: var(--ember); }

.tool-no { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--smoke); }
.tool-card h3 { margin: 6px 0 0; font-size: 1.6rem; }
.tool-card p { margin: 0; color: var(--smoke); font-size: 0.95rem; }

.tool-cta {
    margin-top: auto;
    padding-top: 18px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ember);
}

.tool-card--soon { opacity: 0.45; }
.tool-card--soon .tool-cta { color: var(--smoke); }

/* ---------- Knapper og felter ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary:not(:disabled):hover {
    background: var(--ember);
    color: var(--ink);
    box-shadow: 0 0 24px -4px rgba(240, 106, 44, 0.6);
}

.btn--ghost { background: transparent; border-color: var(--ash); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); color: var(--bone); }
.btn--wide { width: 100%; }

.url-form { display: flex; gap: 10px; margin-top: 32px; }

.url-input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: rgba(21, 20, 19, 0.8);
    color: var(--bone);
    font-family: var(--mono);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.url-input::placeholder { color: #5e5a55; }
.url-input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }

.alert {
    margin-top: 16px;
    padding: 14px 18px;
    border: 1px solid var(--ash);
    border-left-width: 3px;
    border-radius: var(--radius);
    background: var(--coal);
    font-size: 0.95rem;
}

.alert--error { border-left-color: var(--danger); color: #f0c2bb; }
.alert--warn { border-left-color: var(--ember); color: var(--bone); }

/* ---------- Downloader ---------- */
.video-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 2px;
    background: var(--coal-2);
    filter: grayscale(0.85) contrast(1.05);
    transition: filter 0.4s ease;
}

.video-card:hover .video-thumb { filter: none; }

.video-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.video-title { margin: 0; font-size: 1.45rem; line-height: 1.25; overflow-wrap: anywhere; }
.video-meta { margin: -8px 0 0; color: var(--smoke); font-family: var(--mono); font-size: 0.8rem; }
.dot { margin: 0 8px; color: var(--ember); }

.format-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.format {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: transparent;
    color: var(--bone);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.format strong { font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.format span { color: var(--smoke); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; }
.format:hover { border-color: var(--smoke); }
.format.is-active { border-color: var(--ember); background: var(--ember-soft); }

/* Flueben – den rigtige checkbox er skjult, men stadig fokuserbar */
.check {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
}

.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }

.check-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border: 1px solid var(--smoke);
    border-radius: 2px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.check input:checked + .check-box {
    border-color: var(--ember);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230d0c0b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
        var(--ember);
}

.check input:focus-visible + .check-box { outline: 2px solid var(--ember); outline-offset: 2px; }
.check small { display: block; margin-top: 2px; color: var(--smoke); font-size: 0.8rem; }

.job-note { margin: 0; color: var(--smoke); font-size: 0.85rem; }

.job { display: flex; flex-direction: column; gap: 12px; }

.job-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.job-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.job-file { margin: 0; color: var(--smoke); font-size: 0.78rem; overflow-wrap: anywhere; }

/* Progress som en cigar, der brænder */
.progress { height: 4px; background: var(--ash); overflow: hidden; border-radius: 2px; }

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tobacco), var(--ember));
    box-shadow: 0 0 12px var(--ember);
    transition: width 0.3s ease;
}

.progress.is-indeterminate .progress-bar {
    width: 30% !important;
    animation: slide 1.4s ease-in-out infinite;
}

@keyframes slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(340%); }
}

/* ---------- Om ---------- */
.page-head h1 em { font-style: italic; font-weight: 400; color: var(--ember); }

.about {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    margin-top: 48px;
    align-items: start;
}

/* Personalia som et kartotekskort fra en sagsmappe */
.dossier {
    position: sticky;
    top: 96px;
    padding: 24px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
}

.dossier-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--ash);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--smoke);
}

.stamp {
    padding: 2px 8px;
    border: 1px solid var(--ember);
    color: var(--ember);
    transform: rotate(-4deg);
    font-size: 0.65rem;
}

.dossier dl { margin: 0; }

.dossier dl > div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(58, 55, 51, 0.5);
}

.dossier dl > div:last-child { border-bottom: 0; }

.dossier dt {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--smoke);
    padding-top: 2px;
}

.dossier dd { margin: 0; font-size: 0.95rem; }

.about-body { display: flex; flex-direction: column; gap: 44px; }
.about-section h2 { margin: 4px 0 10px; font-size: 1.9rem; }
.about-section p { margin: 0; color: var(--smoke); max-width: 60ch; font-size: 1.02rem; }
.about-section .fineprint { margin-top: 14px; }
.about-section p + p { margin-top: 14px; }

.pullquote {
    margin: 28px 0 0;
    padding: 4px 0 4px 22px;
    border-left: 2px solid var(--ember);
    font-family: var(--display);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.35;
    max-width: 36ch;
}

.traits { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

.traits li {
    padding: 8px 14px;
    border: 1px solid var(--ash);
    border-radius: 999px;
    font-size: 0.9rem;
}

.traits li::before { content: "◆"; margin-right: 8px; font-size: 0.6em; color: var(--ember); vertical-align: 2px; }

.about-links { display: flex; flex-wrap: wrap; gap: 10px; }

.checklist {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    max-width: 60ch;
    border-top: 1px solid var(--ash);
}

.checklist li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--ash);
    font-size: 0.95rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 21px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--ember);
    transform: rotate(45deg);
}

/* ---------- IP Intelligence ---------- */
.muted { color: var(--smoke); }

/* Egen IP i et fast felt – til JIT-adgang i LCS, firewall-regler o.l. */
.my-ip {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin-top: 28px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--ash);
    border-left: 3px solid var(--ember);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
}

.my-ip-label {
    flex-shrink: 0;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.my-ip-value {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--bone);
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 500;
}

.my-ip-value:focus { outline: none; }
.my-ip-value::selection { background: var(--ember); color: var(--ink); }

.my-ip-copy { height: 42px; min-width: 124px; padding: 0 18px; }

.my-ip-copy.is-copied,
.my-ip-copy.is-copied:hover {
    border-color: var(--ember);
    background: var(--ember-soft);
    color: var(--ember);
}

.my-ip + .url-form { margin-top: 16px; }

.ip-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.ip-quick-label {
    margin-right: 4px;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.chip {
    padding: 5px 12px;
    border: 1px solid var(--ash);
    border-radius: 999px;
    background: transparent;
    color: var(--bone);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.chip:hover { border-color: var(--ember); color: var(--ember); }

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--bone);
    font: inherit;
    text-decoration: underline;
    text-decoration-color: var(--ash);
    text-underline-offset: 3px;
    cursor: pointer;
}

.link-btn:hover { color: var(--ember); text-decoration-color: var(--ember); }

/* Indlæsning: en scanner, der fejer hen over feltet */
.ip-scan {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: 56px 24px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(232, 226, 214, 0.025) 3px 4px),
        linear-gradient(180deg, var(--coal-2), var(--coal));
    color: var(--smoke);
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.ip-scan-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 120px;
    background: linear-gradient(90deg, transparent, rgba(240, 106, 44, 0.18), transparent);
    animation: scan 1.6s ease-in-out infinite;
}

@keyframes scan {
    from { transform: translateX(-120px); }
    to { transform: translateX(1100px); }
}

.ip-report { margin-top: 36px; transition: opacity 0.3s ease; }
.ip-report.is-busy { opacity: 0.45; pointer-events: none; }

.ip-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ash);
}

.ip-subject { min-width: 0; }

.ip-addr {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    margin: 6px 0 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bone);
    font-family: var(--mono);
    font-size: clamp(1.7rem, 5vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: copy;
}

.ip-copy {
    color: var(--smoke);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ip-addr:hover .ip-copy, .ip-addr:focus-visible .ip-copy { opacity: 1; }
.ip-addr:hover { color: var(--bone); text-shadow: 0 0 24px rgba(240, 106, 44, 0.35); }

.ip-resolved { margin: 0; color: var(--smoke); font-size: 0.88rem; }
.ip-resolved strong { color: var(--bone); font-weight: 500; }
.ip-resolved .link-btn { margin-left: 8px; font-size: 0.85em; }

.ip-place {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.2;
}

.ip-flag {
    width: 28px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--ash);
    filter: grayscale(0.6) contrast(1.05);
}

.ip-verdict { max-width: 300px; text-align: right; }
.ip-verdict .stamp { display: inline-block; padding: 6px 14px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; }
.ip-verdict p { margin: 12px 0 0; color: var(--smoke); font-size: 0.88rem; line-height: 1.5; }
.ip-verdict--residential .stamp { border-color: var(--bone); color: var(--bone); }
.ip-verdict--infrastructure .stamp { border-color: var(--tobacco); color: #c98a5e; }
.ip-verdict--anonymised .stamp { box-shadow: 0 0 18px -4px var(--ember); text-shadow: 0 0 10px rgba(240, 106, 44, 0.6); }

.ip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
}

/* Kortet som en overvågningsskærm */
.ip-map-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: var(--coal);
}

.ip-map { position: absolute; inset: 0; background: var(--coal); }
.ip-map .leaflet-tile-pane { filter: grayscale(1) contrast(1.15) brightness(0.85); }
.ip-map .leaflet-overlay-pane img { filter: grayscale(1); opacity: 0.85; }

.ip-map-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(13, 12, 11, 0.75) 100%),
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.12) 3px 4px);
}

.ip-map--empty { display: grid; place-items: center; color: var(--smoke); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; }

.ip-hud {
    position: absolute;
    z-index: 600;
    padding: 4px 10px;
    border: 1px solid var(--ash);
    background: rgba(13, 12, 11, 0.8);
    color: var(--bone);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.ip-hud--tl { top: 12px; left: 12px; }
.ip-hud--bl { bottom: 12px; left: 12px; color: var(--smoke); }

.ipmap-pin { position: relative; }

.ipmap-dot, .ipmap-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.ipmap-dot {
    inset: 4px;
    background: var(--ember);
    box-shadow: 0 0 12px 2px var(--ember);
}

.ipmap-pulse {
    border: 1px solid var(--ember);
    animation: pin-pulse 2.4s ease-out infinite;
}

@keyframes pin-pulse {
    from { transform: scale(0.6); opacity: 1; }
    to { transform: scale(4.5); opacity: 0; }
}

/* Leaflet-kontroller i noir */
.ip-map .leaflet-bar a {
    background: var(--coal-2);
    border-color: var(--ash);
    color: var(--bone);
}

.ip-map .leaflet-bar a:hover { background: var(--ink); color: var(--ember); }
.ip-map .leaflet-control-attribution { background: rgba(13, 12, 11, 0.7); color: var(--smoke); font-size: 0.65rem; }
.ip-map .leaflet-control-attribution a { color: var(--smoke); }
.ip-map .leaflet-bottom.leaflet-right { z-index: 700; }

.ip-assess { position: static; }

.ip-meter { margin: 18px 0 8px; }

.ip-meter-track {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ash) 0 25%, #4a3a2e 25% 60%, #5c3320 60%);
}

.ip-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    min-width: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tobacco), var(--ember));
    box-shadow: 0 0 12px var(--ember);
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ip-meter-scale {
    display: grid;
    grid-template-columns: 25% 35% 40%;
    margin-top: 8px;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ip-meter-scale span:nth-child(2) { text-align: center; }
.ip-meter-scale span:last-child { text-align: right; }

.ip-signals { margin: 16px 0 0; padding: 0; list-style: none; }

.ip-signal {
    position: relative;
    padding: 11px 0 11px 24px;
    border-top: 1px solid rgba(58, 55, 51, 0.6);
}

.ip-signal::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 18px;
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    border: 1px solid var(--smoke);
}

.ip-signal--high::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 8px var(--ember); }
.ip-signal--medium::before { border-color: var(--ember); }
.ip-signal--low::before { border-color: var(--bone); background: var(--bone); }
.ip-signal strong { display: block; font-size: 0.92rem; font-weight: 500; }
.ip-signal span { display: block; color: var(--smoke); font-size: 0.82rem; line-height: 1.5; }

/* Detaljekortene ligger på langs: titel til venstre, felterne flyder i kolonner til højre */
.ip-cards {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.ip-card, .ip-private {
    position: relative;
    padding: 22px 22px 14px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
    min-width: 0;
}

.ip-card::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    border: solid var(--smoke);
    border-width: 1px 0 0 1px;
}

.ip-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 22px 24px 12px;
}

.ip-card h3 {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding-top: 6px;
    font-size: 1.5rem;
    line-height: 1.15;
}

.ip-card > p { margin: 8px 0 10px; }

.ip-card dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    column-gap: 28px;
    margin: 0;
}

.ip-card dl > div {
    padding: 8px 0 10px;
    border-top: 1px solid rgba(58, 55, 51, 0.5);
}

.ip-card dt {
    margin-bottom: 3px;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ip-card dd { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.ip-card dd.mono { font-size: 0.82rem; }

.ip-private { margin-top: 28px; padding-bottom: 22px; }
.ip-private p:first-of-type { margin: 8px 0 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.3; }
.ip-private .fineprint { margin-top: 12px; }

/* ---------- The Decoder ---------- */
.dec { margin-top: 32px; }

.dec-input {
    padding: 18px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
}

.dec-input-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dec-label {
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.dec-detected {
    padding: 3px 10px;
    border: 1px solid var(--ash);
    border-radius: 999px;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.dec-detected:not([data-kind=""]):not(:empty)[data-kind] { border-color: var(--ember); color: var(--ember); }

.dec-textarea {
    display: block;
    width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: rgba(13, 12, 11, 0.7);
    color: var(--bone);
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.55;
    resize: vertical;
    word-break: break-all;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dec-textarea::placeholder { color: #5e5a55; }
.dec-textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }

.dec-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.dec-modes, .dec-direction {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
}

.dec-direction[hidden] { display: none; }

.dec-mode {
    padding: 6px 12px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dec-mode:hover { color: var(--bone); }
.dec-mode.is-active { background: var(--ember-soft); color: var(--ember); }

.dec-output { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

.dec-empty {
    padding: 40px 24px;
    border: 1px dashed var(--ash);
    border-radius: var(--radius);
    text-align: center;
}

.dec-empty p { margin: 8px auto 0; max-width: 46ch; color: var(--smoke); }

.dec-verdict {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 4px 0 6px;
}

.dec-verdict p { margin: 0; }
.dec-stamp { flex-shrink: 0; padding: 6px 14px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; }
.dec-stamp--ok { border-color: var(--bone); color: var(--bone); }
.dec-stamp--warn { border-color: var(--tobacco); color: #c98a5e; }
.dec-stamp--bad { box-shadow: 0 0 18px -4px var(--ember); text-shadow: 0 0 10px rgba(240, 106, 44, 0.6); }

.dec-big { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; overflow-wrap: anywhere; }
.dec-big.mono { font-family: var(--mono); font-size: 1.25rem; }
.dec-note { margin: 4px 0 0; color: var(--smoke); font-size: 0.86rem; }
.dec-note code { color: var(--bone); }
.dec-intro { margin: 0; }
.dec-meta { margin: 0 0 10px; color: var(--smoke); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.dec-meta strong { color: var(--ember); font-weight: 500; }

.dec-panel {
    position: relative;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
}

.dec-panel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.dec-panel h3::before {
    content: "";
    width: 6px;
    height: 6px;
    border: 1px solid var(--ember);
    transform: rotate(45deg);
}

.dec-count { padding: 0 7px; border: 1px solid var(--ash); border-radius: 999px; letter-spacing: 0.05em; }

.dec-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 16px;
}

.dec-code {
    margin: 0;
    padding: 14px 16px;
    max-height: 460px;
    overflow: auto;
    border-radius: 2px;
    background: rgba(13, 12, 11, 0.75);
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre;
}

.dec-text { white-space: pre-wrap; word-break: break-all; }
.dec-hexdump { font-size: 0.74rem; }

.j-k { color: var(--bone); }
.j-s { color: #e9a77f; }
.j-n { color: #d8c08f; }
.j-b { color: var(--smoke); font-style: italic; }

.dec-token { margin: 0; font-size: 0.8rem; line-height: 1.6; word-break: break-all; }
.t-h { color: var(--bone); }
.t-p { color: var(--ember); }
.t-s { color: var(--smoke); }
.dec-legend { margin: 8px 0 0; color: var(--smoke); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; }
.dec-legend span { margin-left: 10px; }
.dec-legend span:first-child { margin-left: 0; }

.dec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }

.dec-copy { height: 34px; min-width: 96px; padding: 0 14px; font-size: 0.66rem; }
.dec-copy.is-copied, .dec-copy.is-copied:hover { border-color: var(--ember); background: var(--ember-soft); color: var(--ember); }
.dec-copy-cell { width: 1%; text-align: right; }
.dec-follow { font-size: 0.85rem; }

.dec-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 28px; }
.dec-dl > div { padding: 8px 0 10px; border-top: 1px solid rgba(58, 55, 51, 0.5); min-width: 0; }
.dec-dl dt { margin-bottom: 3px; color: var(--smoke); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.dec-dl dd { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }

.dec-table-wrap { overflow-x: auto; }
.dec-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }

.dec-table th, .dec-table td {
    padding: 9px 12px 9px 0;
    border-top: 1px solid rgba(58, 55, 51, 0.5);
    text-align: left;
    vertical-align: top;
}

.dec-table tr:first-child th, .dec-table tr:first-child td { border-top: 0; }
.dec-table th { width: 1%; white-space: nowrap; color: var(--smoke); font-weight: 400; font-size: 0.8rem; }
.dec-table td.mono { overflow-wrap: anywhere; word-break: break-all; font-size: 0.8rem; }
.dec-meaning { color: var(--smoke); font-size: 0.82rem; }
.dec-sub { display: block; margin-top: 2px; color: var(--smoke); font-size: 0.8rem; }

.dec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dec-chip { padding: 2px 9px; border: 1px solid var(--ash); border-radius: 999px; font-family: var(--mono); font-size: 0.75rem; }

.dec-units { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip.is-active { border-color: var(--ember); color: var(--ember); background: var(--ember-soft); }

.dec-output > .alert { margin-top: 0; }

/* ---------- Safe-Cracker ---------- */
.sc { margin-top: 32px; }

.sc-top {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding: 24px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--coal-2), var(--coal));
}

/* Kodelåsen. --turn sættes fra JS og drejer skiven. */
.sc-dial { --turn: 0deg; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sc-dial svg { width: 100%; max-width: 220px; height: auto; overflow: visible; }

.sc-dial-rim { fill: none; stroke: var(--ash); stroke-width: 2; }
.sc-dial-plate { fill: #1a1917; stroke: var(--ash); stroke-width: 1; }
.sc-dial-face { transform-origin: 100px 100px; transform: rotate(calc(-1 * var(--turn))); transition: transform 1.4s cubic-bezier(0.25, 0.9, 0.3, 1); }
.sc-tick { stroke: var(--smoke); stroke-width: 1; opacity: 0.6; }
.sc-tick--major { stroke: var(--bone); stroke-width: 1.6; opacity: 1; }
.sc-num { fill: var(--smoke); font-family: var(--mono); font-size: 9px; text-anchor: middle; }
.sc-dial-knob { fill: #121110; stroke: var(--ash); stroke-width: 1.5; }
.sc-dial-grip { stroke: var(--smoke); stroke-width: 3; stroke-linecap: round; }
.sc-dial-pointer { fill: var(--ember); filter: drop-shadow(0 0 4px var(--ember)); }

.sc-pins { display: flex; gap: 8px; }

.sc-pins span {
    width: 20px;
    height: 6px;
    border: 1px solid var(--ash);
    border-radius: 1px;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.sc-dial[data-level="0"] .sc-pins span:nth-child(-n+1),
.sc-dial[data-level="1"] .sc-pins span:nth-child(-n+2),
.sc-dial[data-level="2"] .sc-pins span:nth-child(-n+3),
.sc-dial[data-level="3"] .sc-pins span:nth-child(-n+4),
.sc-dial[data-level="4"] .sc-pins span {
    border-color: var(--ember);
    background: var(--ember);
    box-shadow: 0 0 8px var(--ember);
}

.sc-dial[data-level="0"] .sc-pins span:first-child { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 8px var(--danger); }

.sc-entry { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sc-field { display: flex; gap: 10px; }
.sc-input { font-size: 1.1rem; letter-spacing: 0.04em; }
.sc-toggle { min-width: 92px; }

.sc-verdict { display: flex; align-items: center; gap: 22px; }
.sc-verdict p { margin: 0; }
.sc-stamp { flex-shrink: 0; padding: 6px 14px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; }
.sc-verdict--0 .sc-stamp { border-color: var(--danger); color: var(--danger); box-shadow: 0 0 18px -6px var(--danger); }
.sc-verdict--1 .sc-stamp { border-color: var(--tobacco); color: #c98a5e; }
.sc-verdict--2 .sc-stamp { border-color: var(--smoke); color: var(--bone); }
.sc-verdict--3 .sc-stamp, .sc-verdict--4 .sc-stamp { border-color: var(--ember); color: var(--ember); }
.sc-verdict--4 .sc-stamp { box-shadow: 0 0 18px -4px var(--ember); }

.sc-headline { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; }
.sc-headline strong { color: var(--ember); font-weight: 500; font-style: italic; }

/* Passwordet delt op i de mønstre, en angriber ville gætte på */
.sc-segs { display: flex; flex-wrap: wrap; gap: 6px; }

.sc-seg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid var(--ash);
    border-top-width: 3px;
    border-radius: 2px;
    background: rgba(13, 12, 11, 0.6);
    min-width: 0;
}

.sc-seg-text { font-size: 1rem; word-break: break-all; }
.sc-seg-label { color: var(--smoke); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sc-seg--random { border-top-color: var(--bone); }
.sc-seg--common, .sc-seg--season { border-top-color: var(--danger); }
.sc-seg--word, .sc-seg--year, .sc-seg--date { border-top-color: var(--ember); }
.sc-seg--keyboard, .sc-seg--sequence, .sc-seg--repeat { border-top-color: var(--tobacco); }
.sc-seg--separator { border-top-color: var(--ash); padding-inline: 6px; }
.sc-seg--separator .sc-seg-label { display: none; }

.sc-explain { margin: 0 0 6px; max-width: 70ch; color: var(--smoke); font-size: 0.92rem; }

.sc-attacks { margin: 0; padding: 0; list-style: none; }

.sc-attack {
    --tone: var(--bone);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
    border-top: 1px solid rgba(58, 55, 51, 0.5);
}

.sc-attack:first-child { border-top: 0; }
.sc-attack--bad { --tone: var(--danger); }
.sc-attack--warn { --tone: #c98a5e; }
.sc-attack--ok { --tone: var(--bone); }
.sc-attack--safe { --tone: var(--ember); }

.sc-attack-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sc-attack-label { font-size: 1rem; font-weight: 500; }

.sc-attack-status {
    flex-shrink: 0;
    padding: 2px 10px;
    border: 1px solid var(--tone);
    border-radius: 999px;
    color: var(--tone);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sc-attack-detail { margin: 0; max-width: 70ch; color: var(--smoke); font-size: 0.85rem; }

/* Tidslinje fra 1 sekund til 1.000 år */
.sc-timeline {
    position: relative;
    height: 8px;
    margin-top: 4px;
    border-radius: 4px;
    background: var(--ash);
    overflow: hidden;
}

.sc-timeline-fill {
    position: absolute;
    inset: 0 auto 0 0;
    min-width: 6px;
    border-radius: 4px;
    background: var(--tone);
    box-shadow: 0 0 10px var(--tone);
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sc-timeline-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(13, 12, 11, 0.7); }

.sc-attack-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sc-attack-time { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; color: var(--tone); }
.sc-attack-feel { font-size: 0.88rem; font-style: italic; }
.sc-attack-tech { margin-left: auto; color: #6e6a64; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; }

.sc-scale { position: relative; height: 18px; margin-top: 4px; }

.sc-scale span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: var(--smoke);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.sc-scale span:first-child { transform: none; }
.sc-scale span:last-child { transform: translateX(-100%); }

.sc-tips { margin: 0; padding: 0; list-style: none; }

.sc-tip {
    position: relative;
    padding: 9px 0 9px 22px;
    border-top: 1px solid rgba(58, 55, 51, 0.5);
    font-size: 0.92rem;
}

.sc-tip:first-child { border-top: 0; }

.sc-tip::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 16px;
    width: 7px;
    height: 7px;
    transform: rotate(45deg);
    border: 1px solid var(--smoke);
}

.sc-tip--bad::before { background: var(--danger); border-color: var(--danger); }
.sc-tip--warn::before { border-color: var(--ember); }
.sc-tip--ok::before { background: var(--bone); border-color: var(--bone); }
.sc-clean { color: var(--bone); font-size: 0.9rem; }

/* Generatoren */
.sc .section-head { margin-top: 56px; }
.sc-gen { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.sc-gen-modes { align-self: flex-start; }
.sc-gen-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.sc-gen-panel[hidden] { display: none; }

.sc-range { display: flex; flex-direction: column; gap: 6px; min-width: 240px; font-size: 0.85rem; color: var(--smoke); }
.sc-range strong { color: var(--bone); font-weight: 500; }
.sc-range input { width: 100%; accent-color: var(--ember); }

.sc-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

.sc-select { display: flex; align-items: center; gap: 10px; color: var(--smoke); font-size: 0.85rem; }

.sc-select select {
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--ash);
    border-radius: var(--radius);
    background: var(--coal);
    color: var(--bone);
    font: inherit;
    font-size: 0.85rem;
}

.sc-gen-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--ash);
    border-left: 3px solid var(--ember);
    border-radius: var(--radius);
    background: rgba(13, 12, 11, 0.7);
}

.sc-gen-out {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--bone);
    font-size: 1.15rem;
}

.sc-gen-out:focus { outline: none; }
.sc-gen-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sc-gen-actions .btn { height: 40px; }
.btn--primary.is-copied, .btn--primary.is-copied:hover { background: var(--ember); color: var(--ink); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
    .main { padding-top: 24px; }
    .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
    .hero-figure { order: -1; max-width: 420px; margin: 0 auto -40px; }
    .url-form { flex-direction: column; }
    .video-card { grid-template-columns: 1fr; }
    .brand-name { display: none; }
    .about { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
    .dossier { position: static; }
    .nav a { padding: 8px; letter-spacing: 0.12em; }
    .section-head { margin-top: 56px; }
    .ip-grid { grid-template-columns: 1fr; }
    .ip-map-card { min-height: 300px; }
    .ip-verdict { max-width: none; text-align: left; }
    .ip-card { grid-template-columns: 1fr; gap: 10px; }
    .dec-split { grid-template-columns: 1fr; }
    .dec-verdict { align-items: flex-start; flex-direction: column; gap: 12px; }
    .dec-input { padding: 12px; }
    .sc-top { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
    .sc-dial svg { max-width: 170px; }
    .sc-attack-tech { margin-left: 0; width: 100%; }
    .sc-scale span:nth-child(3), .sc-scale span:nth-child(4) { display: none; }
    .sc-verdict { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sc-gen-result { flex-direction: column; align-items: stretch; padding: 12px; }
    .sc-gen-actions .btn { flex: 1; min-width: 0; padding: 0 8px; }
    .sc-range { min-width: 0; width: 100%; }
    .my-ip { flex-wrap: wrap; padding-left: 14px; }
    .my-ip-label { width: 100%; padding-top: 4px; }
    .my-ip-value { padding: 0; }
    .ip-card h3 { flex-direction: row; align-items: baseline; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Blazor ---------- */
.blazor-error-boundary {
    padding: 1rem;
    border-left: 3px solid var(--danger);
    background: var(--coal);
    color: var(--bone);
}

.blazor-error-boundary::after { content: "An error occurred."; }
