/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
    --c-bg:       #f4f6fb;
    --c-surface:  #ffffff;
    --c-border:   #e2e8f0;
    --c-text:     #111827;
    --c-muted:    #6b7280;
    --c-accent:   #4f46e5;
    --c-accent-l: #eef2ff;
    --c-cc1:      #16a34a;
    --c-cc2:      #d97706;
    --c-cc3:      #dc2626;
    --c-cc3p:     #7c3aed;
    --radius:     14px;
    --shadow:     0 4px 24px rgba(15,23,42,.07);
}

/* ─── Base ────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.55;
    min-height: 100vh;
}
a { color: var(--c-accent); text-decoration: none; }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
@media (min-width: 640px) { .site-header-inner { padding: 0 24px; } }

.header-logo {
    width: 30px; height: 30px;
    border-radius: 7px;
    background: var(--c-accent);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.header-title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--c-muted);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
    white-space: nowrap;
    box-shadow: 0 0 0 rgba(249,115,22,0);
    animation: headerCtaPulse 1.15s ease-in-out infinite;
}
.header-cta:hover {
    background: #ea580c;
    color: #fff;
}
@keyframes headerCtaPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(249,115,22,.42);
    }
    50% {
        opacity: .72;
        transform: translateX(-50%) scale(1.035);
        box-shadow: 0 0 0 8px rgba(249,115,22,0);
    }
}
@media (max-width: 760px) {
    .header-badge { display: none; }
    .header-title { max-width: 92px; }
    .header-cta {
        max-width: calc(100vw - 170px);
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
        padding: 8px 11px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .header-cta {
        animation: none;
        transform: translateX(-50%);
    }
}

/* ─── Page layout ─────────────────────────────────────────── */
.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 16px 80px;
}
@media (min-width: 640px)  { .page { padding: 36px 24px 80px; } }
@media (min-width: 1024px) { .page { padding: 44px 40px 100px; } }

.page-hero { margin-bottom: 24px; }
.page-hero h1 {
    font-size: clamp(20px, 3.5vw, 30px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.page-hero p {
    color: var(--c-muted);
    font-size: 14px;
    max-width: 580px;
}

/* Two-column on desktop */
.page-body {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .page-body {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
    }
}

/* Result page: single column */
.page-body--result {
    grid-template-columns: 1fr !important;
    max-width: 820px;
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--c-surface);
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    padding: 22px 20px;
    box-shadow: var(--shadow);
}
@media (min-width: 640px) { .card { padding: 26px 28px; } }

.card h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--c-muted);
    margin-bottom: 10px;
}
.section-intro {
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ─── Form ────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }

.field { display: grid; gap: 5px; }

.field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
    flex-wrap: wrap;
}
.label-text { flex: 1; min-width: 0; }
.choice-field {
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px;
    display: grid;
    gap: 10px;
}
.choice-field legend {
    padding: 0 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text);
}
.choice-grid {
    display: grid;
    gap: 8px;
}
.choice-option {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fafbfc;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .14s, background .14s, box-shadow .14s;
}
.choice-option:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-l);
}
.choice-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--c-accent);
    flex-shrink: 0;
}
.choice-option span {
    font-size: 14px;
    color: var(--c-text);
}
.choice-option--button {
    width: 100%;
    color: var(--c-text);
    font: inherit;
    text-align: left;
}
.choice-option--button:hover {
    color: var(--c-accent);
}
.choice-option:has(input:checked) {
    border-color: var(--c-accent);
    background: var(--c-accent-l);
    box-shadow: 0 0 0 2px rgba(79,70,229,.1);
}
.brand-question-note {
    margin: 0 0 16px;
}
.brand-result-panel {
    border-radius: 10px;
    padding: 20px;
}
.brand-result-copy {
    padding: 14px 0 0;
    border-top: 0;
}
.brand-summary {
    align-self: start;
}
.brand-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.brand-summary-header h2 {
    margin: 0;
}
.summary-reset {
    border: none;
    background: transparent;
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}
.brand-summary-list {
    display: grid;
    gap: 10px;
}
.brand-summary-item {
    border: 1px solid var(--c-border);
    border-radius: 9px;
    background: #fafbfc;
    overflow: hidden;
}
.brand-summary-item button {
    width: 100%;
    border: none;
    background: transparent;
    display: grid;
    gap: 4px;
    padding: 11px 13px;
    text-align: left;
    cursor: pointer;
}
.brand-summary-item button:hover {
    background: var(--c-accent-l);
}
.brand-summary-item span {
    display: block;
    font-size: 12.5px;
    color: var(--c-muted);
    line-height: 1.4;
}
.brand-summary-item strong {
    display: block;
    font-size: 14px;
    color: var(--c-text);
}
.brand-summary-item--result {
    padding: 11px 13px;
    border-left: 3px solid var(--c-accent);
}
.brand-summary-item--result span {
    color: var(--c-text);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.brand-summary-item--result small {
    display: block;
    margin-top: 5px;
    color: var(--c-muted);
    font-size: 12px;
    line-height: 1.45;
}
.brand-page {
    min-height: calc(100vh - 52px);
    display: flex;
    flex-direction: column;
    padding-bottom: 44px;
}
.brand-source-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 6px 16px;
    border-top: 1px solid var(--c-border);
    background: rgba(244,246,251,.96);
    color: #9ca3af;
    font-size: 11.5px;
    text-align: center;
}
.brand-source-bar a {
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.brand-source-bar a:hover {
    color: var(--c-muted);
}

input[type="number"],
select {
    width: 100%;
    border: 1.5px solid var(--c-border);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fafbfc;
    color: var(--c-text);
    transition: border-color .14s, box-shadow .14s;
    -webkit-appearance: none;
    appearance: none;
}
input[type="number"]:focus,
select:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,.16);
    outline: none;
    background: #fff;
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

