/* Samljóð on Laravel: the few things the lifted portal sheet does not cover. */
body.samljod-portal-page { margin: 0; background: #f6f4f1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f1b16; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.samljod-switch { margin: 14px 0 6px; display: grid; gap: 6px; }
.samljod-switch p { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.samljod-switch a { display: block; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(138, 65, 6, .35); color: #8a4106; background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; }
.samljod-switch a:hover, .samljod-switch a:focus-visible { background: #8a4106; color: #fff; }
.samljod-me { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.samljod-me-name { display: grid; gap: 2px; min-width: 0; }
.samljod-me-name span { opacity: .7; font-size: 14px; }
.samljod-me-photo { grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--nsm-lime, #fcd34d); color: #1f2126; font-weight: 700; font-size: 20px; overflow: hidden; }
.samljod-me-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.samljod-me-photo-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.samljod-me-photo-tools form { margin: 0; }
.samljod-me-pick, .samljod-me-photo-tools .samljod-me-drop { display: inline-block; padding: .28rem .7rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: normal; cursor: pointer; opacity: .9; }
.samljod-me-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.samljod-me-pick:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.samljod-me > .nsm-pass-said { grid-column: 1 / -1; margin: 0; }
.samljod-logout { margin-top: 12px; }

body.samljod-door { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; background: linear-gradient(160deg, #fdf6ec, #f3e3cd); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f1b16; }
.samljod-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: 0 18px 50px rgba(90, 50, 10, .14); text-align: center; box-sizing: border-box; }
.samljod-card h1 { margin: 12px 0 4px; font-size: 28px; }
.samljod-lead { margin: 0 0 22px; opacity: .7; }
.samljod-card form { display: grid; gap: 14px; text-align: left; }
.samljod-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.samljod-card input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9cfc2; }
.samljod-card input:focus-visible { outline: 3px solid rgba(180, 83, 9, .35); border-color: #b45309; }
.samljod-card button { font: inherit; font-weight: 700; padding: 13px 16px; border: 0; border-radius: 12px; background: #b45309; color: #fff; cursor: pointer; }
.samljod-card button:hover { background: #8a4106; }
.samljod-card button.samljod-quiet { background: none; color: #8a4106; font-weight: 600; padding: 8px; justify-self: center; }
.samljod-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #8c1d18; font-size: 14px; }
.samljod-ensembles { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; text-align: left; }
.samljod-ensembles a { display: grid; gap: 3px; padding: 16px 18px; border-radius: 14px; border: 1px solid #e6dccf; text-decoration: none; color: inherit; }
.samljod-ensembles a:hover, .samljod-ensembles a:focus-visible { border-color: #b45309; background: #fdf6ec; }
.samljod-ensembles span { font-size: 14px; opacity: .7; }

.samljod-under { margin: 16px 0 0; font-size: 14px; }
.samljod-under a { color: #8a4106; }
.samljod-admin a { color: var(--sj-accent-deep); }
.samljod-hint { margin: 0; font-size: 13px; opacity: .72; line-height: 1.45; }
.samljod-ok { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #e9f5ec; color: #1d5a2c; font-size: 14px; text-align: left; }
.samljod-rail-link { display: block; margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-size: 14px; opacity: .85; }
.nsm-tabs .samljod-rail-link { grid-column: 1 / -1; }
.samljod-rail-link:hover, .samljod-rail-link:focus-visible { background: rgba(255, 255, 255, .12); opacity: 1; }

body.samljod-admin { --sj-accent: #b45309; --sj-accent-deep: #8a4106; --sj-highlight: #fcd34d; --sj-rail: #1f1b16; --sj-paper: #f6f4f1; --sj-line: var(--sj-line); --sj-tint: #f1e9de; margin: 0; background: var(--sj-paper); color: #1f1b16; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.samljod-admin-head { background: var(--sj-rail); color: #fff; padding: 14px 16px 18px; }
.samljod-admin-head a { color: var(--sj-highlight); font-size: 14px; text-decoration: none; }
.samljod-admin-head h1 { margin: 8px 0 0; font-size: 24px; }
.samljod-admin-head h1 span, .samljod-admin h2 span { font-weight: 400; opacity: .65; font-size: .7em; margin-left: 8px; }
.samljod-admin main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }
.samljod-admin section { background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(60, 40, 10, .06); }
.samljod-admin h2 { margin: 0 0 12px; font-size: 20px; }
.samljod-admin h3 { margin: 16px 0 6px; font-size: 16px; }
.samljod-table { display: grid; }
.samljod-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px solid var(--sj-line); }
.samljod-row-part { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; }
.samljod-row:first-child { border-top: 0; }
.samljod-who { display: grid; gap: 2px; min-width: 0; align-self: center; }
.samljod-who span { font-size: 13px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samljod-admin label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.samljod-admin label span { opacity: .7; }
.samljod-admin select, .samljod-admin input[type=text], .samljod-admin input[type=email] { font: inherit; font-weight: 400; padding: 8px 10px; border-radius: 10px; border: 1px solid #d9cfc2; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.samljod-admin button { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--sj-accent); color: #fff; cursor: pointer; }
.samljod-admin button:hover { background: var(--sj-accent-deep); }
.samljod-admin button.samljod-quiet { background: var(--sj-tint); color: var(--sj-accent-deep); }
.samljod-admin button.samljod-danger { background: none; color: #a3261d; padding: 8px 6px; }
.samljod-row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.samljod-add { margin-top: 14px; border-top: 1px solid var(--sj-line); padding-top: 12px; }
.samljod-add summary { cursor: pointer; font-weight: 700; color: var(--sj-accent-deep); }
.samljod-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.samljod-form .samljod-hint, .samljod-form button { grid-column: 1 / -1; justify-self: start; }
.samljod-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; margin: 10px 0 14px; max-height: 340px; overflow: auto; padding: 4px; border: 1px solid var(--sj-line); border-radius: 10px; }
.samljod-folder-grid label { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; }
.samljod-source > form:first-of-type { margin: 8px 0; }
@media (max-width: 720px) {
    .samljod-row, .samljod-row-part, .samljod-form { grid-template-columns: 1fr; }
}

.samljod-changed { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; margin: 0; max-width: min(640px, calc(100% - 32px)); display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff7e6; color: #5b3a12; border: 1px solid #f0c36d; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.4; }
.samljod-changed button { flex: none; font: inherit; font-weight: 700; padding: 8px 12px; border: 0; border-radius: 10px; background: #b45309; color: #fff; cursor: pointer; }

.samljod-row-event { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.samljod-button { display: inline-block; padding: 8px 14px; border-radius: 10px; background: var(--sj-accent); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.samljod-admin textarea, .samljod-admin input[type=datetime-local] { font: inherit; font-weight: 400; padding: 8px 10px; border-radius: 10px; border: 1px solid #d9cfc2; width: 100%; box-sizing: border-box; }
.samljod-form .samljod-wide { grid-column: 1 / -1; }
.samljod-add-piece { display: flex; gap: 10px; align-items: end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sj-line); }
.samljod-add-piece label { flex: 1; }
.samljod-admin button:disabled { opacity: .35; cursor: default; }


/* ---- The whole screen -------------------------------------------------
   The lifted skin floats the portal as a card in the middle of the page. On
   its own address there is nothing around it to float in: the rail becomes the
   left edge of the window, full height, and the content takes all the rest. */
@media (min-width: 900px) {
    body.samljod-portal-page { background: var(--nsm-paper, #f6f4ef); }
    body.samljod-portal-page .nsm-portal { --tt-rail: 212px; max-width: none; margin: 0; column-gap: 0; min-height: 100vh; align-items: start; }
    body.samljod-portal-page .nsm-portal > *:not(.nsm-tabs) { margin-left: 22px; margin-right: 22px; }
    body.samljod-portal-page .nsm-portal > [data-nsm-panel] { padding-top: 16px; padding-bottom: 28px; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs { top: 0; height: 100vh; box-sizing: border-box; border-radius: 0; padding: 0 0 10px; overflow-y: auto; }
    body.samljod-portal-page .nsm-portal .nsm-rail-brand { margin: 0 0 6px; padding: 14px 14px 13px; gap: .7rem; background: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    body.samljod-portal-page .nsm-portal .nsm-rail-name { font-size: .86rem; font-weight: 700; color: #fff; line-height: 1.2; }
    body.samljod-portal-page .nsm-portal .samljod-rail-logo { flex: 0 0 58px; width: 58px; height: 42px; padding: 4px 5px; box-sizing: border-box; background: #fff; border-radius: 8px; object-fit: contain; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs button { padding: 9px 14px; font-size: 14px; border-left-width: 3px; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs button.is-active { border-left-color: var(--nsm-lime) !important; background: rgba(255, 255, 255, .1); }
    body.samljod-portal-page .nsm-portal .nsm-rail-group { padding: 0 14px; margin-top: .8rem; color: rgba(255, 255, 255, .45); }
    .nsm-portal > .nsm-tabs .samljod-rail-link { order: 16; margin: 0; padding: 9px 14px 9px 17px; border-radius: 0; color: var(--tt-side-ink); opacity: 1; }
    .nsm-portal > .nsm-tabs .samljod-rail-link:hover { background: var(--tt-side2); color: #fff; }
    .nsm-portal > .nsm-tabs .samljod-switch { order: 18; margin: auto 12px 0; padding-top: 14px; }
    .nsm-portal > .nsm-tabs .samljod-switch p { color: rgba(255, 255, 255, .45); opacity: 1; }
    .nsm-portal > .nsm-tabs .samljod-switch a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; border-radius: 10px; font-weight: 500; font-size: 13px; }
    .nsm-portal > .nsm-tabs .samljod-switch a:hover, .nsm-portal > .nsm-tabs .samljod-switch a:focus-visible { background: #fff; color: var(--tt-side); }
    .nsm-portal > .nsm-tabs .nsm-rail-version { order: 21; margin: 10px 14px 0; }
    .nsm-portal > .nsm-tabs .samljod-switch ~ .nsm-rail-version { margin-top: 10px; }
    .nsm-portal > .nsm-tabs:not(:has(.samljod-switch)) .nsm-rail-version { margin-top: auto; }
}
/* The ensemble's photo behind the heading of "Mín síða". */
body.samljod-portal-page.has-photo .nsm-portal .nsm-hero { background: linear-gradient(100deg, color-mix(in srgb, var(--tt-side) 96%, transparent) 0%, color-mix(in srgb, var(--tt-side) 72%, transparent) 50%, color-mix(in srgb, var(--tt-side) 25%, transparent) 100%), var(--sj-photo) center 30% / cover no-repeat !important; min-height: 210px; }

/* No play history is kept yet; an empty "Spælisøga 0" on every row is noise. */
body.samljod-portal-page .nsm-piece .nsm-history { display: none; }
.samljod-rail-link { display: flex; align-items: center; gap: .5rem; }
.samljod-rail-link .nsm-tab-icon svg { width: 15px; height: 15px; display: block; }
.samljod-top { display: none; }

/* ---- Phone and upright tablet ------------------------------------------
   The ensemble's name across the top, the sections as a bar along the bottom
   where the thumb is, and everything between them for the music. */
@media (max-width: 899px) {
    body.samljod-portal-page { background: var(--nsm-paper, #f6f4ef); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .samljod-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--tt-side, #17181c); color: #fff; }
    .samljod-top img { width: 46px; height: 32px; padding: 2px 4px; box-sizing: border-box; background: #fff; border-radius: 6px; object-fit: contain; }
    .samljod-top-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; }
    .samljod-top strong { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .samljod-top a { flex: none; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 13px; text-decoration: none; }
    body.samljod-portal-page .nsm-portal { margin: 0; padding: 10px 12px 0; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow: visible; background: var(--tt-side, #17181c); border-radius: 0; box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button,
    body.samljod-portal-page .nsm-portal > .nsm-tabs > .samljod-rail-link { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin: 0; padding: 5px 2px; border: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--tt-side-ink, #c3c0b8); font-size: 11px; font-weight: 600; line-height: 1.1; white-space: nowrap; opacity: 1; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button.is-active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 3px 0 var(--nsm-lime); }
    body.samljod-portal-page .nsm-portal > .nsm-tabs .nsm-tab-icon svg { width: 21px; height: 21px; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs .nsm-tab-count,
    body.samljod-portal-page .nsm-portal > .nsm-tabs .nsm-tab-tooltip,
    body.samljod-portal-page .nsm-portal > .nsm-tabs .samljod-switch,
    body.samljod-portal-page .nsm-portal > .nsm-tabs .nsm-rail-version { display: none; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="library"] { order: 1; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="programmes"] { order: 2; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="profile"] { order: 3; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > .samljod-rail-link { order: 4; }
    /* One compact block per piece: number, name and voices on the left, the
       notes button on the right. The skin lays a row out on the article's own
       grid (its inner wrappers are display:contents), so that grid is the one
       to reshape. */
    body.samljod-portal-page .nsm-piece { grid-template-columns: 1.7rem auto minmax(0, 1fr) auto; column-gap: 8px; row-gap: 3px; align-items: center; padding: 9px 10px; }
    body.samljod-portal-page .nsm-piece .nsm-piece-star { grid-column: 1; grid-row: 1 / span 3; }
    body.samljod-portal-page .nsm-piece .nsm-piece-no { grid-column: 2; grid-row: 1; min-width: 0; }
    body.samljod-portal-page .nsm-piece .nsm-piece-no:empty { display: none; }
    body.samljod-portal-page .nsm-piece h3 { grid-column: 3; grid-row: 1; min-width: 0; font-size: 15px; white-space: normal; }
    body.samljod-portal-page .nsm-piece .nsm-piece-no:empty + h3 { grid-column: 2 / span 2; }
    body.samljod-portal-page .nsm-piece .nsm-piece-credits,
    body.samljod-portal-page .nsm-piece .nsm-catalog-note,
    body.samljod-portal-page .nsm-piece .nsm-collection-badges { grid-column: 2 / span 2; grid-row: auto; min-width: 0; }
    body.samljod-portal-page .nsm-piece .nsm-piece-voices { grid-column: 2 / span 2; grid-row: auto; }
    body.samljod-portal-page .nsm-piece .nsm-piece-added { display: none; }
    body.samljod-portal-page .nsm-piece .nsm-actions { grid-column: 4; grid-row: 1 / span 4; margin: 0; align-self: center; }
    body.samljod-portal-page .nsm-piece .nsm-actions > button { width: auto; height: 42px; min-height: 0; padding: 0 16px; }
}
}
.samljod-ensembles a.has-logo { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.samljod-ensembles a.has-logo img { grid-row: span 2; width: 64px; height: 42px; object-fit: contain; }

/* ---- Boð --------------------------------------------------------------- */
.samljod-board { max-width: 860px; }
.samljod-board h2 { margin: 0 0 10px; font-size: 1.25rem; }
.samljod-compose { display: flex; gap: 8px; align-items: flex-end; }
.samljod-compose textarea { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--nsm-field-border, #d5cfc2); background: #fff; resize: vertical; }
.samljod-compose button { flex: none; font: inherit; font-weight: 700; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--nsm-green, #b45309); color: #fff; cursor: pointer; }
.samljod-thread { margin-top: 12px; padding: 12px 14px; background: var(--nsm-surface, #fff); border: 1px solid var(--nsm-line, #e2ddd2); border-radius: 12px; }
.samljod-msg { display: flex; gap: 10px; padding: 6px 0; }
.samljod-msg.is-reply { margin-left: 22px; padding-left: 12px; border-left: 2px solid var(--nsm-line, #e2ddd2); }
.samljod-msg-avatar { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--nsm-lime, #fcd34d); color: #1f2126; font-size: 12px; font-weight: 700; }
.samljod-msg-body { flex: 1; min-width: 0; }
.samljod-msg-head { margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.samljod-msg-head time { color: var(--nsm-muted, #6b6a63); }
.samljod-msg-new { padding: 1px 7px; border-radius: 999px; background: var(--nsm-green, #b45309); color: #fff; font-size: 11px; font-weight: 700; }
.samljod-msg-text { margin: 2px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.samljod-msg-delete button { margin-top: 2px; padding: 0; border: 0; background: none; color: var(--nsm-muted, #6b6a63); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.samljod-reply { margin-top: 6px; }
.samljod-reply summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--nsm-link, #b45309); }
.samljod-reply .samljod-compose { margin-top: 8px; }
@media (max-width: 899px) {
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="messages"] { order: 3; position: relative; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="profile"] { order: 4; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > .samljod-rail-link { order: 5; }
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="messages"] .nsm-message-count:not([hidden]) { display: block; position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; padding: 0 4px; border-radius: 999px; background: var(--nsm-lime); color: #1f2126; font-size: 10px; line-height: 16px; }
}

/* Umsiting: members from a pasted list */
.samljod-form textarea { width: 100%; box-sizing: border-box; min-height: 9em; font: inherit; padding: 10px 12px; border: 1px solid var(--sj-line, #d9dde6); border-radius: 10px; resize: vertical; }
.samljod-list-preview { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--sj-line, #d9dde6); border-radius: 12px; background: #fff; }
.samljod-list-preview h3 { margin: 0 0 8px; font-size: 15px; }
.samljod-list-preview ul { list-style: none; margin: 0 0 14px; padding: 0; }
.samljod-list-preview li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--sj-line, #e6e9f0); font-size: 14px; }
.samljod-list-preview li span { opacity: .7; }
.samljod-list-preview li em { margin-left: auto; font-style: normal; font-size: 13px; }
.samljod-list-preview li.is-new em { color: #17703a; }
.samljod-list-preview li.is-member em { opacity: .6; }
.samljod-list-preview li.is-unreadable em { color: #a3261e; }

/* Skráir: the archive of old programmes from the source */
.samljod-archive { margin: 2rem 0 1rem; }
.samljod-archive > h2 { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .3rem; font-size: 1.25rem; }
.samljod-archive > h2 span { font-size: .8rem; font-weight: 500; opacity: .6; }
.samljod-archive-hint { margin: 0 0 1rem; font-size: .85rem; opacity: .7; max-width: 60ch; }
.samljod-archive-group { margin: .6rem 0; border: 1px solid var(--nsm-line, #dde2ee); border-radius: 14px; background: var(--nsm-surface, #fff); }
.samljod-archive-group summary { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.samljod-archive-group summary::-webkit-details-marker { display: none; }
.samljod-archive-group summary::before { content: "▸"; opacity: .5; }
.samljod-archive-group[open] summary::before { content: "▾"; }
.samljod-archive-group summary h3 { margin: 0; font-size: 1rem; }
.samljod-archive-group summary span { margin-left: auto; font-size: .8rem; opacity: .6; font-variant-numeric: tabular-nums; }
.samljod-archive-group ul { list-style: none; margin: 0; padding: 0 1rem .6rem; columns: 2 320px; column-gap: 2rem; }
.samljod-archive-group li { break-inside: avoid; padding: .4rem 0; border-top: 1px solid var(--nsm-line, #e6e9f0); font-size: .9rem; }
.samljod-archive-group li a { color: inherit; text-decoration: none; }
.samljod-archive-group li a:hover { text-decoration: underline; }
.samljod-archive-group li a b { display: inline-block; min-width: 2.8em; font-variant-numeric: tabular-nums; color: var(--sj-accent, #1c46b0); }
.samljod-archive-pieces { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 .1rem 2.8em; }
.samljod-archive-pieces button { border: 0; border-radius: 999px; padding: .2rem .65rem; background: var(--sj-tint, #edf1fb); color: var(--sj-accent-deep, #12307f); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.samljod-archive-pieces button:hover { background: var(--sj-accent, #1c46b0); color: #fff; }

/* Reader: choosing between several practice recordings */
.samljod-recordings { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; }
.samljod-recordings select { flex: 1; min-width: 0; font: inherit; font-weight: 500; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--nsm-line, #d9dde6); background: #fff; color: #111; }

/* Library rows: a small mark right after the title when the piece has
   practice sound — headphones for a recording, a note for MIDI. Drawn on the
   title itself so it sits beside the words whatever their length; the skin's
   own round buttons stay in the detail box. */
body.samljod-portal-page .nsm-portal .nsm-piece .nsm-media-strip { display: none; }
body.samljod-portal-page .nsm-portal .nsm-piece:has(.nsm-mp3-badge.is-available) h3::after,
body.samljod-portal-page .nsm-portal .nsm-piece:has(.nsm-midi-badge.is-available) h3::after {
    content: ""; display: inline-block; width: .95em; height: .95em; margin-left: .45em; vertical-align: -.12em;
    background: var(--sj-highlight, #e0b040); filter: brightness(.82);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h3v-8H5v-1a7 7 0 0 1 14 0v1h-4v8h3a3 3 0 0 0 3-3v-6a9 9 0 0 0-9-9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h3v-8H5v-1a7 7 0 0 1 14 0v1h-4v8h3a3 3 0 0 0 3-3v-6a9 9 0 0 0-9-9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.samljod-portal-page .nsm-portal .nsm-piece:has(.nsm-midi-badge.is-available):not(:has(.nsm-mp3-badge.is-available)) h3::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3h-6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3h-6z'/%3E%3C/svg%3E");
}
body.samljod-portal-page .nsm-portal .nsm-piece:has(.nsm-midi-badge.is-available):has(.nsm-mp3-badge.is-available) h3::after {
    width: 2.1em;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h3v-8H5v-1a7 7 0 0 1 14 0v1h-4v8h3a3 3 0 0 0 3-3v-6a9 9 0 0 0-9-9z'/%3E%3C/svg%3E") left center / .95em no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3h-6z'/%3E%3C/svg%3E") right center / .95em no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h3v-8H5v-1a7 7 0 0 1 14 0v1h-4v8h3a3 3 0 0 0 3-3v-6a9 9 0 0 0-9-9z'/%3E%3C/svg%3E") left center / .95em no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3h-6z'/%3E%3C/svg%3E") right center / .95em no-repeat;
}

/* Reader bar: tighter, and Close always within reach. The bar scrolls
   sideways when it is too wide; the close button is pinned to its right edge
   but sat BELOW the tool buttons, which slid over it. */
body.samljod-portal-page .nsm-reader-bar { gap: .4rem; padding: 0 0 0 .7rem; }
body.samljod-portal-page .nsm-reader-bar .nsm-reader-close { z-index: 40; align-self: stretch; padding: 0 .9rem; margin-left: .2rem; box-shadow: -10px 0 12px -6px rgba(0, 0, 0, .55); }
body.samljod-portal-page .nsm-reader-bar strong { flex: 1 1 120px; min-width: 60px; }
body.samljod-portal-page .nsm-reader-bar .nsm-reader-tool { padding: .36rem .55rem; font-size: .76rem; }
/* Sound marks only for what the piece has; steering from a phone is not in this version. */
body.samljod-portal-page .nsm-reader .nsm-reader-media-strip > .nsm-media-icon:disabled { display: none !important; }
body.samljod-portal-page .nsm-reader-bar [data-nsm-pair] { display: none; }
/* Long labels shortened while the window is not wide. */
@media (max-width: 1500px) {
    body.samljod-portal-page .nsm-reader-bar .nsm-reader-download,
    body.samljod-portal-page .nsm-reader-bar .nsm-reader-mine,
    body.samljod-portal-page .nsm-reader-bar [data-nsm-fullscreen] { font-size: 0; }
    body.samljod-portal-page .nsm-reader-bar .nsm-reader-download::after { content: "Tak niður"; font-size: .76rem; }
    /* Once the part is on the device the button removes it, and has to say so. */
    body.samljod-portal-page .nsm-reader-bar .nsm-reader-download.is-saved::after { content: "Strika av eindini"; }
    body.samljod-portal-page .nsm-reader-bar .nsm-reader-download.is-saved:disabled::after { content: "Á eindini ✓"; }
    body.samljod-portal-page .nsm-reader-bar .nsm-reader-mine::after { content: "Mín part"; font-size: .76rem; }
    body.samljod-portal-page .nsm-reader-bar .nsm-reader-mine.is-mine::after { content: "Mín part ✓"; }
    /* These short labels are drawn by the stylesheet, where the translator cannot reach them. */
    html:lang(en) body.samljod-portal-page .nsm-reader-bar .nsm-reader-download::after { content: "Download"; }
    html:lang(en) body.samljod-portal-page .nsm-reader-bar .nsm-reader-download.is-saved::after { content: "Remove from device"; }
    html:lang(en) body.samljod-portal-page .nsm-reader-bar .nsm-reader-download.is-saved:disabled::after { content: "On device ✓"; }
    html:lang(en) body.samljod-portal-page .nsm-reader-bar .nsm-reader-mine::after { content: "My part"; }
    html:lang(en) body.samljod-portal-page .nsm-reader-bar .nsm-reader-mine.is-mine::after { content: "My part ✓"; }
    body.samljod-portal-page .nsm-reader-bar [data-nsm-fullscreen]::after { content: "⛶"; font-size: 1rem; line-height: 1; }
}

/* Umsiting pages: the portal's sidebar stays, so there is always a way around. */
.samljod-admin-rail { display: none; }
@media (min-width: 900px) {
    body.samljod-admin { padding-left: 212px; }
    .samljod-admin-rail { display: flex; flex-direction: column; gap: 2px; position: fixed; inset: 0 auto 0 0; width: 212px; box-sizing: border-box; padding: 14px 10px; overflow-y: auto; background: var(--sj-rail, #1f1b16); color: var(--tt-side-ink, #cdd7f3); }
    .samljod-admin-rail a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: inherit; text-decoration: none; font-size: 15px; }
    .samljod-admin-rail a:hover { background: var(--tt-side2, rgba(255, 255, 255, .08)); color: #fff; }
    .samljod-admin-rail a.is-active { background: var(--tt-side2, rgba(255, 255, 255, .12)); color: #fff; font-weight: 600; }
    .samljod-admin-rail svg { width: 18px; height: 18px; flex: none; }
    .samljod-admin-rail p { margin: 14px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
    .samljod-admin-rail .samljod-admin-brand { gap: 10px; padding: 4px 4px 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); border-radius: 0; color: #fff; }
    .samljod-admin-rail .samljod-admin-brand:hover { background: none; }
    .samljod-admin-rail .samljod-admin-brand img { width: 52px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
    .samljod-admin-rail .samljod-admin-brand span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--sj-highlight, #fcd34d); color: #111; font-weight: 800; }
    .samljod-admin-rail .samljod-admin-brand strong { font-size: 14px; line-height: 1.2; }
    /* The rail is the way back now. */
    .samljod-admin-head > a[href$="/"] { display: none; }
    .samljod-admin-head > a[href$="/"] + h1 { margin-top: 0; }
}

/* Mín síða: air between the "Vel títt ljóðføri" label and its chooser. */
body.samljod-portal-page label[for="nsm-instrument"] { display: block; margin-bottom: .4rem; }

/* Boð: the list of conversations beside the board, and private conversations. */
.samljod-boards { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; max-width: 1180px; }
.samljod-boards .samljod-board { max-width: none; }
.samljod-board h2 span { margin-left: .5rem; font-size: .78rem; font-weight: 500; opacity: .6; }
.samljod-convs { display: flex; flex-direction: column; gap: 4px; }
.samljod-convs button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.samljod-convs button:hover { background: var(--sj-tint, #edf1fb); }
.samljod-convs button.is-active { background: var(--nsm-surface, #fff); box-shadow: 0 0 0 1px var(--nsm-line, #dde2ee); }
.samljod-convs button > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.samljod-convs button strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samljod-convs button small { font-size: 12px; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samljod-convs button em { flex: none; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--nsm-green, #1c46b0); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; text-align: center; }
.samljod-conv-new { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--nsm-line, #dde2ee); }
.samljod-conv-new summary { padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--nsm-link, #1c46b0); cursor: pointer; }
.samljod-conv-none { margin: 8px 10px; font-size: 13px; opacity: .7; line-height: 1.4; }
.samljod-direct-thread { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; margin: 10px 0 12px; padding: 2px; }
.samljod-bubble { align-self: flex-start; max-width: min(78%, 560px); padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--nsm-surface, #fff); border: 1px solid var(--nsm-line, #dde2ee); }
.samljod-bubble.is-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--sj-tint, #edf1fb); border-color: transparent; }
.samljod-bubble.is-new { box-shadow: 0 0 0 2px var(--sj-highlight, #e0b040); }
.samljod-bubble p { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.samljod-bubble small { display: block; margin-top: 3px; font-size: 11px; opacity: .6; }
.samljod-bubble form { display: inline; }
.samljod-bubble form button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 11px; opacity: .6; text-decoration: underline; cursor: pointer; }
@media (max-width: 899px) {
    .samljod-boards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .samljod-convs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .samljod-convs button { width: auto; flex: none; max-width: 190px; }
    .samljod-conv-new { margin: 0; padding: 0; border: 0; flex: none; }
    .samljod-conv-new[open] { display: flex; gap: 4px; }
}

/* Skráir: the conductor's way to a new rehearsal or concert. */
.samljod-new-event { margin: 0 0 1rem; }
.samljod-new-event a { display: inline-block; padding: .55rem 1rem; border-radius: 10px; background: var(--sj-accent, #1c46b0); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }
.samljod-new-event a:hover { background: var(--sj-accent-deep, #12307f); }

/* Mínir nótar / Mínar notir: in the rail on a wide screen; on a phone the tab
   bar is full, so they are reached from Mín síða. */
.samljod-own-links { display: none; }
.nsm-mynotes textarea { box-sizing: border-box; width: 100%; max-width: 860px; min-height: 50vh; padding: 14px 16px; border: 1px solid var(--nsm-line, #dde2ee); border-radius: 12px; background: var(--nsm-surface, #fff); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.nsm-mysheets { max-width: 860px; }
@media (max-width: 899px) {
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="mysheets"],
    body.samljod-portal-page .nsm-portal > .nsm-tabs > button[data-nsm-tab="mynotes"] { display: none; }
    .samljod-own-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
    .samljod-own-links button { padding: 12px; border: 1px solid var(--nsm-line, #dde2ee); border-radius: 12px; background: var(--nsm-surface, #fff); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
}

/* Event page: sending a reminder */
.samljod-remind { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sj-line, #dde2ee); }
.samljod-remind span { font-size: 13px; opacity: .7; }
/* Skráir: the conductor's live controls on an event */
.nsm-live-conductor { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: .6rem; }

/* Reader: the page-turn areas are invisible buttons a fifth of the screen
   wide; the browser's focus ring around one drew a tall blue box over the
   music. Pages turn with the arrow keys anyway, so the ring is simply off. */
.nsm-reader .nsm-tap:focus, .nsm-reader .nsm-tap:focus-visible { outline: none; }
/* Stroyming in the menu: under Tónleikur on the rail, beside Skráir on a phone. */
@media (min-width: 900px) { .nsm-portal > .nsm-tabs .samljod-rail-link.samljod-rail-stream { order: 7; } }
@media (max-width: 899px) { body.samljod-portal-page .nsm-portal > .nsm-tabs > .samljod-rail-link.samljod-rail-stream { order: 2; } }

/* Umsiting: combined PDFs and the page for splitting one by pages */
.samljod-row-set { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) auto; align-items: center; }
.samljod-set-state { font-size: 13px; opacity: .75; }
.samljod-split { max-width: 1040px; }
.samljod-split-rows { display: grid; gap: 8px; margin: 12px 0; }
.samljod-split-row { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto auto auto; gap: 10px; align-items: center; }
.samljod-split-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.samljod-split-row input[type="number"] { width: 5.2em; }
.samljod-split-row select, .samljod-split-row input { font: inherit; padding: 7px 9px; border: 1px solid var(--sj-line, #d9dde6); border-radius: 9px; background: #fff; }
.samljod-split-preview canvas { display: block; max-width: 100%; border: 1px solid var(--sj-line, #d9dde6); border-radius: 6px; background: #fff; }
@media (max-width: 700px) { .samljod-split-row { grid-template-columns: 1fr 1fr; } }

/* The way out of an ensemble: other ensembles by their emblems, and the front page. */
.samljod-switch a.samljod-switch-band, .samljod-switch a.samljod-switch-home { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; }
.samljod-switch-logo { flex: none; width: 46px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: #1f1b16; font-size: 11px; font-weight: 700; overflow: hidden; }
.samljod-switch-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px 3px; box-sizing: border-box; }
.samljod-switch-home .samljod-switch-logo { width: 32px; background: none; }
.samljod-switch-home .samljod-switch-logo img { padding: 0; border-radius: 7px; }
.samljod-switch a.samljod-switch-home { margin-top: 4px; }
.samljod-admin-home { margin-top: auto; }
.samljod-admin-home img { border-radius: 5px; }
@media (max-width: 899px) {
    .samljod-top a.samljod-top-chip { padding: 0; border: 0; display: block; line-height: 0; }
    .samljod-top a.samljod-top-chip img { width: 44px; height: 32px; }
    .samljod-top a.samljod-top-chip .samljod-top-mark { background: #fff; color: #1f1b16; width: 44px; }
    .samljod-top a.samljod-top-home img { width: 32px; height: 32px; padding: 0; background: none; border-radius: 8px; }
}

/* Nótasavn: the collection buttons wrap onto as many lines as they need, and
   each member can drag them into their own order. */
body.samljod-portal-page .nsm-portal .nsm-lib-chips { flex-wrap: wrap; overflow: visible; row-gap: .35rem; padding-bottom: .5rem; }
body.samljod-portal-page .nsm-portal .nsm-lib-chips button { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
body.samljod-portal-page .nsm-portal .nsm-lib-chips button.is-dragging { opacity: .55; cursor: grabbing; box-shadow: 0 0 0 2px var(--sj-accent, #1c46b0); }
body.samljod-portal-page .nsm-portal .nsm-collection-badges { display: flex; flex-wrap: wrap; gap: 3px; }
/* Umsiting: the ensemble's own collections */
.samljod-collection summary span { margin-left: 8px; font-weight: 400; font-size: 13px; opacity: .65; }
.samljod-collection-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sj-line, #dde2ee); }
.samljod-collection-tools form { display: flex; gap: 8px; align-items: center; }
.samljod-collection-tools input, #sovn .samljod-add-piece input { font: inherit; padding: 8px 10px; border: 1px solid var(--sj-line, #d9dde6); border-radius: 9px; }

/* Boð: answers under answers, and "Dáma". */
.samljod-replies { margin-left: 22px; padding-left: 12px; border-left: 2px solid var(--nsm-line, #e2ddd2); }
.samljod-node.is-reply > .samljod-msg.is-reply, .samljod-node .samljod-msg.is-reply { margin-left: 0; padding-left: 0; border-left: 0; }
/* A long back-and-forth stops stepping in, or it runs out of room on a phone. */
.samljod-node.is-deep > .samljod-replies { margin-left: 0; padding-left: 8px; }
.samljod-msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.samljod-msg-meta form { margin: 0; }
.samljod-msg-meta .samljod-reply { margin-top: 0; flex: 0 1 auto; }
.samljod-msg-meta .samljod-reply[open] { flex: 1 1 100%; order: 5; }
.samljod-msg-meta .samljod-msg-delete button { margin-top: 0; }
.samljod-like { min-height: 28px; padding: 2px 10px; border: 1px solid var(--nsm-line, #e2ddd2); border-radius: 999px; background: none; color: var(--nsm-link, #b45309); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.samljod-like.is-liked { border-color: var(--nsm-green, #b45309); background: var(--nsm-tint, #f1e9de); }
.samljod-like:disabled { cursor: wait; opacity: .55; }
.samljod-msg.is-removed { opacity: .6; }
.samljod-msg-gone { font-style: italic; }
.samljod-msg.is-target { border-radius: 10px; box-shadow: 0 0 0 2px var(--nsm-lime, #fcd34d); }
@media (max-width: 899px) { .samljod-replies { margin-left: 8px; padding-left: 8px; } }

/* The Umsiting sidebar: the way to the member's other orchestras, as in the portal's own sidebar. */
.samljod-admin-rail .samljod-admin-switch-title { margin-top: auto; padding-top: 14px; }
.samljod-admin-rail .samljod-admin-switch-title ~ .samljod-admin-home { margin-top: 6px; }
.samljod-admin-rail a.samljod-admin-switch { padding: 6px 10px 6px 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; line-height: 1.2; margin-bottom: 4px; }
.samljod-admin-rail a.samljod-admin-switch:hover, .samljod-admin-rail a.samljod-admin-switch:focus-visible { background: #fff; color: var(--sj-rail, #1f1b16); }

/* A member's picture in place of the initials, and a picture sent in a message. */
.samljod-msg-avatar.has-photo { padding: 0; overflow: hidden; background: none; }
.samljod-msg-avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.samljod-msg-image { display: block; margin: 6px 0 2px; max-width: 420px; }
.samljod-msg-image img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--nsm-line, #dde2ee); }

/* Programmes that are behind us, each folded until asked for. */
.samljod-past-body { padding: 0 1rem .8rem; font-size: .9rem; line-height: 1.5; }
.samljod-past-body p { margin: 0 0 .6rem; }
.samljod-past-pieces { opacity: .8; }

/* Umsiting and Stroyming on a phone: the same bar along the bottom as in the portal, so there is always a way on. */
@media (max-width: 899px) {
    body.samljod-admin { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .samljod-admin-rail { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--sj-rail, #1f1b16); box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); }
    .samljod-admin-rail > p, .samljod-admin-rail > .samljod-admin-brand, .samljod-admin-rail > .samljod-admin-home, .samljod-admin-rail > .samljod-admin-switch { display: none; }
    .samljod-admin-rail > a { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 5px 2px; border-radius: 10px; color: var(--tt-side-ink, #c3c0b8); font-size: 11px; font-weight: 600; line-height: 1.1; white-space: nowrap; text-decoration: none; }
    .samljod-admin-rail > a.is-active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 3px 0 var(--sj-highlight, #fcd34d); }
    .samljod-admin-rail > a svg { width: 21px; height: 21px; flex: none; }
}

/* Added to the home screen of an iPhone, the page runs under the clock and down to the home indicator: keep the heading clear of the first, as the bottom bar is of the second. */
.samljod-admin-head { padding-top: calc(14px + env(safe-area-inset-top)); }

/* The language switch: on Mín síða and under the sign-in. */
.samljod-language { display: inline-flex; gap: 2px; margin-top: 10px; padding: 2px; border-radius: 999px; background: rgba(127, 127, 127, .18); }
.samljod-language button { border: 0; border-radius: 999px; padding: 5px 12px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .75; }
.samljod-language button.is-active { background: #fff; color: #1f1b16; opacity: 1; }

/* The dialog focuses its close button when it opens; Safari's own ring around a floated button is misshapen. */
.nsm-dialog-close { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; }
.nsm-dialog-close:focus { outline: none; }
@media (hover: hover) { .nsm-dialog-close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; } }
/* A pinned body prints one page only: the reader pins it, and Prenta prints from inside the reader. */
@media print {
    body.samljod-portal-page { position: static !important; top: auto !important; width: auto !important; padding: 0 !important; }
    /* A sheet as tall as the paper spilled a sliver onto a blank page: keep each image inside one A4 page. */
    .nsm-print-layer .sheet { break-inside: avoid; }
    .nsm-print-layer .sheet img { width: auto !important; max-width: 100%; max-height: 279mm; margin: 0 auto; }
    .nsm-print-layer .sheet.is-landscape img { max-height: 192mm; }
}
@page { size: A4; margin: 8mm; }
