
:root{
    --bg: #f3f5f9;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --info-bg:#eaf2ff;
    --info-line:#cfe1ff;
    --warn-bg:#ffeded;
    --warn-line:#feaaaa;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(17,24,39,.08);
}

*{ box-sizing:border-box; }
body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

.wrap{
    min-height: 100vh;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding: 28px 18px 56px;
}

.card{
    width: 100%;
    max-width: 820px;
    background: var(--card);
    border: 1px solid rgba(229,231,235,.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.header{
    display:flex;
    gap: 18px;
    align-items:flex-start;
    margin-bottom: 18px;
}

.logo { width: 64px; flex-shrink: 0; }
.logo img { display: block; width: 100%; height: auto; }

h1{
    margin:0;
    font-size: 26px;
    letter-spacing: -.2px;
}
.org{
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.lead{
    margin: 18px 0 0;
    font-size: 15px;
}
.lead b{ font-weight: 700; }

h2{
    margin: 22px 0 8px;
    font-size: 16px;
}

ul{ margin: 8px 0 0 18px; padding:0; }
li{ margin: 6px 0; color:#1f2937; }

.panel{
    margin-top: 18px;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--soft);
}
.panel.info{
    background: var(--info-bg);
    border-color: var(--info-line);
}
.panel h3{
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}
ol{ margin: 8px 0 0 18px; padding:0; }
ol li{ margin: 6px 0; }

.callout{
    margin-top: 14px;
    padding: 12px 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
}
.callout.warn{
    background: var(--warn-bg);
    border-color: var(--warn-line);
}

.tech{
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f3f3f3;
    padding: 16px;
}
.tech h3{
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

/* Teknisk info: grid som funker bra på desktop + kollapser på mobil */
.kv{
    display:grid;
    grid-template-columns: minmax(170px, 240px) 1fr;
    gap: 8px 12px;
    font-size: 14px;
    align-items:start;
}
.k{ color: #111827; font-weight: 700; }
.v{ color: #1f2937; word-break: break-word; overflow-wrap:anywhere; }

.kv-row{ display: contents; } /* lar oss skjule hele raden enkelt */
.kv-row[hidden]{ display:none !important; }

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

button{
    appearance:none;
    border: 1px solid var(--info-line);
    background: var(--info-bg);
    color: #3e5185;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 13px;
    cursor:pointer;
    transition: transform .05s ease, box-shadow .15s ease, border-color .15s ease;
    box-shadow: 0 1px 0 rgba(17,24,39,.04);
}

button:hover{
    border-color: #0d0b79;
    box-shadow: 0 6px 18px rgba(17,24,39,.08);
}

button:active{
    transform: translateY(1px);
}

.copy-status{
    color: #178a1f;
    font-size: 13px;
    min-height: 18px;
    font-style: italic;
}

.footer{
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
}

.badge{
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    color:#111827;
    box-shadow: 0 10px 30px rgba(17,24,39,.10);
}

/* Tablet */
@media (max-width: 820px){
    .card{ padding: 22px; }
    h1{ font-size: 24px; }
}

/* Mobil */
@media (max-width: 520px){
    .wrap{ padding: 18px 12px 56px; }
    .card{ padding: 18px; }
    .header{ gap: 14px; }
    .logo{ width: 56px; }
    h1{ font-size: 22px; }
    .kv{ grid-template-columns: 1fr; }
    .k{ color: var(--muted); font-weight: 600; }
}