/* Use-case note */
.use-case-note {
    font-size: 12.5px;
    color: #4338ca;
    background: var(--c-accent-l);
    border-left: 3px solid var(--c-accent);
    border-radius: 0 8px 8px 0;
    padding: 9px 12px;
    line-height: 1.5;
}

/* Field separator */
.field-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--c-muted);
}
.field-separator::before,
.field-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-border);
}
.field-separator span { white-space: nowrap; }


/* ─── Tooltip ─────────────────────────────────────────────── */
.tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: var(--c-accent-l);
    color: var(--c-accent);
    font-size: 10.5px;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
    position: relative;
    outline: none;
    transition: background .14s;
    user-select: none;
}
.tip:hover, .tip:focus-visible { background: #c7d2fe; }

.tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: min(260px, 90vw);
    background: #1e293b;
    color: #f1f5f9;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
    z-index: 200;
    white-space: normal;
}
.tip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    transition: opacity .15s;
    z-index: 200;
}
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.tip:hover::before, .tip:focus-visible::before { opacity: 1; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 9px;
    padding: 11px 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background .14s, transform .1s, box-shadow .14s;
    width: 100%;
    margin-top: 4px;
}
@media (min-width: 480px) { .btn-primary { width: auto; } }
.btn-primary:hover {
    background: #4338ca;
    box-shadow: 0 5px 16px rgba(79,70,229,.28);
    transform: translateY(-1px);
}

/* ─── Info card ───────────────────────────────────────────── */
.info-list {
    list-style: none;
    display: grid;
    gap: 9px;
    margin-bottom: 20px;
    font-size: 13.5px;
}
.info-list li {
    padding-left: 12px;
    border-left: 2px solid var(--c-accent);
    color: var(--c-muted);
    line-height: 1.45;
}
.info-list li strong { color: var(--c-text); }

