:root {
    color: #192635;
    background: #f4f6f8;
    font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #172b39; color: white; }
.shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
nav { display: flex; align-items: center; gap: 1.75rem; min-height: 4rem; }
nav a { color: inherit; text-decoration: none; }
.brand { font-size: 1.25rem; font-weight: 750; }
.nav-active { padding: .4rem .85rem; border-radius: .35rem; background: #325162; }
main { padding-block: 2rem; }
h1 { margin: 0 0 1rem; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
a { color: #145969; }
.filters, .panel, .table-wrap { border: 1px solid #d9e0e5; border-radius: .65rem; background: white; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .85rem 1rem; padding: 1rem; }
.search { flex: 1 1 19rem; }
label { display: block; font-size: .9rem; font-weight: 650; }
input:not([type=checkbox]) { display: block; width: 100%; margin-top: .25rem; padding: .55rem .65rem; border: 1px solid #9dabb5; border-radius: .35rem; }
input, button { font: inherit; }
.check { display: flex; align-items: center; min-height: 2.6rem; gap: .4rem; }
button { padding: .55rem 1rem; border: 0; border-radius: .35rem; background: #145969; color: white; cursor: pointer; font-weight: 650; }
.filters > a { align-self: center; }
.count { margin: 1rem 0 .45rem; color: #495b66; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem 1rem; border-bottom: 1px solid #e4e9ed; }
thead th { background: #edf2f5; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #f5fafb; }
.missing { display: block; font-size: .8rem; font-weight: 500; color: #81501d; }
.actions { width: 1%; white-space: nowrap; text-align: right; }
.icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid #d9e0e5; border-radius: .35rem; }
.icon + .icon { margin-left: .3rem; }
.icon:hover { background: #edf2f5; }
.icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.danger, .error { color: #9b3038; }
.panel { max-width: 42rem; display: grid; gap: 1rem; padding: 1.25rem; }
.panel p { margin: 0; }
.buttons { display: flex; gap: 1rem; align-items: center; }
.delete { background: #9b3038; }
.status { color: #216448; }
:focus-visible { outline: 2px solid #156b83; outline-offset: 3px; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { padding: .75rem 1rem; }
.filters + .count[hidden] + .table-wrap { margin-top: 1rem; }
.icon-disabled { margin-left: .3rem; padding: 0; background: #f4f6f8; color: #687985; cursor: default; }
.link-button { padding: .15rem .35rem; background: transparent; color: #145969; text-decoration: underline; }
dialog { width: min(44rem, 100% - 2rem); max-height: calc(100% - 2rem); padding: 1.25rem; color: inherit; border: 1px solid #d9e0e5; border-radius: .65rem; }
dialog::backdrop { background: #172b3980; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dialog-heading h2 { margin: 0; line-height: 1.2; }
.dans-musik { margin-top: 1rem; }
.dans-musik h2, .kopplingar { margin: 0; }
.kopplingar { padding-left: 1.25rem; }
.kopplingar small { color: #495b66; margin-left: .4rem; }
.koppla-lat { width: fit-content; color: #145969; cursor: pointer; font-weight: 650; }
.koppla-lat svg { width: 1em; height: 1em; vertical-align: -.12em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.koppla-form { display: grid; gap: .8rem; margin-top: .8rem; }
.koppla-form [hidden] { display: none; }
.panel select { display: block; width: 100%; margin-top: .25rem; padding: .55rem .65rem; border: 1px solid #9dabb5; border-radius: .35rem; font: inherit; }
.kopplingar { list-style: none; padding: 0; }
.kopplingar li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .35rem; }
.kopplingar button.icon:not(:disabled) { padding: 0; background: transparent; }
.kopplingar button.icon:not(:disabled):hover { background: #edf2f5; }
button.delete:disabled { background: #e4e9ed; color: #556774; cursor: default; }
.kopplingsatgarder { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem .65rem; }
.kopplingsatgarder .check { font-size: .875rem; }
.sidrubrik { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sidrubrik h1 { margin: 0; }
.ny-dans { display: inline-flex; align-items: center; gap: .4rem; border-radius: .35rem; background: #145969; color: white; padding: .55rem .85rem; text-decoration: none; font-weight: 650; }
.ny-dans svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

.panel + .panel { margin-top: 1rem; }
.sokresultat { margin-top: 1rem; }
button:disabled { opacity: .65; cursor: default; }
.nav-logout { margin-left: auto; }
.nav-logout button { background: transparent; padding-inline: .4rem; }
.danslist-musik { display: block; font-weight: 400; color: #495b66; }
.listrad-knappar, .listrad-knappar form { display: flex; gap: .25rem; justify-content: flex-end; }
.listikon { padding: .25rem .5rem; background: #e7eff2; color: #145969; }
.listikon.danger { color: #9b3038; }
.dansval { position: relative; }
.dansval-meny { position: absolute; z-index: 2; top: 100%; left: 0; right: 0; max-height: 16rem; overflow: auto; background: white; border: 1px solid #9dabb5; border-radius: .35rem; box-shadow: 0 .35rem .75rem #172b3920; }
.dansval-meny ul { list-style: none; padding: 0; margin: 0; }
.dansval-meny li, .dansval-meny p { padding: .45rem .65rem; }
.dansval-meny li[aria-disabled="false"] { cursor: pointer; }
.dansval-meny li[aria-disabled="false"]:hover, .dansval-meny li[aria-selected="true"] { background: #e7eff2; }
.dansval-meny li[aria-disabled="true"] { color: #687985; }

.dans-actions > .media-slot { display: inline-grid; place-items: center; width: 2.25rem; vertical-align: middle; }
.dans-actions > .icon { vertical-align: middle; }
button.media-icon { padding: 0; background: transparent; color: #155b67; }
button.media-icon:hover { background: #edf2f5; }
dialog.media-dialog { width: min(62rem, calc(100% - 2rem)); box-sizing: border-box; }
.media-innehall { margin: .75rem 0; }
.media-innehall iframe { display: block; width: 100%; height: min(68vh, 48rem); border: 0; background: #f4f6f8; }
.media-video iframe { width: min(100%, 115vh); height: auto; aspect-ratio: 16 / 9; margin-inline: auto; background: #202d39; }

dialog.danslista-forhandsgranskning { width: min(66rem, calc(100% - 1.5rem)); box-sizing: border-box; }
.danslista-forhandsgranskning iframe { display: block; width: 100%; height: min(76vh, 55rem); border: 0; margin-top: .75rem; border-radius: .4rem; background: #f2f5f8; }
.danslista-forhandsgranskning iframe[hidden] { display: none; }

.danslistemeny .brand { display: inline-flex; align-items: center; gap: .5rem; }
.danslistemeny .brand svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.danslistemeny button { background: transparent; padding: .4rem .65rem; }
.danslistemeny button:hover, .stang-danslistor:hover { background: #325162; }
.stang-danslistor { margin-left: auto; padding: .4rem .65rem; border-radius: .35rem; }
.danslistans-verktyg { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.danslistans-verktyg .icon { padding: 0; margin: 0; background: white; color: #145969; }
.danslistans-verktyg .icon:hover { background: #edf2f5; }
.danslistans-verktyg .icon.danger { color: #9b3038; }

.startordmarke { display: flex; align-items: center; margin: 0;
                 color: #172b39; font-size: clamp(2.25rem, 8.5vw, 5.4rem); font-weight: 820; letter-spacing: -.06em; }
.startordmarke-accent { color: #a34d2e; }
.startvinyl { width: .78em; aspect-ratio: 1; flex: none; margin-inline-end: -.02em; border-radius: 50%;
              background: radial-gradient(circle,
                  #f4f6f8 0 5%, #a34d2e 6% 24%, #172b39 25% 38%,
                  #536674 39% 41%, #172b39 42% 57%, #536674 58% 60%,
                  #172b39 61% 71%, transparent 72%); }
.startkollage { display: block; width: 100%; height: auto; border-radius: .65rem; }

.startkollage-ram { position: relative; container-type: inline-size; }
.startkollage-rubrik { position: absolute; z-index: 1; left: 74.5%; top: 59%; transform: translate(-50%, -50%) rotate(-3.5deg);
                      color: #123244; white-space: nowrap; font-size: 3.1vw; font-size: min(3.1cqw, 2.2rem); font-weight: 800; line-height: 1; }

.sprakval a { display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; }
nav .sprakval { margin-left: auto; }
nav .sprakval + .nav-logout, nav .sprakval + .stang-danslistor { margin-left: 0; }
