:root { --marin: #1e3a6e; --bg: #f4f6f9; --text: #16202b; --dampad: #6b7280; --fel: #b91c1c; --ok: #15803d; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
.topp { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; background: var(--marin); color: #fff; }
.topp a { color: #fff; text-decoration: none; }
.topp-lankar { display: flex; gap: 1rem; flex-wrap: wrap; }
.topp-lankar a[aria-current] { text-decoration: underline; }
.dampad { opacity: .8; }
.innehall { max-width: 60rem; margin: 0 auto; padding: 1rem; }
.flash { padding: .6rem .9rem; border-radius: .5rem; margin-bottom: 1rem; }
.flash.fel { background: #fee2e2; color: var(--fel); }
.flash.ok { background: #dcfce7; color: var(--ok); }
.login-yta { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-kort { background: #fff; padding: 2rem; border-radius: 1rem; max-width: 22rem; width: 100%; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.knapp { display: inline-block; padding: .8rem 1.2rem; border-radius: .6rem; border: 0; font-size: 1rem; cursor: pointer; text-decoration: none; }
.knapp.primar { background: var(--marin); color: #fff; }
.sokform { display: flex; gap: .5rem; margin-bottom: 1rem; }
.sokform input { flex: 1; font-size: 1.1rem; padding: .7rem; border: 1px solid #cbd5e1; border-radius: .6rem; }
.tabell { width: 100%; border-collapse: collapse; background: #fff; border-radius: .6rem; overflow: hidden; }
.tabell th, .tabell td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid #e5e7eb; }
.regnr { font-family: ui-monospace, monospace; background: #fff; border: 2px solid var(--text); border-radius: .3rem; padding: 0 .4rem; font-size: .8em; }
.galleri { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.bricka { display: block; background: #fff; border-radius: .6rem; overflow: hidden; text-decoration: none; color: var(--text); }
.bricka img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.bricka-text { display: block; font-size: .75rem; padding: .3rem .5rem; color: var(--dampad); }
.inline { display: inline; }
.lank { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.lank.fel { color: var(--fel); }
.handelser { margin-top: 1.5rem; }

.steg { background: #fff; border-radius: .8rem; padding: 1rem; margin-bottom: .8rem; opacity: .45; pointer-events: none; }
.steg.aktiv, #steg-ao { opacity: 1; pointer-events: auto; }
.steg label:first-child { display: block; font-weight: 600; margin-bottom: .4rem; }
.steg input[type=text], .steg input:not([type]), .steg input[type=search] { width: 100%; font-size: 1.4rem; padding: .7rem; border: 1px solid #cbd5e1; border-radius: .6rem; }
.rad { display: flex; gap: .5rem; align-items: center; }
.knapp.stor { display: block; width: 100%; text-align: center; font-size: 1.2rem; padding: 1rem; margin-bottom: .6rem; background: #e5e7eb; }
.knapp.liten { padding: .4rem .7rem; font-size: .9rem; background: #e5e7eb; }
.slapp { border: 2px dashed #cbd5e1; border-radius: .6rem; padding: 1.5rem; text-align: center; color: var(--dampad); }
.slapp.over { border-color: var(--marin); background: #eef2ff; }
@media (max-width: 700px) { .slapp { display: none; } }
.upp-lista { list-style: none; padding: 0; }
.upp-lista li { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid #eee; }
.upp-lista .mini { height: 40px; border-radius: .3rem; margin-left: auto; }
.ok { color: var(--ok); } .fel { color: var(--fel); }
.spinner { width: 1em; height: 1em; border: 2px solid #cbd5e1; border-top-color: var(--marin); border-radius: 50%; animation: snurr .8s linear infinite; display: inline-block; }
@keyframes snurr { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chip { border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: .3rem .7rem; cursor: pointer; }
.badge { background: #f0a500; color: #16202b; border-radius: 999px; padding: 0 .45rem; font-size: .8em; font-weight: 700; }
.bricka-tom { aspect-ratio: 1; display: grid; place-items: center; font-size: 3rem; background: #f1f5f9; }