.figure-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}
.figure-copyright {
    font-size: 11px;
    color: var(--c-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}
@media (min-width: 480px) and (max-width: 899px) {
    .figure-grid { grid-template-columns: 1fr 1fr; }
}
figure img {
    width: 100%;
    border-radius: 9px;
    border: 1px solid var(--c-border);
    display: block;
}
figcaption {
    font-size: 12px;
    color: var(--c-muted);
    margin-top: 5px;
    text-align: center;
}

/* ─── CC legend ───────────────────────────────────────────── */
.cc-legend { display: grid; gap: 7px; }
.legend-intro {
    font-size: 12.5px;
    color: var(--c-muted);
    font-style: normal;
    line-height: 1.5;
    margin-bottom: 4px;
}
.cc-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    border-radius: 7px;
    padding: 7px 11px;
}
.cc-row span:first-child {
    font-weight: 700;
    min-width: 72px;
    flex-shrink: 0;
}
.cc-row span:last-child { color: var(--c-muted); line-height: 1.4; }
.cc1  { background: #f0fdf4; border-left: 3px solid var(--c-cc1);  }
.cc2  { background: #fffbeb; border-left: 3px solid var(--c-cc2);  }
.cc3  { background: #fef2f2; border-left: 3px solid var(--c-cc3);  }
.cc3p { background: #f5f3ff; border-left: 3px solid var(--c-cc3p); }
.cc1 span:first-child  { color: var(--c-cc1);  }
.cc2 span:first-child  { color: var(--c-cc2);  }
.cc3 span:first-child  { color: var(--c-cc3);  }
.cc3p span:first-child { color: var(--c-cc3p); }

/* ─── Alert ───────────────────────────────────────────────── */
.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 13.5px;
}
.alert strong { display: block; margin-bottom: 7px; color: #b91c1c; }
.alert ul { padding-left: 18px; }
.alert li { color: #7f1d1d; margin-top: 3px; }

/* ─── Result card ─────────────────────────────────────────── */
.result-card { padding: 0; overflow: hidden; }

.result-header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px 24px 20px;
    flex-wrap: wrap;
}
@media (min-width: 480px) { .result-header { gap: 28px; } }

.result-header.cc1  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.result-header.cc2  { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.result-header.cc3  { background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.result-header.cc3p { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }

.result-col { min-width: 0; }
.result-arrow {
    font-size: 24px;
    color: rgba(0,0,0,.2);
    flex-shrink: 0;
    align-self: center;
}
.result-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-muted);
    margin-bottom: 3px;
}
.result-class {
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}
.result-header.cc1  .result-class { color: var(--c-cc1);  }
.result-header.cc2  .result-class { color: var(--c-cc2);  }
.result-header.cc3  .result-class { color: var(--c-cc3);  }
.result-header.cc3p .result-class { color: var(--c-cc3p); }
.result-class-desc { font-size: 12px; color: var(--c-muted); margin-top: 3px; }

.result-kk-body {
    padding: 14px 24px 16px;
    border-top: 1px solid var(--c-border);
}
.result-kk-desc { font-size: 13.5px; color: var(--c-muted); margin-bottom: 4px; line-height: 1.5; }
.result-kk-ref  { font-size: 12px; color: #a5b4fc; font-weight: 500; }

/* ─── Notices ─────────────────────────────────────────────── */
.notice {
    margin: 0 24px 16px;
    font-size: 13px;
    padding: 10px 13px;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}
.notice--warning { background: #fffbeb; border-left: 3px solid var(--c-cc2); color: #92400e; }
.notice--danger  { background: #fef2f2; border-left: 3px solid var(--c-cc3); color: #7f1d1d; }
.notice--ok      { background: #f0fdf4; border-left: 3px solid var(--c-cc1); color: #166534; }

/* ─── Limits table ────────────────────────────────────────── */
.limits-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
    border-radius: 8px;
}
.limits-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13px;
}
.limits-table th {
    text-align: left;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--c-bg);
    border-bottom: 2px solid var(--c-border);
    white-space: nowrap;
}
.th-val  { color: var(--c-text); }
.th-cc1  { color: var(--c-cc1);  }
.th-cc2  { color: var(--c-cc2);  }
.th-cc3  { color: var(--c-cc3);  }

.limits-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}
.limits-table tbody tr:last-child td { border-bottom: none; }
.limits-table tbody tr:hover { background: #f8fafc; }

.td-label { font-weight: 500; color: var(--c-text); white-space: nowrap; }
.td-limit { color: var(--c-muted); text-align: right; }

.td-val {
    text-align: right;
    white-space: nowrap;
}
.td-val strong { display: block; font-size: 14px; }

/* Class-colored backgrounds for value cell */
.cc1-bg { background: #f0fdf4 !important; }
.cc2-bg { background: #fffbeb !important; }
.cc3-bg { background: #fef2f2 !important; }
.cc3p-bg{ background: #f5f3ff !important; }

/* Inline badge */
.cc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 2px;
    color: #fff;
}
.cc-badge.cc1  { background: var(--c-cc1);  }
.cc-badge.cc2  { background: var(--c-cc2);  }
.cc-badge.cc3  { background: var(--c-cc3);  }
.cc-badge.cc3p { background: var(--c-cc3p); }

/* Proximity column */
.td-proximity { min-width: 160px; }
.prox-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 4px;
}
.prox-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .3s;
}
.cc1-fill  { background: var(--c-cc1);  }
.cc2-fill  { background: var(--c-cc2);  }
.cc3-fill  { background: var(--c-cc3);  }
.cc3p-fill { background: var(--c-cc3p); }

.prox-text     { font-size: 12px; color: var(--c-muted); }
.prox-exceeded { font-size: 12px; color: var(--c-cc3); font-weight: 600; }
.prox-none     { font-size: 12px; color: var(--c-muted); }

.dim-ok {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 4px;
    padding: 1px 6px;
    margin-top: 3px;
}

.ok-fill { background: #16a34a; }

/* Collapse row */
.collapse-row {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--c-bg);
    border-radius: 8px;
    font-size: 13px;
    color: var(--c-muted);
    line-height: 1.5;
}
.text-danger { color: var(--c-cc3);  }
.text-ok     { color: var(--c-cc1);  }

/* ─── Input summary ───────────────────────────────────────── */
.input-dl {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
}
.input-dl div {
    display: flex;
    gap: 8px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.input-dl dt { font-weight: 600; color: var(--c-muted); min-width: 180px; flex-shrink: 0; }
.input-dl dd { color: var(--c-text); }

.result-notice {
    font-size: 12.5px;
    color: var(--c-muted);
    background: var(--c-bg);
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 16px;
    line-height: 1.5;
    border: 1px solid var(--c-border);
}
.result-notice strong { color: var(--c-text); }

/* ─── Footer links ────────────────────────────────────────── */
.site-footer-links {
    position: fixed;
    bottom: 12px;
    left: 14px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-policy-link {
    color: #9ca3af;
    background: rgba(244,246,251,.92);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11.5px;
    text-decoration: none;
}
.cookie-policy-link:hover {
    color: var(--c-muted);
    background: #fff;
}

.private-access-link {
    color: #9ca3af;
    background: rgba(244,246,251,.92);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: color .14s, background .14s;
}
.private-access-link:hover {
    color: var(--c-muted);
    background: #fff;
}

body.private-access-open { overflow: hidden; }

.private-access-modal[hidden] { display: none !important; }
.private-access-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.private-access-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.28);
}
.private-access-panel {
    position: relative;
    width: min(100%, 320px);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.private-access-panel h2 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.private-access-lead {
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 14px;
}
.private-access-error {
    font-size: 13px;
    color: var(--c-cc3);
    margin-bottom: 12px;
}
.private-access-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted);
    margin-bottom: 6px;
}
.private-access-form input[type="password"] {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
}
.private-access-form input[type="password"]:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-l);
}
.private-access-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Knapper på cookie-politiksiden */
.btn-primary, .btn-secondary {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .14s;
}
.btn-primary  { background: var(--c-accent); color: #fff; }
.btn-primary:hover  { background: #4338ca; }
.btn-secondary { background: #e2e8f0; color: var(--c-text); }
.btn-secondary:hover { background: #cbd5e1; }

/* ─── Cookie policy page ──────────────────────────────────── */
.cookie-policy h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--c-text);
}
.cookie-policy h2:first-of-type { margin-top: 0; }
.cookie-policy p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
.cookie-policy ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.cookie-policy ul li {
    font-size: 13.5px;
    color: var(--c-muted);
    margin-bottom: 6px;
    line-height: 1.5;
}
.cookie-policy code {
    font-family: ui-monospace, monospace;
    font-size: 12.5px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--c-accent);
}
.cookie-table-wrap {
    overflow-x: auto;
    margin: 8px 0 16px;
}
.cookie-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 13px;
}
.cookie-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--c-bg);
    border-bottom: 2px solid var(--c-border);
}
.cookie-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-muted);
    vertical-align: top;
    line-height: 1.5;
}
.cookie-table td:first-child { color: var(--c-text); }

/* ─── Konstruktionstype / checkbox-label ──────────────────── */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--c-accent);
    flex-shrink: 0;
}

/* ─── Notice: info ────────────────────────────────────────── */
.notice--info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* ─── Rapport-upload sektion ──────────────────────────────── */
.report-card h2 { margin-bottom: 6px; }

.upload-area {
    border: 2px dashed var(--c-border);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    background: var(--c-bg);
    transition: border-color .15s, background .15s;
    margin: 16px 0;
    position: relative;
}
.upload-area:hover { border-color: var(--c-accent); background: var(--c-accent-l); }
.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.upload-icon  { font-size: 32px; }
.upload-text  { font-size: 15px; font-weight: 600; color: var(--c-text); }
.upload-hint  { font-size: 12px; color: var(--c-muted); }
.upload-selected { font-size: 13px; color: var(--c-accent); font-weight: 500; margin-top: 6px; }

.report-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* ─── Rapport-side styles ─────────────────────────────────── */
.report-print-header {
    display: none;
}
.report-list {
    padding-left: 20px;
    margin: 12px 0;
}
.report-list li {
    font-size: 14px;
    color: var(--c-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}
.report-list li strong { color: var(--c-text); }
.report-info-box {
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--c-muted);
    line-height: 1.6;
    margin-top: 14px;
}
.report-info-box strong { color: var(--c-text); }

.report-disclaimer {
    font-size: 12.5px;
    color: var(--c-muted);
    background: #fefce8;
    border: 1px solid #fde68a;
}
.report-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 0 32px;
}

/* ─── AI-rapport ──────────────────────────────────────────── */
.ai-report-card { }
.ai-report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ai-report-header h2 { margin: 0; }
.ai-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    border-radius: 20px;
    padding: 3px 10px;
}
.ai-badge--nofile { background: #dbeafe; color: #1d4ed8; }
.ai-report-body {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--c-text);
}
.ai-report-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 4px;
}
.ai-report-body h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: var(--c-text);
}
.ai-report-body p { margin-bottom: 10px; color: var(--c-muted); }
.ai-report-body p strong { color: var(--c-text); }
.ai-report-body ul { padding-left: 20px; margin-bottom: 12px; }
.ai-report-body li { margin-bottom: 5px; color: var(--c-muted); }

/* Print-badges i rapport-header */
.report-print-result { display: flex; align-items: center; gap: 8px; }
.report-cc-badge, .report-kk-badge {
    font-size: 18px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 6px;
    background: #1e293b;
    color: #fff;
}
.report-arrow { font-size: 20px; color: #64748b; }

/* ─── Alert-varianter ─────────────────────────────────────── */
.alert--warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    margin-bottom: 16px;
}

/* ─── Print-styles ────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
    .site-footer-links { display: none !important; }
    .site-header { display: none; }
    .page-hero { display: none; }
    .report-print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 0 16px;
        border-bottom: 2px solid #000;
        margin-bottom: 20px;
        font-size: 13px;
    }
    body { background: #fff; }
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 16px;
        padding: 16px;
    }
    .page-body { display: block; }
    .result-header { break-inside: avoid; }
    .ai-report-body p, .ai-report-body li { color: #333; }
    .report-list li { color: #333; }
    a { color: #000; text-decoration: none; }
}

/* ─── Rapport-typografi ───────────────────────────────────── */
.report-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--c-text);
}
.report-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.report-h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--c-border);
}
.report-p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}
.report-p strong { color: var(--c-text); }
.report-use-note {
    font-size: 12.5px;
    color: var(--c-muted);
    background: var(--c-bg);
    border-left: 3px solid var(--c-border);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin-top: 14px;
    line-height: 1.6;
}

/* ─── Krav-liste ──────────────────────────────────────────── */
.report-req-list {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.report-req-list li {
    font-size: 13.5px;
    color: var(--c-muted);
    line-height: 1.6;
    padding: 10px 14px;
    background: var(--c-bg);
    border-radius: 8px;
    border-left: 3px solid var(--c-accent);
}
.report-req-list li strong { color: var(--c-text); }

/* ─── KK-tabel (BR18 §489) ────────────────────────────────── */
.report-kk-table-wrap { overflow-x: auto; margin: 10px 0; }
.report-kk-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    font-size: 13px;
}
.report-kk-table th, .report-kk-table td {
    padding: 9px 14px;
    border: 1px solid var(--c-border);
    text-align: center;
}
.report-kk-table th { background: var(--c-bg); font-weight: 700; font-size: 12px; }
.report-kk-table td:first-child { text-align: left; font-weight: 600; color: var(--c-text); }
.report-kk-table td { color: var(--c-muted); }
.report-kk-table .kk-active {
    background: var(--c-accent);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    border-color: var(--c-accent);
}
.report-table-note {
    font-size: 11.5px;
    color: var(--c-muted);
    margin-top: 6px;
    font-style: italic;
}

/* ─── Konklusions-bokse ───────────────────────────────────── */
.report-conclusion-box {
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.65;
    margin-top: 14px;
}
.report-conclusion-box strong { display: inline; }
.report-conclusion-box p { margin: 0; color: inherit; background: none; }
.cc-conclusion-cc1  { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.cc-conclusion-cc2  { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.cc-conclusion-cc3  { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.cc-conclusion-cc3p { background: #f5f3ff; border: 1px solid #c4b5fd; color: #3b0764; }

/* ─── Dimensionsvurdering badges i rapport ────────────────── */
.badge-cc2-text  { color: var(--c-cc2); font-weight: 700; font-size: 12px; }
.badge-cc3-text  { color: var(--c-cc3); font-weight: 700; font-size: 12px; }
.badge-cc3p-text { color: var(--c-cc3p); font-weight: 700; font-size: 12px; }

/* ─── Print-justeringer ───────────────────────────────────── */
@media print {
    .report-req-list li { background: #f8f8f8; border-left-color: #333; break-inside: avoid; }
    .report-conclusion-box { break-inside: avoid; }
    .report-kk-table .kk-active { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
