/* Skurðabók: vefútgáfa */
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: one-screen field tool. Street map of Hafnarfjörður drawn from OSM vectors on the left, record panel on the right (bottom on phones). Utility colours follow on-site paint marking. */
:root {
  --bg: #e9eceb; --surface: #ffffff; --sunk: #dfe3e2; --ink: #1b2023; --muted: #5b656a; --line: #cfd5d4;
  --paint: #f2c200; --paint-ink: #1b2023; --danger: #b3261e;
  --land: #e3e6e1; --bldg: #cdd2cc; --bldg-line: #b6bcb5; --road: #ffffff; --road-major: #fff4cf; --road-service: #f3f4f2; --foot: #8f978f; --label: #39434a; --halo: #ffffff;
  --u-fjarskipti: #e3700b; --u-rafmagn: #d0223a; --u-rafmagn_ls: #e8513a; --u-rafmagn_hs: #8e1020; --u-ljos: #c99700; --u-vinnurafmagn: #7c3aed; --baer-bar: #1f5a3a; --baer-ink: #ffffff; --u-kalt: #1d6bd2; --u-heitt: #b8306f;
  --u-fraveita: #2b8550; --u-skolp: #8a5a2b;
  --u-b_staur: #3f6fb5; --u-b_grodur: #3c8d2f; --u-b_jol: #c62828; --u-b_skilti: #b88a00; --u-b_bunadur: #7b5ea7; --u-b_leik: #e0661b; --u-b_annad: #6e757c; --u-annad: #6e757c; --u-oflokkad: #9aa1a6;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --panel-w: 380px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141819; --surface: #1d2326; --sunk: #252c2f; --ink: #e5eaea; --muted: #98a3a7; --line: #313a3e;
    --paint: #f5c518; --paint-ink: #141819; --danger: #ff8a80;
    --land: #171c1e; --bldg: #283033; --bldg-line: #323b3f; --road: #3b454a; --road-major: #55605f; --road-service: #2f383c; --foot: #56625f; --label: #c9d1d3; --halo: #171c1e;
    --u-fjarskipti: #ff8f2e; --u-rafmagn: #ff5468; --u-rafmagn_ls: #ff8a6b; --u-rafmagn_hs: #ff4f6e; --u-ljos: #ffd24d; --u-vinnurafmagn: #b794ff; --baer-bar: #24543a; --baer-ink: #ffffff; --u-kalt: #5b9cff; --u-heitt: #e868a6; --u-fraveita: #4cc27c; --u-skolp: #c99566; --u-b_staur: #79a6ec; --u-b_grodur: #6cc35c; --u-b_jol: #ff6b6b; --u-b_skilti: #f2c94c; --u-b_bunadur: #b39ddb; --u-b_leik: #ff9a52; --u-b_annad: #9aa2a8; --u-annad: #9aa2a8; --u-oflokkad: #6f797e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141819; --surface: #1d2326; --sunk: #252c2f; --ink: #e5eaea; --muted: #98a3a7; --line: #313a3e;
  --paint: #f5c518; --paint-ink: #141819; --danger: #ff8a80;
  --land: #171c1e; --bldg: #283033; --bldg-line: #323b3f; --road: #3b454a; --road-major: #55605f; --road-service: #2f383c; --foot: #56625f; --label: #c9d1d3; --halo: #171c1e;
  --u-fjarskipti: #ff8f2e; --u-rafmagn: #ff5468; --u-rafmagn_ls: #ff8a6b; --u-rafmagn_hs: #ff4f6e; --u-ljos: #ffd24d; --u-vinnurafmagn: #b794ff; --baer-bar: #24543a; --baer-ink: #ffffff; --u-kalt: #5b9cff; --u-heitt: #e868a6; --u-fraveita: #4cc27c; --u-skolp: #c99566; --u-b_staur: #79a6ec; --u-b_grodur: #6cc35c; --u-b_jol: #ff6b6b; --u-b_skilti: #f2c94c; --u-b_bunadur: #b39ddb; --u-b_leik: #ff9a52; --u-b_annad: #9aa2a8; --u-annad: #9aa2a8; --u-oflokkad: #6f797e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }

.top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 8px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); background: var(--surface); border-bottom: 3px solid var(--ink); }
.top h1 { font: 700 1.55rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.top .where { color: var(--muted); font-size: .9rem; margin-right: auto; }
.btn { font: 600 .92rem var(--body); border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 4px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn.primary { background: var(--paint); color: var(--paint-ink); border-color: var(--paint); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.ghost { border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, .card:focus-visible, .hit:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--paint); outline-offset: 2px; }

.app { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); min-height: 0; }
#map { min-height: 0; height: 100%; background: var(--land); }
.side { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; background: var(--surface); border-left: 1px solid var(--line); }
.panel { overflow: auto; min-height: 0; padding-right: env(safe-area-inset-right, 0px); }
.pstrip { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--surface); touch-action: none; }
.grip { display: none; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin-right: auto; }
.sz { font: 600 .8rem var(--body); background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 4px; padding: 5px 9px; cursor: pointer; }
.sz[disabled] { opacity: .35; cursor: default; }
.sz:focus-visible { outline: 3px solid var(--paint); outline-offset: 1px; }
/* Panel sizes: normal, wide (photos get room), full (map hidden) */
.app.wide { --panel-w: min(720px, 60vw); }
.app.full { grid-template-columns: 0 minmax(0, 1fr); }
.app.full #map, .app.full .filters { visibility: hidden; }
.app.wide .big, .app.full .big { max-height: 70vh; }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 46%); }
  .app.wide { grid-template-rows: minmax(0, 30%) minmax(0, 70%); }
  .app.full { grid-template-columns: minmax(0, 1fr); grid-template-rows: 0 minmax(0, 1fr); }
  .side { border-left: 0; border-top: 3px solid var(--ink); }
  .panel { padding-left: env(safe-area-inset-left, 0px); }
  .pstrip { justify-content: center; padding: 6px 10px 4px; }
  .grip { display: block; margin: 0 auto 0 0; }
  .app.wide .big, .app.full .big { max-height: 52vh; }
}
.app.placing #map { cursor: crosshair; }

.filters { position: absolute; left: max(56px, calc(env(safe-area-inset-left, 0px) + 56px)); top: 10px; right: calc(var(--panel-w) + 12px); z-index: 900; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
@media (max-width: 760px) { .filters { right: 12px; } }
.chip { pointer-events: auto; font: 500 .82rem var(--body); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 10px 4px 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 1px 3px rgb(0 0 0 / .18); }
.pin { background: none; border: 0; display: grid; place-items: center; }
.pin i { display: block; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .35); cursor: pointer; }
.pin.sel i { border: 3px solid var(--ink); }
.grp { background: none; border: 0; }
.grp b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9px; padding: 4px; box-shadow: 0 1px 4px rgb(0 0 0 / .4); cursor: pointer; }
.grp span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 6px; background: var(--ink); color: var(--surface); font: 700 .95rem/1 var(--display); }
.grp.sel b { outline: 3px solid var(--ink); outline-offset: 2px; }
fieldset.types.big .chip { font-size: 1rem; padding: 10px 14px 10px 11px; }
fieldset.types.big .dot { width: 14px; height: 14px; }
.f > span { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.depths .chip { padding: 8px 12px; font-variant-numeric: tabular-nums; box-shadow: none; }
.depthIn { width: 84px !important; font: 400 1rem var(--body); padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); }
.strip { display: flex; gap: 6px; overflow-x: auto; }
.strip img { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; flex: none; background: var(--sunk); }
.strip span { align-self: center; color: var(--muted); font-size: .85rem; padding: 0 4px; }
.todo { gap: 8px; }
.tbtn { font: 500 .9rem var(--body); text-align: left; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 5px; padding: 8px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; }
.tbtn b { font: 700 1.25rem/1 var(--display); }
.tbtn:hover { background: var(--paint); color: var(--paint-ink); border-color: var(--paint); }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; color: var(--ink); margin-top: 8px; }
label.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 5px; overflow: hidden; }
.seg button { font: 600 .9rem var(--body); background: var(--surface); color: var(--ink); border: 0; padding: 6px 12px; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.seg button:focus-visible { outline: 3px solid var(--paint); outline-offset: -3px; }
.chip.act { padding-left: 11px; box-shadow: none; }
.refwrap { display: grid; gap: 6px; }
.refq .chip { padding: 5px 10px; box-shadow: none; font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.clu { background: none; border: 0; }
.clu b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; padding: 4px; box-shadow: 0 1px 4px rgb(0 0 0 / .4); cursor: pointer; }
.clu span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); color: var(--ink); font: 700 .9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.clu.sel b { outline: 3px solid var(--ink); outline-offset: 1px; }
fieldset.types { border: 0; padding: 0; margin: 0; }
fieldset.types legend { padding: 0; margin-bottom: 6px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
fieldset.types .chip { box-shadow: none; font-size: .88rem; padding: 6px 11px 6px 8px; text-transform: none; letter-spacing: 0; }
.box { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.banner button[disabled] { opacity: .4; cursor: not-allowed; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }

.sec { padding: 14px 16px; display: grid; gap: 12px; }
.sec + .sec { border-top: 1px solid var(--line); }
.h2 { font: 600 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0; overflow-wrap: anywhere; }
.eyebrow { font: 600 .74rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
p { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.card { text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0; overflow: hidden; cursor: pointer; display: grid; grid-template-rows: auto 1fr; }
.thumb { aspect-ratio: 4 / 3; width: 100%; max-width: 100%; object-fit: cover; display: block; background: var(--sunk); }
.card-b { padding: 7px 9px 9px; display: grid; gap: 2px; border-top: 4px solid var(--c); min-width: 0; }
.tag { font: 600 .72rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.card .tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tag .more { color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.place { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.warn { color: var(--danger); font-size: .78rem; font-weight: 600; }
.big { width: 100%; max-width: 100%; display: block; background: #000; max-height: 55vh; object-fit: contain; border-radius: 4px; }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
dl.facts dt { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
label.f { display: grid; gap: 4px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
label.f input, label.f select, label.f textarea { font: 400 1rem var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; width: 100%; min-width: 0; }
label.f textarea { min-height: 70px; resize: vertical; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mono { font-family: var(--mono); font-size: .84rem; }
.msg { font-size: .9rem; padding: 8px 10px; border-radius: 4px; background: var(--sunk); }
.msg.err { color: var(--danger); }
.bar { height: 4px; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--paint); transition: width .2s; }
.search { position: relative; }
.search input { font: 400 1rem var(--body); width: 100%; padding: 9px 11px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--bg); color: var(--ink); }
.hits { display: grid; margin-top: 6px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.hit { text-align: left; font: inherit; background: var(--surface); color: var(--ink); border: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.hit:last-child { border-bottom: 0; }
.hit span { color: var(--muted); font-size: .82rem; }
.hits .hint { font-size: .8rem; color: var(--muted); padding: 6px 10px; background: var(--sunk); }
.years { display: flex; gap: 4px; align-items: flex-end; overflow-x: auto; padding-bottom: 2px; }
.yr { flex: 0 0 auto; width: 34px; height: 54px; display: grid; grid-template-rows: 1fr auto; align-items: end; justify-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font: 500 .72rem var(--mono); }
.yr i { display: block; width: 18px; background: var(--ink); border-radius: 2px 2px 0 0; min-height: 4px; }
.yr:hover i { background: var(--paint); }
.ygroup { display: grid; gap: 8px; scroll-margin-top: 8px; }
.yhead { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.ynum { font: 700 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.banner { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 950; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 6px; font-weight: 600; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }
.banner button { font: 600 .85rem var(--body); background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 4px; padding: 4px 8px; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--ink); }
.loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 800; color: var(--muted); pointer-events: none; }
.leaflet-container { font-family: var(--body); background: var(--land); }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-control-scale-line { background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--ink); border-color: var(--ink); }
.lbl { pointer-events: none; }
.lbl span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 600 11px var(--body); color: var(--label); white-space: nowrap; text-shadow: 0 0 2px var(--halo), 0 0 2px var(--halo), 0 0 3px var(--halo); }
.leaflet-tooltip { font: 500 .85rem var(--body); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.top { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
.panel { padding-bottom: env(safe-area-inset-bottom, 0px); }
.top .where { margin-right: 0; }
.authbox { display: grid; gap: 12px; max-width: 420px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.person { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-of-type { border-bottom: 0; }
.pinfo { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.importbox { border: 2px solid var(--paint); border-radius: 6px; padding: 12px; display: grid; gap: 8px; background: var(--surface); }

img.big { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgb(0 0 0 / .92); display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px); object-fit: contain; }
/* Phone browsers: the visible height without the address bar */
@supports (height: 100dvh) { .lightbox img { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px); } }
.lbclose { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px); font: 600 .95rem var(--body); color: #fff; background: rgb(255 255 255 / .15); border: 1px solid rgb(255 255 255 / .4); border-radius: 4px; padding: 8px 12px; cursor: pointer; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 2500; background: var(--ink); color: var(--surface); font-weight: 600; padding: 10px 16px; border-radius: 6px; box-shadow: 0 2px 10px rgb(0 0 0 / .3); max-width: calc(100% - 32px); }

.photo { position: relative; }
.pnav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .55); color: #fff; font: 600 1.8rem/1 var(--body); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.pnav.prev { left: 8px; } .pnav.next { right: 8px; }
.pnav[disabled] { opacity: 0; pointer-events: none; }
.pnav:focus-visible { outline: 3px solid var(--paint); }
.pcount { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgb(0 0 0 / .6); color: #fff; font: 600 .82rem var(--mono); padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.lbnav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .15); color: #fff; font: 600 2rem/1 var(--body); cursor: pointer; padding-bottom: 4px; }
.lbnav.prev { left: calc(env(safe-area-inset-left, 0px) + 12px); } .lbnav.next { right: calc(env(safe-area-inset-right, 0px) + 12px); }
.lbcount { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); left: 50%; transform: translateX(-50%); color: #fff; font: 600 .9rem var(--mono); }

.lk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px 0 2px; vertical-align: -1px; }
.leaflet-control-layers { font: 500 .85rem var(--body); background: var(--surface); color: var(--ink); }
.leaflet-control-layers-separator { border-top-color: var(--line); }

/* Filter chips: folded behind one small "Sía" button; it opens a card with the types */
.fdots { display: inline-flex; gap: 2px; margin-right: 2px; }
.fdots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.fclear { font-weight: 600; }
.filters { gap: 5px; right: auto; max-width: min(460px, calc(100% - var(--panel-w) - 70px)); }
.ftoggle { display: inline-flex; font-weight: 600; }
.filters .ftype, .filters .fclear { display: none; }
.filters .ftype.on { display: inline-flex; }
.filters.open .ftype, .filters.open .fclear { display: inline-flex; }
.filters.open { background: color-mix(in srgb, var(--surface) 94%, transparent); padding: 8px; border-radius: 10px; box-shadow: 0 4px 16px rgb(0 0 0 / .22); }
.filters.open .chip { box-shadow: none; }
.filters .chip { font-size: .8rem; padding: 4px 9px 4px 7px; }
@media (max-width: 760px) { .filters { right: auto; max-width: calc(100% - 70px); } }

/* Electricity subgroup in the type picker */
.subgroup { display: grid; gap: 6px; margin-top: 8px; padding: 8px; border: 1px dashed var(--line); border-radius: 6px; }
.sublabel { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--u-rafmagn); }
/* Bæjarverk is unmistakable: the top bar changes colour */
body.mode-baer .top { background: var(--baer-bar); color: var(--baer-ink); border-bottom-color: var(--baer-bar); }
body.mode-baer .top h1, body.mode-baer .top .where { color: var(--baer-ink); }
body.mode-baer .top .seg { border-color: var(--baer-ink); }
body.mode-baer .top .seg button { background: transparent; color: var(--baer-ink); }
body.mode-baer .top .seg button + button { border-left-color: var(--baer-ink); }
body.mode-baer .top .seg button[aria-pressed="true"] { background: var(--baer-ink); color: var(--baer-bar); }
body.mode-baer .top .btn.ghost, body.mode-baer .top #addBtn { background: transparent; color: var(--baer-ink); border-color: var(--baer-ink); }
/* Record type switch */
.kindsw { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg.small button { padding: 4px 10px; font-size: .82rem; }
/* Dialog */
.modal { position: fixed; inset: 0; z-index: 4000; background: rgb(0 0 0 / .5); display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 20px; max-width: 420px; width: 100%; display: grid; gap: 12px; box-shadow: 0 10px 40px rgb(0 0 0 / .35); }
.modal-box ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.modal-box p { margin: 0; }

.modal { overflow-y: auto; align-items: start; }
.modal-box { margin-block: max(16px, env(safe-area-inset-top, 0px)) 16px; }
@media (min-height: 700px) { .modal { align-items: center; } }

/* Search floating over the map */
.mapsearch { position: absolute; z-index: 950; top: 10px; left: max(10px, env(safe-area-inset-left, 0px)); right: calc(var(--panel-w) + 58px); max-width: 460px; }
.mapsearch input { width: 100%; font: 400 1rem var(--body); padding: 10px 12px 10px 36px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--surface) no-repeat 11px 50% / 16px 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b656a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20 20l-4.6-4.6'/%3E%3C/svg%3E"); color: var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.mapsearch input:focus-visible { outline: 3px solid var(--paint); outline-offset: 1px; }
.mapsearch .hits { margin-top: 4px; max-height: 50vh; overflow-y: auto; box-shadow: 0 4px 14px rgb(0 0 0 / .2); background: var(--surface); }
.filters { top: 60px; left: max(10px, env(safe-area-inset-left, 0px)); }
.app.full .mapsearch { visibility: hidden; }
@media (max-width: 760px) {
  .mapsearch { right: 56px; max-width: none; top: 8px; }
  .mapsearch input { padding-block: 8px; }
  .filters { top: 54px; right: 12px; }
}
#mgrs { gap: 6px; }
#mgrs .chip { box-shadow: none; padding: 4px 10px; }
#mgrs select { font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }

/* Choosing which photos and verk to merge */
.picks { display: grid; gap: 6px; margin: 10px 0 12px; }
.pick { display: grid; grid-template-columns: auto 56px 1fr; gap: 10px; align-items: center; padding: 6px 10px 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick input { width: 20px; height: 20px; accent-color: var(--ink); }
.pick img { width: 56px; height: 42px; object-fit: cover; border-radius: 3px; background: var(--line); }
.pick > span { display: grid; gap: 1px; min-width: 0; }
.pick b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Link from a photo to the verk it belongs to */
.verkline { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.verkline .eyebrow { grid-column: 1; margin: 0; }
.verkline > span:nth-child(2) { grid-column: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verkline .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.5rem; color: var(--muted); }
.verkline:hover { border-color: var(--ink); }

/* Photos taken one by one with the camera, before they are saved */
.camgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.camshot { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--sunk); }
.camshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camdel { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .6); color: #fff; font-size: .8rem; cursor: pointer; }
.camnogps { position: absolute; left: 0; right: 0; bottom: 0; font: 600 .68rem var(--body); background: var(--danger); color: #fff; padding: 2px 5px; }

/* ---------- Verkefni ---------- */
.tmark { line-height: 0; }
.tmark b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; background: var(--ink); color: var(--paint); font: 700 .95rem var(--display); border: 2px solid var(--surface); box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.tmark.hot b { background: var(--paint); color: var(--paint-ink); border-color: var(--ink); }
.tmark.sel b { outline: 3px solid var(--paint); outline-offset: 1px; }
.trows { display: grid; gap: 6px; }
.trow { display: grid; gap: 2px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.trow:hover { border-color: var(--ink); }
.trow b { font-weight: 600; }
.tst { justify-self: start; display: inline-block; font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 3px; background: var(--sunk); color: var(--ink); }
.tst.s-ny, .tst.s-tilbaka { background: var(--paint); color: var(--paint-ink); }
.tst.s-skilad { background: var(--ink); color: var(--surface); }
.tst.s-lokid { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.tdesc { white-space: pre-wrap; margin: 8px 0; }
.tfiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tthumb { padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: zoom-in; background: var(--sunk); }
.tthumb img { display: block; width: 96px; height: 72px; object-fit: cover; }
.tpdf { display: grid; place-items: center; width: 96px; height: 72px; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; color: var(--ink); background: var(--sunk); text-decoration: none; }
.tneeds { gap: 6px; flex-wrap: wrap; }
.tneed { font: 600 .82rem var(--body); padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--surface); }
.tlog { margin: 6px 0 12px; padding-left: 18px; display: grid; gap: 6px; }
.hand { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hand .f > span { display: block; font-size: .85rem; margin-bottom: 6px; }
.hand .chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tmsgs { font: 600 .72rem var(--body); color: var(--danger); align-self: center; }
.tmsglist { display: grid; gap: 8px; margin: 8px 0 10px; }
.tmsg { max-width: 85%; justify-self: start; background: var(--sunk); border-radius: 10px 10px 10px 2px; padding: 7px 11px; }
.tmsg.me { justify-self: end; background: var(--ink); color: var(--surface); border-radius: 10px 10px 2px 10px; }
.tmsg .tmeta { font-size: .72rem; opacity: .75; margin-bottom: 2px; }
.tmsg .tbody { white-space: pre-wrap; overflow-wrap: anywhere; }
.tmsgform { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 6px; }
.tmsgform textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); resize: vertical; min-height: 42px; }

/* ---------- Fyrirtæki og spjall ---------- */
.orgfixed { margin: 4px 0 0; }
.orglist { display: grid; gap: 6px; margin: 8px 0 10px; }
.orgrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.orgrow .row { grid-column: 1 / -1; gap: 6px; }
.orgadd input { flex: 1; min-width: 0; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.orgsel { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); max-width: 100%; }
.worktabs { margin-top: 10px; }
.chatlist { display: grid; gap: 8px; }
.chatday { justify-self: center; font: 600 .72rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 2px; }
.chatlist .tfiles { margin: 6px 0 2px; }
.chatplace { margin-top: 6px; box-shadow: none; }
.tmsg .linkbtn { color: inherit; font-size: inherit; }
.chatform { position: sticky; bottom: 0; background: var(--surface); display: grid; gap: 8px; border-top: 1px solid var(--line); z-index: 2; }
.chatform textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); resize: vertical; min-height: 44px; }
.chatfile { cursor: pointer; }
.chatatt { gap: 6px; flex-wrap: wrap; }
.chatatt:empty { display: none; }
.chatatt .linkbtn { color: inherit; text-decoration: none; margin-left: 4px; }
.pinfo .linkbtn { justify-self: start; text-align: left; }
.seg.worktabs { display: inline-flex; width: auto; justify-self: start; align-self: start; } .seg.worktabs button { flex: 0 0 auto; }
.tmsgform2 { display: grid; gap: 8px; margin-top: 6px; }
.tmsgform2 textarea { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); resize: vertical; min-height: 44px; }
.tmsg .tfiles { margin: 6px 0 0; }
.tmore { margin-top: 14px; }
.tmore summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.tmore[open] summary { margin-bottom: 8px; }
.danger-box { border-color: var(--danger); }
.inbox { display: grid; gap: 6px; }
.ibrow { display: grid; gap: 2px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.ibrow:hover { border-color: var(--ink); }
.ibrow.unread { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--paint); }
.ibtop { display: flex; justify-content: space-between; gap: 8px; }
.ibtop b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibmsg { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ibmsg > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibrow.unread .ibmsg > span:first-child { font-weight: 600; }
.ibn { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--paint); color: var(--paint-ink); font: 700 .75rem/20px var(--body); text-align: center; }
.chip.hotchip { background: var(--paint); color: var(--paint-ink); border-color: var(--paint); }
#toChat { box-shadow: none; margin: 4px 0 8px; }



/* ---------- Header ---------- */
.top { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-bottom: 8px; }
.top .brand { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.top .where { margin: 0; }
.top .acts { display: flex; gap: 8px; }
.top .acts .btn { height: 36px; }
.top .acts .ico, .top .nb .ico { width: 18px; height: 18px; flex: 0 0 auto; }
.top .navbtns { display: flex; gap: 2px; margin-left: auto; }
.nb { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; font: 600 .9rem var(--body); color: var(--ink); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.nb:hover { background: var(--sunk); }
.nb:focus-visible { outline: 3px solid var(--paint); outline-offset: 1px; }
.nb .cnt:empty { display: none; }
.nb .cnt { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--paint); color: var(--paint-ink); font: 700 .72rem/19px var(--body); text-align: center; font-variant-numeric: tabular-nums; }
.nb .ico { display: none; }
body.mode-baer .nb { color: var(--baer-ink); }
body.mode-baer .nb:hover { background: rgb(255 255 255 / .12); }
/* Narrower screens: the menu shows icons, with the count on a small bubble */
@media (max-width: 1020px) {
  .top .where { display: none; }
  .nb { width: 40px; padding: 0; justify-content: center; }
  .nb .ico { display: block; width: 22px; height: 22px; }
  .nb .lbl { display: none; }
  .nb.lblon { width: auto; padding: 0 10px; }
  .nb.lblon .lbl { display: inline; }
  .nb.lblon .ico { display: none; }
  .nb .cnt { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; font-size: .68rem; line-height: 17px; padding: 0 4px; }
}
/* Phone: name and icons on top; register switch and camera below */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 8px 6px; padding-bottom: 8px; }
  .top .brand { order: 1; }
  .top h1 { font-size: 1.3rem; }
  .top .navbtns { order: 2; }
  .top .seg { order: 3; flex: 1 1 auto; }
  .top .seg button { flex: 1; padding: 0 8px; height: 34px; font-size: .88rem; }
  .top .acts { order: 4; }
  .top .acts .btn { height: 34px; padding: 0 10px; font-size: .88rem; }
  /* One line: name, register switch, the add button. The camera floats on the map. */
  .top { flex-wrap: nowrap; padding-bottom: 6px; gap: 8px; min-width: 0; max-width: 100vw; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .top .brand { flex: 0 1 auto; min-width: 0; }
  .top h1 { font-size: 1.15rem; white-space: nowrap; }
  .top .seg { min-width: 0; flex: 1 1 0; }
  .top .seg button { min-width: 0; overflow: hidden; text-overflow: ellipsis; height: 32px; }
  .top .acts { flex: 0 0 auto; }
  .top h1 { overflow: hidden; text-overflow: ellipsis; }
  .top #addBtn .lbl { display: none; }
  .nb { width: 40px; padding: 0; justify-content: center; }
  .nb .ico { display: block; width: 22px; height: 22px; }
  .nb .lbl { display: none; }
  .nb.lblon { width: auto; padding: 0 10px; }
  .nb.lblon .lbl { display: inline; }
  .nb.lblon .ico { display: none; }
  .nb .cnt { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; font-size: .68rem; line-height: 17px; padding: 0 4px; }
}
.top .btn, .top .nb, .top .seg button { white-space: nowrap; }
.yearjump { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 6px; font-size: .85rem; }
.yearjump .linkbtn { color: var(--muted); }
/* The selection highlight never takes taps; they go to the streets and photos underneath */
.leaflet-sel-pane canvas, .leaflet-sel-pane svg { pointer-events: none; }

/* ---------- Dragging the panel ---------- */
.pstrip { display: none; }
.vgrip { position: absolute; left: -7px; top: 0; bottom: 0; width: 14px; z-index: 960; cursor: col-resize; touch-action: none; display: grid; place-items: center; }
.vgrip span { width: 6px; height: 56px; border-radius: 3px; background: var(--muted, #8a8a8e); opacity: .55; box-shadow: 0 0 0 2px var(--surface); transition: background .15s, opacity .15s; }
.vgrip:hover span, .vgrip:focus-visible span { opacity: 1; }
.vgrip:hover span, .vgrip:focus-visible span, .app.dragging .vgrip span { background: var(--ink); }
.vgrip:focus-visible { outline: none; }
.app.dragging { user-select: none; }
.app.dragging #map, .app.dragging .filters, .app.dragging .mapsearch { visibility: visible; }
.side .panel { grid-row: 2; }
.side { grid-template-rows: 0 minmax(0, 1fr); }
@media (max-width: 760px) {
  .side { grid-template-rows: auto minmax(0, 1fr); }
  .vgrip { display: none; }
  .pstrip { display: flex; justify-content: center; padding: 8px 10px 6px; cursor: grab; touch-action: none; border-bottom: 1px solid var(--line); }
  .pstrip:focus-visible { outline: 3px solid var(--paint); outline-offset: -3px; }
  .grip { display: block; margin: 0; width: 48px; height: 5px; background: var(--muted); opacity: .5; }
  .app.dragging .pstrip { cursor: grabbing; }
}
.h2link { font: inherit; text-transform: inherit; letter-spacing: inherit; text-decoration: none; }
.h2link:hover { text-decoration: underline; }
.inbox { grid-template-columns: minmax(0, 1fr); }
.ibrow { min-width: 0; width: 100%; }
.ibrow { grid-template-columns: minmax(0, 1fr); } .ibrow > span { min-width: 0; }
/* The full-size photo always fits the screen: a fixed height on the frame and on the image,
   so Safari cannot let a tall photo push past the bottom edge. */
.lightbox { height: 100vh; }
@supports (height: 100dvh) { .lightbox { height: 100dvh; } }
.lightbox img { width: auto; height: auto; min-height: 0; max-width: calc(100vw - 24px); }

/* ---------- Verkefni með stjórnendum ---------- */
.tst.s-uthlutad { background: var(--sunk); }
.tst.s-hafnad { background: var(--danger); color: #fff; }
.tst.s-review { background: var(--paint); color: var(--paint-ink); }
.reclist { max-height: 300px; overflow-y: auto; margin: 6px 0; }
.trow.picked { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--paint); }
#recKind { margin: 4px 0 8px; }
.tpick { position: relative; display: inline-block; }
.tpick input { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; z-index: 1; accent-color: var(--paint); }
.teamopen { margin-top: 10px; flex-basis: 100%; }
.hand .picks { margin: 6px 0; }
.hand .pick { grid-template-columns: auto 0 1fr; }
.confirmbox { border-color: var(--paint); margin: 8px 0; }
.bulk { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.top a.brand { color: inherit; text-decoration: none; cursor: pointer; }

/* Panel folded away: only the handle shows, the map gets the whole screen */
.app.min { --panel-w: 14px; }
.app.min .panel { display: none; }
.app.min .side { border-left-color: var(--line); }
.app.min .vgrip { left: 0; width: 14px; background: var(--surface); }
.app.min .vgrip span { background: var(--ink); }
@media (max-width: 760px) {
  .app.min { grid-template-rows: minmax(0, 1fr) auto; }
}
.prefs { display: grid; gap: 0; margin: 6px 0 10px; }

/* Export dialog */
.exportlist { display: grid; gap: 8px; margin: 10px 0 4px; }
.exportlist .btn { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 10px 12px; height: auto; }
.exportlist .btn span { font-weight: 400; font-size: .85rem; color: var(--muted); }

/* Connection label on the map */
.netstate { position: absolute; z-index: 960; left: 50%; transform: translateX(-50%); bottom: 30px; max-width: calc(100% - 32px); padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .85rem var(--body); box-shadow: 0 2px 10px rgb(0 0 0 / .25); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.netstate.off { background: #b3261e; }
.netstate[hidden] { display: none; }
.app.full .netstate { visibility: hidden; }
.card { position: relative; }
.pend { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: #b3261e; color: #fff; font: 600 .72rem var(--body); letter-spacing: .02em; }
.pend.inline { position: static; display: inline-block; margin-right: 6px; }

/* The message box stays at the foot of the panel. On iPhone the panel keeps room for the home
   bar below it, and messages scrolled into that strip showed beneath the box; the box now
   reaches into that strip and covers it. */
.chatform::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(env(safe-area-inset-bottom, 0px) + 2px); background: var(--surface); }

/* Equipment: square pins and a square dot in the filter */
.pin.sq i { border-radius: 3px; }
.chip.fsq .dot { border-radius: 2px; }
.card .equip { font: 700 .82rem var(--body); color: var(--ink); }
/* Survey import */
.svcode { grid-template-columns: 1fr; }
.svcode span { font-size: .9rem; }
/* Files dragged over the page */
body.dropping .app { outline: 4px dashed var(--ink); outline-offset: -8px; }
.eqrow + .eqrow { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
/* Records without a photo (equipment registered by its spot) */
.thumb.nophoto { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 4 / 3; background: var(--bg); color: var(--muted); font-size: .8rem; }
.thumb.nophoto span { font-size: 1.6rem; color: var(--ink); line-height: 1; }
.photo.nophoto { display: grid; place-items: center; gap: 10px; padding: 28px 12px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }
img[src=""] { display: none; }
/* Shortcuts at the top of the home panel */
.homeacts { padding-block: 10px; border-bottom: 1px solid var(--line); }
.homeacts .row { gap: 6px; flex-wrap: wrap; }
/* Photos of one piece of equipment */
.eqgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.eqph { display: grid; gap: 3px; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); font-size: .75rem; text-align: left; cursor: zoom-in; }
.eqph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--sunk); }

/* Day book */
.worktop { padding-bottom: 8px; }
.wtabs { gap: 6px; flex-wrap: wrap; }
.wtabs .chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.wrow { border-top: 1px solid var(--line); }
.whrs { gap: 6px; align-items: center; flex-wrap: nowrap; }
.whrs input { width: 90px; }
.wsub { display: grid; gap: 6px; }
.wline { gap: 6px; flex-wrap: nowrap; align-items: center; }
.wline select { flex: 1 1 auto; min-width: 0; }
.wline input { width: 80px; flex: 0 0 auto; }
.wline .unit { min-width: 2em; color: var(--muted); font-size: .85rem; }
.wst { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 .75rem var(--body); background: var(--sunk); color: var(--ink); }
.wst.s-send { background: #f2c200; color: #1b2023; }
.wst.s-samthykkt { background: #2e7d32; color: #fff; }
.wst.s-tilbaka { background: #b3261e; color: #fff; }
.wst.s-ekki { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.wlist { display: grid; gap: 6px; }
.wday { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; cursor: pointer; }
.wtable { width: 100%; border-collapse: collapse; }
.wtable td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.wtable td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wjob { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.witem { padding: 6px 0; border-bottom: 1px solid var(--line); }
.witemadd { gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.witemadd input { flex: 1 1 120px; min-width: 0; }
.btn.small { padding: 4px 10px; font-size: .85rem; height: auto; }
.f .whrs input, .wline input { width: 90px; flex: 0 0 90px; }
.wline select { width: auto; }
.wline input.wunit { width: 78px; flex: 0 0 78px; }
.wper { align-items: center; }
.wper .h2 { font-size: 1.15rem; text-align: center; flex: 1; }
.wcrew span { color: var(--muted); }
.wcrew .wcrewsum { min-width: 5em; }
.wcrew .wcrewsum { text-transform: none; letter-spacing: normal; font-weight: 400; font-size: .9rem; }

/* iPhone zooms into any field whose text is smaller than 16px and stays zoomed after.
   Fields on touch screens are therefore never smaller than that. */
@media (pointer: coarse) {
  input, select, textarea { font-size: max(16px, 1em); }
}
/* Room under the last fields while the keyboard is up, so they can be scrolled above it. */
.kbopen #panel { padding-bottom: calc(var(--kb, 0px) + 24px); }
/* Day book: a small reminder button beside each person who has not handed in the day. */
.wpers { display: flex; gap: 6px; align-items: stretch; }
.wpers .wday { flex: 1 1 auto; min-width: 0; }
.wremind { flex: 0 0 auto; white-space: nowrap; }
.wremind.done { color: var(--muted); }
.wauto label.f { max-width: 160px; }
/* On/off switch: a checkbox drawn as a sliding toggle, the text on the left. */
label.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 6px 0; }
label.switch input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: color-mix(in srgb, var(--muted) 35%, transparent); position: relative; cursor: pointer; transition: background .18s; }
label.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
label.switch input:checked { background: var(--paint); }
label.switch input:checked::after { transform: translateX(18px); }
label.switch input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Picking which of several photos show the equipment. */
.eqpick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.eqp { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; position: relative; cursor: pointer; opacity: .45; }
.eqp img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.eqp[aria-pressed="true"] { border-color: var(--paint); opacity: 1; }
.eqp[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 2px; right: 4px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000; }
/* The report window can hold a list of photos to pick from. */
.modal-box { max-height: calc(100dvh - 32px); overflow-y: auto; }
.exhits { display: grid; gap: 2px; margin-top: 4px; }
.exhits .hit { text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
/* Closing the layer list by hand. */
.lyrhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px -4px 6px 0; }
.lyrhead span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lyrclose { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.lyrclose:hover, .lyrclose:active { background: var(--line); }

/* ---------- Day book, grouped-list look ----------
   Each part of a day is a rounded card of rows on a soft background: a label on the left, its
   value on the right, big round buttons for hours and a +/− for labourers. */
.worktop .wtabs { flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding: 2px; border-radius: 10px; background: var(--sunk); scrollbar-width: none; }
.worktop .wtabs::-webkit-scrollbar { display: none; }
.worktop .wtabs .chip { flex: 1 0 auto; border: 0; border-radius: 8px; padding: 7px 12px; background: transparent; font: 500 .85rem -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--body); white-space: nowrap; box-shadow: none; }
.worktop .wtabs .chip.on { background: var(--surface); color: var(--ink); border: 0; box-shadow: 0 1px 3px rgb(0 0 0 / .14); font-weight: 600; }
.wios { --g-bg: var(--sunk); --g-tint: #0a6cdb; background: var(--g-bg); padding: 4px 14px 24px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", var(--body); font-size: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wios { --g-tint: #4da3ff; } }
:root[data-theme="dark"] .wios { --g-tint: #4da3ff; }
.wios .wpad { margin: 8px 6px 0; }
.wnav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 4px -6px 0; }
.wnavbtn { width: 44px; height: 44px; border: 0; background: none; color: var(--g-tint); display: grid; place-items: center; cursor: pointer; }
.wnavbtn:disabled { color: var(--line); cursor: default; }
.wnavmid { text-align: center; }
.wnavwho { font-size: 13px; color: var(--muted); }
.wnavday { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.wstatus { text-align: center; margin-top: 4px; font-size: 13px; }
.wios .wcover { background: var(--surface); border-radius: 12px; padding: 10px 14px; margin-top: 12px; display: grid; gap: 2px; }
.ghead { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 14px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.wrow:first-of-type .ghead:first-child { padding-top: 16px; }
.glink, .gtext { border: 0; background: none; color: var(--g-tint); font: inherit; font-size: 15px; text-transform: none; cursor: pointer; padding: 4px 0; }
.glist { background: var(--surface); border-radius: 12px; overflow: hidden; }
.gcell { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; box-sizing: border-box; position: relative; width: 100%; }
.gcell + .gcell::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: .5px solid var(--line); }
.gstack { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.grow { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.glabel { flex: 1 0 auto; font-size: 16px; color: var(--ink); white-space: nowrap; }
.gstack > .glabel { flex: none; }
.gval { display: flex; align-items: center; gap: 6px; }
.gunit { color: var(--muted); }
.wios .glist input, .wios .glist select, .wios .glist textarea { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 4px 0; box-shadow: none; outline: none; border-radius: 0; }
.wios .glist input:focus-visible, .wios .glist select:focus-visible, .wios .glist textarea:focus-visible { outline: 2px solid var(--g-tint); outline-offset: 2px; border-radius: 4px; }
.gcell > select { flex: 1 1 auto; min-width: 0; text-align: right; text-align-last: right; appearance: none; -webkit-appearance: none; color: var(--muted) !important; }
.gcell > input { flex: 1 1 auto; min-width: 0; text-align: right; }
.gcell > textarea { width: 100%; resize: vertical; min-height: 44px; }
.gchev { color: var(--line); flex: 0 0 auto; }
.gval input { width: 64px; text-align: right; }
.gnum { width: 44px !important; font-weight: 600; }
.ghrs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.ghrs::-webkit-scrollbar { display: none; }
.ghrs .ghr { scroll-snap-align: start; }
.ghr { height: 40px; border-radius: 20px; border: 0; background: var(--g-bg); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.ghr.on { background: var(--g-tint); color: #fff; font-weight: 600; }
.gstep { display: inline-flex; height: 34px; border-radius: 9px; background: var(--g-bg); overflow: hidden; }
.gstep button { width: 46px; border: 0; background: none; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.gstep button + button { border-left: .5px solid var(--line); }
.gnote { font-size: 13px; color: var(--muted); min-height: 0; }
.gnote:empty { display: none; }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 0; background: var(--g-bg); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.gchip.on { background: var(--g-tint); color: #fff; }
.gline > select { text-align: left; text-align-last: left; color: var(--ink) !important; }
.gline > input { flex: 0 0 64px; width: 64px; }
.gline > input.wunit { flex: 0 0 64px; color: var(--muted); text-align: left; }
.gdel { flex: 0 0 auto; width: 32px; height: 32px; border: 0; background: none; color: #e5484d; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gadd { border: 0; background: none; color: var(--g-tint); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.gadd svg, .gsoft svg { color: var(--g-tint); flex: 0 0 auto; }
.gempty { color: var(--muted); font-size: 14px; }
.wfoot { display: grid; gap: 10px; margin-top: 22px; }
.gtotal { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.gpair { display: flex; gap: 10px; }
.gpair > * { flex: 1 1 0; }
.gsoft { min-height: 46px; border-radius: 12px; border: 0; background: var(--surface); color: var(--g-tint); font: inherit; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.gbig { min-height: 52px; border-radius: 14px; border: 0; background: var(--g-tint); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.gtext { justify-self: center; font-size: 16px; }
.wfoot .tmore { margin-top: 6px; }
/* Sending a summary by e-mail: the address on its own line, past addresses as chips under it. */
.gmailbox { display: grid; gap: 10px; }
.gmailbox .ghead { padding-top: 10px; }
.gmailbox .gstack > input { text-align: left; width: 100%; font-size: 17px; }
.gmailbox .gchips:empty { display: none; }
.gmailbox .gchip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmuted { color: var(--muted); font-size: 14px; }
.gfootnote { margin: 0 14px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.gsent { color: var(--ink); }
.gsent svg { color: #34c759; flex: 0 0 auto; }
/* "Bæta við vél" is a list in disguise: the whole row opens the choices at once. */
.gaddpick { position: relative; cursor: pointer; }
.wios .glist .gaddpick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; padding: 0; }
.gaddpick:focus-within { outline: 2px solid var(--g-tint); outline-offset: -2px; border-radius: 12px; }
/* A machine or material open for changes. */
.gediting { background: color-mix(in srgb, var(--g-tint) 6%, var(--surface)); }
.gediting .gformbtns { justify-content: flex-start; }
.gspacer { flex: 1 1 auto; }
.gred { color: #e5484d !important; }
/* Under a job in the summary: the day books its hours came from. */
.gjoblogs > summary { list-style: none; cursor: pointer; }
.gjoblogs > summary::-webkit-details-marker { display: none; }
.gjoblogs > summary::after { content: " ›"; }
.gjoblogs[open] > summary::after { content: " ⌄"; }
.gjoblog { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; border-top: .5px solid var(--line); }
.gjoblog .gname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
/* ---------- Skilaboð, in the grouped style ----------
   Inbox: round picture, name and time, last message under it. A conversation: bubbles,
   your own in the tint on the right, a slim bar at the bottom for writing. */
.wchat { min-height: 100%; box-sizing: border-box; }
.cround { width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--surface); color: var(--g-tint); display: grid; place-items: center; cursor: pointer; }
.cinbox { margin-top: 14px; }
.crow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; position: relative; min-height: 72px; box-sizing: border-box; }
.crow + .crow::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; border-top: .5px solid var(--line); }
.crow:active { background: var(--g-bg); }
.cav { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 22px; color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.cav svg { width: 22px; height: 22px; }
.cmain { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.cmain > * { min-width: 0; }
.ctop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ctop b, .cmain > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.cwhen { flex: 0 0 auto; font-size: 14px; color: var(--muted); }
.csub { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmsg { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.cmsg > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.unread .cmsg > span:first-child { color: var(--ink); font-weight: 600; }
.crow.unread .cwhen { color: var(--g-tint); font-weight: 600; }
.cn { background: var(--g-tint); color: #fff; }
.cempty { text-align: center; color: var(--muted); padding: 48px 20px; display: grid; justify-items: center; gap: 4px; }
.cempty svg { width: 34px; height: 34px; color: var(--line); margin-bottom: 6px; }
.cempty p { margin: 0; }
/* header of a conversation and of "Ný skilaboð" */
.chead { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin: -4px -14px 0; padding: 8px 8px 8px; background: color-mix(in srgb, var(--g-bg) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: .5px solid var(--line); }
.cback { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--g-tint); font: inherit; font-size: 16px; min-height: 40px; padding: 0 6px; cursor: pointer; }
.cheadmid { display: grid; justify-items: center; min-width: 0; max-width: 62vw; text-align: center; }
.cheadmid b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cheadmid .h2link { color: var(--ink); text-transform: none; letter-spacing: 0; }
.cheadmid .csub { max-width: 100%; }
.csearch { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0 12px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--muted); }
.csearch input { flex: 1 1 auto; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; min-width: 0; padding: 0; box-shadow: none; }
.cpick { min-height: 60px; }
/* bubbles */
.wconv { display: flex; flex-direction: column; padding-bottom: 0; }
.cbubbles { flex: 1 1 auto; display: grid; gap: 2px; padding: 8px 0 12px; align-content: start; }
.cbubbles .chatday { font: 600 12px/1 -apple-system, BlinkMacSystemFont, sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted); margin: 14px 0 6px; }
.cname { justify-self: start; margin: 8px 0 2px 12px; font-size: 12px; color: var(--muted); text-decoration: none; }
.wchat .tmsg.cb { max-width: 78%; justify-self: start; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 8px 13px; font-size: 16px; line-height: 1.35; cursor: default; }
.wchat .tmsg.cb.me { justify-self: end; background: var(--g-tint); color: #fff; cursor: pointer; }
.wchat .tmsg.cb.cont { margin-top: 0; }
.wchat .tmsg.cb:not(.me).last { border-bottom-left-radius: 6px; }
.wchat .tmsg.cb.me.last { border-bottom-right-radius: 6px; }
.wchat .tmsg.cb .tfiles { margin: 4px 0 2px; }
.wchat .tmsg.cb .tthumb { border: 0; border-radius: 12px; }
.wchat .tmsg.cb .tthumb img { width: 180px; height: 135px; }
.wchat .tmsg.cb .tpdf { border: 0; border-radius: 12px; }
.cplace { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 10px 6px 8px; border: 0; border-radius: 12px; background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.cplace svg { width: 18px; height: 18px; }
.ctime { justify-self: start; margin: 2px 12px 8px; font-size: 11px; color: var(--muted); }
.ctime.me { justify-self: end; }
.cdel { color: #e5484d; font-size: 12px; margin-left: 6px; text-decoration: none; }
/* writing */
.wchat .ccomp { position: sticky; bottom: 0; margin: 0 -14px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--g-bg) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: .5px solid var(--line); display: grid; gap: 6px; }
.wchat .ccomp::after { display: none; }
.cbar { display: flex; align-items: flex-end; gap: 6px; }
.cicon { flex: 0 0 36px; width: 36px; height: 36px; border: 0; background: none; color: var(--g-tint); display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 18px; }
.cicon.busy { opacity: .4; }
.wchat .ccomp textarea { flex: 1 1 auto; min-width: 0; min-height: 36px; max-height: 140px; resize: none; border: .5px solid var(--line); border-radius: 18px; padding: 7px 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.35; box-sizing: border-box; }
.csend { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 18px; background: var(--g-tint); color: #fff; display: grid; place-items: center; cursor: pointer; }
.csend:disabled, .csend.busy { opacity: .5; }
.catt { background: var(--surface); color: var(--ink); border: .5px solid var(--line); font-weight: 500; }
/* Writing on a phone: the bar floats on the keyboard, the tabs hide, and the messages get
   room underneath so the newest stays in sight. No yellow ring, just the tint. */
.wchat .ccomp.cfloat { position: fixed; left: 0; right: 0; bottom: auto; margin: 0; z-index: 1500; padding-bottom: 8px; }
.chattyping .top .navbtns { display: none !important; }
.chattyping body { padding-bottom: 0 !important; }
.chattyping #panel { padding-bottom: var(--cpad, 0px) !important; }
.wchat .ccomp textarea:focus, .wchat .ccomp textarea:focus-visible { outline: none; border-color: var(--g-tint); box-shadow: 0 0 0 1px var(--g-tint); }
/* On a phone the tab bar already makes room for the home indicator, so the writing bar sits
   right on top of it with no gap. */
@media (max-width: 760px) {
  .panel:has(.wconv) { padding-bottom: 0; }
  .wchat .ccomp { padding-bottom: 8px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wchat .tmsg.cb.me { background: #0a84ff; } }
:root[data-theme="dark"] .wchat .tmsg.cb.me { background: #0a84ff; }
.cav { position: relative; overflow: hidden; }
.cav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cheadwho { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.cheadwho .cav { flex: 0 0 28px; width: 28px; height: 28px; font-size: 11px; }
.cname { display: inline-flex; align-items: center; gap: 6px; }
.cname .cav { flex: 0 0 22px; width: 22px; height: 22px; font-size: 9px; }
.avedit { display: flex; align-items: center; gap: 16px; margin: 10px 0 14px; }
.avedit .cav { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 36px; font-size: 26px; }
.avbtns { display: flex; flex-wrap: wrap; gap: 8px; }
#avPick.busy { opacity: .5; pointer-events: none; }

/* ---------- Bottom tab bar on a phone ----------
   The menu moves from the top bar to a row of tabs along the bottom, each an icon over its name,
   within reach of a thumb. The open page's tab is coloured. On wider screens nothing changes. */
#mapTab { display: none; }
@media (max-width: 760px) {
  body { box-sizing: border-box; padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .top .acts { margin-left: auto; }
  .top .navbtns { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); box-sizing: border-box;
    background: var(--surface); border-top: .5px solid var(--line); }
  #mapTab { display: flex; }
  .top .navbtns .nb, .top .navbtns .nb.lblon { width: auto; height: 56px; padding: 6px 0 0; border-radius: 0; flex-direction: column; justify-content: flex-start; align-items: center; gap: 2px; color: var(--muted); background: none; }
  .top .navbtns .nb:hover { background: none; }
  .top .navbtns .nb .ico, .top .navbtns .nb.lblon .ico { display: block; width: 25px; height: 25px; }
  .top .navbtns .nb .lbl, .top .navbtns .nb.lblon .lbl { display: block; font: 500 10.5px/1.1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--body); letter-spacing: 0; }
  .top .navbtns .nb[aria-current="page"] { color: #0a6cdb; }
  .top .navbtns .nb .cnt { top: 3px; right: auto; left: calc(50% + 6px); }
  body.mode-baer .top .navbtns .nb { color: var(--muted); }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top .navbtns .nb[aria-current="page"] { color: #4da3ff; } }
@media (max-width: 760px) { :root[data-theme="dark"] .top .navbtns .nb[aria-current="page"] { color: #4da3ff; } }
@media (max-width: 760px) {
  .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 68px); }
  /* While typing, the keyboard needs the room; the tabs come back when it closes. */
  .kbopen .top .navbtns { display: none; }
  .kbopen body { padding-bottom: 0; }
}
/* The machines and materials lists in the same grouped look. */
.gname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gside { flex: 0 1 auto; color: var(--muted); white-space: nowrap; }
.gform { display: block; }
.gform .gcell > input { text-align: left; }
.gform .glabel { flex: 0 0 76px; }
.gformbtns { justify-content: flex-end; gap: 18px; }
.gsmall { min-height: 36px; padding: 0 18px; border-radius: 18px; border: 0; background: var(--g-tint); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gfoot { font-size: 13px; color: var(--muted); margin: 10px 14px 0; line-height: 1.35; }
.gform > .gcell::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: .5px solid var(--line); }
@media (max-width: 420px) { .worktop .wtabs .chip { padding: 7px 10px; font-size: .8rem; } }
/* The soft background runs to the bottom of the panel under the grouped lists. */
#panel:has(> .wios), #panel:has(> .wios) { background: var(--sunk); }
#panel:has(> .wios) .worktop { background: var(--surface); }
/* Under the tab bar the page shows the same colour, so nothing shows through around the home bar. */
@media (max-width: 760px) { body { background: var(--surface); } }
/* Home-screen app on an iPhone: height:100% and bottom:0 can come out short by the status bar's
   height, leaving the tabs floating above the bottom of the screen. 100vh is the whole screen
   there, so the page and the tabs are laid out from it. Not used in the browser, where 100vh
   would hide the tabs behind Safari's toolbar. */
@media (max-width: 760px) {
  .standalone, .standalone body { height: 100vh; }
  .standalone .top .navbtns { bottom: auto; top: calc(100vh - 56px - env(safe-area-inset-bottom, 0px)); }
  html.standalone { background: var(--surface); }
}
/* Notification choices as on/off switches, one per line. */
.prefs label.switch { border-bottom: .5px solid var(--line); padding: 10px 0; }
.prefs label.switch:last-child { border-bottom: 0; }
.swsub { display: block; }
/* Summary in the grouped look: a period switch, two big totals, then lists. */
.gseg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 2px; margin-top: 12px; border-radius: 9px; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.gseg button { min-height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.gseg button.on { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.glist.gtop { margin-top: 12px; }
.gstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.gstat { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.gstatl { font-size: 13px; color: var(--muted); }
.gstatv { font-size: 28px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; margin-top: 2px; }
.gstatv span { font-size: 16px; font-weight: 600; color: var(--muted); }
.gstats + .gtotal { margin-top: 8px; }
.glist label.gcell.switch { padding: 8px 14px; }
.gcell.switch > span { flex: 1 1 auto; }
.gbtn { border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gjob .grow { align-items: baseline; }
.gjobh { font-weight: 600; white-space: nowrap; }
.gjob .gnote { font-size: 14px; }
.gnotei { color: var(--ink); }
.gleft { justify-self: start; text-align: left; padding: 2px 0; }
.glist .gcell > input[type="date"] { text-align: right; }
/* Task list in the grouped look. */
.gtitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 0; }
.gtitle h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.4px; font-family: inherit; text-transform: none; }
.gtitle .gsmall { display: inline-flex; align-items: center; gap: 6px; }
.gtitle .gsmall svg { color: #fff; }
.gtitle .gsmall svg path { stroke: var(--g-tint); }
.gtask { align-items: center; padding-top: 10px; padding-bottom: 10px; }
.gtaskmain { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.gtaskt { font-size: 16px; font-weight: 600; }
.gtaskm { font-size: 14px; color: var(--muted); }
.gtaskst { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.gbadge { flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--g-tint); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; box-sizing: border-box; }

/* ---------- One task, and a new task, in the grouped look ----------
   The page keeps its own parts; each part (.sec, .box, a field) becomes a rounded card on the
   soft background, buttons become the blue pill and blue text of the day book. */
.gpage { padding-top: 8px; }
.gpage > .sec, .gpage > form.sec { border: 0; padding: 0; margin: 0 0 14px; background: none; }
.gpage .sec .sec { border: 0; padding: 0; }
.gpage .h2 { font-family: inherit; font-size: 26px; font-weight: 700; letter-spacing: -.3px; text-transform: none; margin: 4px 0 0; line-height: 1.15; }
.gpage .eyebrow { font-family: inherit; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.gpage .box, .gpage dl.facts, .gpage .tdesc, .gpage label.f, .gpage .tchat, .gpage .tmsg-list { background: var(--surface); border: 0; border-radius: 12px; }
.gpage .box { padding: 12px 14px; margin-top: 12px; }
.gpage label.f { display: grid; gap: 2px; padding: 10px 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.gpage label.f input, .gpage label.f textarea, .gpage label.f select { border: 0; background: transparent; padding: 2px 0; font: inherit; font-size: 16px; color: var(--ink); box-shadow: none; border-radius: 0; }
.gpage label.f input:focus-visible, .gpage label.f textarea:focus-visible, .gpage label.f select:focus-visible { outline: 2px solid var(--g-tint); outline-offset: 2px; border-radius: 4px; }
.gpage .box label.f { padding: 0; margin-top: 6px; background: none; }
.gpage dl.facts { padding: 4px 14px; margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; }
.gpage dl.facts dt, .gpage dl.facts dd { margin: 0; padding: 10px 0; border-top: .5px solid var(--line); font-size: 15px; }
.gpage dl.facts dt:first-of-type, .gpage dl.facts dd:first-of-type { border-top: 0; }
.gpage dl.facts dt { color: var(--muted); padding-right: 14px; }
.gpage dl.facts dd { text-align: right; }
.gpage .tdesc { padding: 12px 14px; margin: 12px 0 0; font-size: 16px; white-space: pre-wrap; }
.gpage .btn { min-height: 44px; border: 0; border-radius: 12px; background: var(--surface); color: var(--g-tint); font: 500 16px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--body); box-shadow: none; padding: 0 16px; }
.gpage .btn.primary { background: var(--g-tint); color: #fff; font-weight: 600; min-height: 50px; border-radius: 14px; }
.gpage .btn.ghost { background: transparent; padding: 0 4px; }
.gpage .btn.danger, .gpage .btn.danger.ghost { color: #e5484d; }
.gpage .btn:disabled { opacity: .5; }
.gpage form > .row:last-of-type .btn.primary, .gpage .tacts .btn.primary { flex: 1 1 auto; }
.gpage .chip { border: 0; background: var(--surface); border-radius: 16px; min-height: 34px; padding: 0 12px; font: 500 14px -apple-system, BlinkMacSystemFont, var(--body); }
.gpage .chip.on, .gpage .chip[aria-pressed="true"] { background: var(--g-tint); color: #fff; }
.gpage .hits { background: var(--surface); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.gpage dl.facts { column-gap: 0; row-gap: 0; }
.gpage dl.facts dt { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: inherit; }
.gpage dl.facts dd { padding-left: 12px; }
/* The back link sits above the title, as on an iPhone. */
.gpage > .sec > .row.between:first-child, .gpage > form.sec > .row.between:first-child { flex-direction: column-reverse; align-items: flex-start; gap: 2px; }
.gpage #tBack, .gpage #tfBack { padding: 0; min-height: 32px; }
.gpage .seg { border: 0; border-radius: 9px; padding: 2px; gap: 2px; background: color-mix(in srgb, var(--muted) 18%, transparent); display: flex; }
.gpage .seg button { flex: 1; border: 0 !important; border-radius: 7px; background: transparent; color: var(--ink); font: 500 13px -apple-system, BlinkMacSystemFont, var(--body); min-height: 30px; }
.gpage .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.gpage .row > .btn.primary:only-child { flex: 1 1 auto; }

/* ---------- No tick boxes: every on/off choice is a switch ----------
   The tick box keeps working the same; it is only drawn as a sliding switch at the right end of
   its line. Photo tiles picked by tapping keep their own mark. */
label.check, label.pick { align-items: center; }
label.check input[type="checkbox"], label.pick input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; order: 9; margin: 0 0 0 auto; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 14px;
  background: color-mix(in srgb, var(--muted) 35%, transparent); position: relative; cursor: pointer; transition: background .18s; }
label.check input[type="checkbox"]::after, label.pick input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .18s; }
label.check input[type="checkbox"]:checked, label.pick input[type="checkbox"]:checked { background: var(--paint); }
label.check input[type="checkbox"]:checked::after, label.pick input[type="checkbox"]:checked::after { transform: translateX(18px); }
label.check input[type="checkbox"]:focus-visible, label.pick input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
label.check { gap: 12px; }
#allPhotos2 { width: 100%; margin: 12px 0 6px; }

/* ---------- Aðgangur, in the grouped style ----------
   Your picture and name at the top, then your details, notifications and the rest as cards.
   For foremen and administrators the people lists follow, a row each that opens in place. */
.gacct { padding-top: 8px; }
.gprof { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 0 4px; }
.gprofav .cav { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 44px; font-size: 32px; margin-bottom: 8px; }
.gprofname { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.gprofsub { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.gprofmail { font-size: 14px; color: var(--muted); }
.gprofbtns { display: flex; gap: 18px; margin-top: 6px; }
.gprofbtns .gtext { cursor: pointer; }
#avPick.busy { opacity: .5; pointer-events: none; }
.gbadge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--g-tint) 14%, transparent); color: var(--g-tint); white-space: nowrap; }
.gacct .gform .glabel { flex: 0 0 92px; }
.gacct .gform .gcell > .gside { flex: 1 1 auto; text-align: left; color: var(--ink); }
.gbtn.gred .glabel, .gtext.gred { color: #e5484d; }
.gbtn.gtint .glabel { color: var(--g-tint); }
.gpush .gcell.switch { padding-top: 8px; padding-bottom: 8px; }
.gpush .swsub { display: block; }
.gpushbtns { gap: 16px; }
.gpushbtns .gnote { flex: 1 1 auto; font-size: 14px; }
.gnotebig { font-size: 15px; color: var(--ink); line-height: 1.4; }
.gsteps { margin: 4px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.gacct .msg { margin: 8px 14px 0; }
/* people */
.gperson { min-height: 64px; }
.gpbtns { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.gdet > summary { list-style: none; cursor: pointer; }
.gdet > summary::-webkit-details-marker { display: none; }
.gdetx { text-transform: none; letter-spacing: 0; color: var(--g-tint); font-size: 15px; }
.gdet[open] .gdetx { font-size: 0; }
.gdet[open] .gdetx::after { content: "Fela"; font-size: 15px; }
.gpwrap { position: relative; }
.gpwrap + .gpwrap::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; border-top: .5px solid var(--line); z-index: 1; }
.gpopen { min-height: 64px; }
.gpopen + .gpctl { }
.gpopen .gbadge { flex: 0 0 auto; }
.gpopen .gchev { transition: transform .15s; }
.gpwrap.open .gpopen .gchev { transform: rotate(90deg); }
.gpctl { background: color-mix(in srgb, var(--g-bg) 45%, var(--surface)); }
.gpctl { padding-left: 56px; }
.gpctl .gcell { background: transparent; }
.gpctl select.orgsel { flex: 1 1 auto; min-width: 0; }
.gpinfo { min-height: 36px; }
.gorg .gside { min-width: 18px; text-align: right; }
.gorg .gtext { flex: 0 0 auto; font-size: 15px; }
.gorgadd input { flex: 1 1 auto; text-align: left !important; }
.gorgadd .gsmall, .gpbtns .gsmall { white-space: nowrap; flex: 0 0 auto; }
.csub .gbadge { font-size: 11px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }

/* Switches inside grouped lists: the list's own input rules (square, no padding) must not
   reach them. Round, and green when on, as on an iPhone. */
.wios .glist label.switch input[type="checkbox"] { width: 51px; height: 31px; padding: 0; border: 0; border-radius: 16px; box-shadow: none; background: color-mix(in srgb, var(--muted) 35%, transparent); flex: 0 0 auto; }
.wios .glist label.switch input[type="checkbox"]::after { top: 2px; left: 2px; width: 27px; height: 27px; }
.wios .glist label.switch input[type="checkbox"]:checked { background: #34c759; }
.wios .glist label.switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
.wios .glist label.switch input[type="checkbox"]:focus-visible { outline: 2px solid var(--g-tint); outline-offset: 2px; border-radius: 16px; }
/* Deleting a company: asked in place, with what it means. */
.gorgdel { flex-wrap: wrap; gap: 8px 14px; background: color-mix(in srgb, #e5484d 8%, var(--surface)); }
.gorgdel .gnote { flex: 1 1 100%; color: var(--ink); font-size: 14px; line-height: 1.4; }
.gorgdel .gspacer { flex: 1 1 auto; }
.gdanger { min-height: 36px; padding: 0 16px; border-radius: 18px; border: 0; background: #e5484d; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gorgconf { flex: 1 1 100%; text-align: left !important; border: .5px solid var(--line) !important; border-radius: 10px !important; padding: 8px 10px !important; background: var(--surface) !important; }
.gdanger:disabled { opacity: .4; cursor: default; }
.gorgedit { background: color-mix(in srgb, var(--g-tint) 5%, var(--surface)); }
.gorgedit .gformbtns { justify-content: flex-start; }
.gcell[hidden] { display: none; }

/* ---------- Vinnurafmagn ----------
   Temporary power still in the ground: a circle in its own colour with a lightning bolt, always on the
   map until it is marked removed. */
.vpin { background: none; border: 0; display: grid; place-items: center; }
.vpin b { display: grid; place-items: center; border-radius: 50%; background: var(--u-vinnurafmagn); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); box-sizing: border-box; }
.vpin b svg { width: 62%; height: 62%; }
.vpin.sel b { box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-vinnurafmagn) 35%, transparent), 0 2px 6px rgba(0,0,0,.35); }
.box[hidden], .refwrap[hidden], .f[hidden] { display: none !important; }
.vinnubox { border-color: var(--u-vinnurafmagn); }
.vinnubox .eyebrow::before { content: "⚡ "; }
.vlive { color: var(--u-vinnurafmagn); }
.btn.vremove { background: var(--u-vinnurafmagn); border-color: var(--u-vinnurafmagn); color: #fff; }
.vpin { position: relative; }
.vpin .vn { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #fff; color: var(--u-vinnurafmagn); font: 700 11px/18px var(--body); font-style: normal; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); box-sizing: border-box; }

/* ---------- A record (skráning), its verk, and sorting new photos, in the grouped style ----------
   Built on the task-page skin (.gpage); here only what these pages have of their own. */
.grec .photo img.big, .grec > .sec > img.big { border-radius: 14px; }
.grec .photo { border-radius: 14px; overflow: hidden; margin-top: 12px; }
.grec .photo.nophoto { border: 1.5px dashed var(--line); background: var(--surface); }
.grec .verkline { border: 0; border-radius: 12px; padding: 12px 14px; }
.grec fieldset.types { border: 0; padding: 0; margin: 14px 0 0; }
.grec fieldset.types > legend { font-size: 13px; color: var(--muted); padding: 0 2px 6px; text-transform: uppercase; letter-spacing: .02em; }
.grec .subgroup { border: 0; padding: 0; margin-top: 10px; gap: 6px; }
.grec .sublabel { color: var(--muted); font-size: 12px; letter-spacing: .04em; padding-left: 2px; }
/* A type chip keeps its own colour when chosen, so the colours mean the same as on the map. */
.grec .chip[data-k] { padding-left: 10px; }
.grec .chip[data-k][aria-pressed="true"] { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--c); font-weight: 600; }
.grec .chip .dot { width: 10px; height: 10px; }
.grec .f > span:first-child, .grec .refwrap > span:first-child { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; padding-left: 2px; }
.grec .depths .chip { min-width: 46px; justify-content: center; }
.grec .depthIn { border: 0 !important; border-radius: 16px !important; background: var(--surface) !important; min-height: 34px; padding: 0 12px !important; font-size: 15px !important; }
.grec .two { gap: 10px; }
.grec .two label.f { margin-top: 10px; }
.grec .refq .chip { min-height: 32px; font-size: 14px; }
.grec label.check { background: var(--surface); border-radius: 12px; padding: 12px 14px; margin-top: 10px; align-items: center; font-size: 15px; }
.grec .box .eyebrow { margin-bottom: 2px; }
.grec .box .row { gap: 6px 14px; }
.grec .box .btn:not(.primary) { background: none; padding: 0; min-height: 36px; }
.grec .vinnubox { box-shadow: inset 0 0 0 1.5px var(--u-vinnurafmagn); }
.grec .bar { height: 4px; border-radius: 2px; margin-top: 8px; }
.grec .bar > i { background: var(--g-tint); }
.grec .strip img { border-radius: 8px; }
.grec input[type="file"] { font-size: 14px; color: var(--muted); }
.grec .kindsw { margin-top: 6px; }
.grec #editForm > .row.between:last-of-type, .grec #clsForm > .row.between { margin-top: 16px; }
.grec .hstates { margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.ttags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ttag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px 0 8px; border-radius: 13px; font-size: 13px; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.ttag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------- Ný skráning ---------- */
.grec fieldset.types.big { background: none; max-height: none; }   /* .big is for photos; the type chips once got its black backdrop */
:is(.nyskr, .innri, .vetur, .ibpage) .nynav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 2px 0 10px; }
:is(.nyskr, .innri, .vetur, .ibpage) .nynav b { font-size: 17px; font-weight: 600; }
:is(.nyskr, .innri, .vetur, .ibpage) .nynav button { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 17px; color: var(--g-tint); cursor: pointer; justify-self: start; }
:is(.nyskr, .innri) .nynav .nysave { font-weight: 600; justify-self: end; }
:is(.nyskr, .innri) .nynav button:disabled { opacity: .4; }
.nystrip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.nystrip img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: color-mix(in srgb, var(--muted) 25%, transparent); flex: 0 0 auto; }
.nystrip:has(img:only-child) img { width: 100%; height: 190px; border-radius: 14px; }
.nystrip span { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--muted) 18%, transparent); font-weight: 600; }
.nyskr .nycount { margin: 6px 2px 0; }
.nyskr .nysame { margin-top: 12px; }
.nyskr label.nygrp { margin-top: 16px; padding: 12px 16px; background: var(--surface); border-radius: 12px; font-size: 16px; }
.nyskr label.nygrp small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.nyskr label.nygrp input[type=checkbox] { width: 51px; height: 31px; border-radius: 16px; }
.nyskr label.nygrp input[type=checkbox]::after { top: 2px; left: 2px; width: 27px; height: 27px; }
.nyskr label.nygrp input[type=checkbox]:checked { background: #34c759; }
.nyskr label.nygrp input[type=checkbox]:checked::after { transform: translateX(20px); }
.nyskr details.nymore { margin-top: 14px; }
.nyskr details.nymore summary { cursor: pointer; font-size: 15px; color: var(--g-tint); padding: 6px 2px; }
.nyskr .nygo { width: 100%; margin-top: 18px; min-height: 50px; font-size: 17px; }
.nyskr #goOn { width: 100%; margin-top: 6px; }
.nyskr .nywhere { margin-top: 14px; }
.nyskr .nywhere .gcell { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.nyskr .nywhere .gcell b { display: block; font-size: 17px; font-weight: 500; }
.nyskr .nywhere .gcell small { display: block; font-size: 13px; color: var(--muted); }
.nyskr .nywhere .nyic { font-size: 22px; width: 28px; text-align: center; }
.nyskr #bulkForm > .f { margin-top: 14px; }
.subgroup.rafsub[hidden] { display: none; }
.grec .rafsub { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--u-rafmagn, #e5484d) 8%, transparent); }
.chip.dqu[aria-pressed="true"] { background: var(--ink); color: var(--surface, #fff); }

/* ---------- Myndir fyrirtækisins ---------- */
.innri .btn.wide { width: 100%; margin-top: 12px; min-height: 48px; font-size: 17px; }
:is(.innri, .wios) .innset { margin-top: 14px; }
:is(.innri, .wios) .innset label.switch { padding: 10px 16px; font-size: 16px; }
:is(.innri, .wios) .innset small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
:is(.innri, .wios) .innset input[type=checkbox] { width: 51px; height: 31px; border-radius: 16px; }
:is(.innri, .wios) .innset input[type=checkbox]::after { top: 2px; left: 2px; width: 27px; height: 27px; }
:is(.innri, .wios) .innset input[type=checkbox]:checked { background: #34c759; }
:is(.innri, .wios) .innset input[type=checkbox]:checked::after { transform: translateX(20px); }
.innri .inday { margin-top: 18px; }
.innri .inempty { margin-top: 18px; }
.ingrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.incell { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--muted) 22%, transparent); cursor: pointer; }
.incell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.incell .inby { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 11px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.incell .inpend { position: absolute; top: 4px; right: 4px; font-size: 10px; padding: 2px 6px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; }
/* Albums */
.innri .inhead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; }
.innri .inlink { border: 0; background: none; color: var(--g-tint, #0a84ff); font: inherit; font-size: 15px; cursor: pointer; padding: 4px 0; }
.innri .sec > div { min-width: 0; }
.inalbs { min-width: 0; max-width: 100%; overflow: hidden; margin: 0 -14px; padding: 0 14px; }
.inalbs .inhead { margin-top: 18px; }
.inalbrow { width: 100%; min-width: 0; display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.inalb { flex: 0 0 116px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.inalb .incover { position: relative; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--muted) 22%, transparent); font-size: 34px; color: var(--muted); }
.inalb .incover img { width: 100%; height: 100%; object-fit: cover; }
.inalb .incover .inbadge { position: absolute; top: 5px; right: 5px; }
.inalb .incover .inbadge + .inbadge { right: auto; left: 5px; }
.inalb b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.inalb small { font-size: 12px; color: var(--muted); }
.inalb.innew .incover { border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent); background: none; }
.inbadge { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; vertical-align: middle; }
.inatitle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inatitle .inbadge { font-size: 13px; }
.innri .inagrid { margin-top: 14px; }
.innri .inaset { margin-top: 22px; }
.innri .btn.danger.wide { margin-top: 14px; }
.incell .incheck { display: none; position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.insel .incell .incheck { display: block; }
.incell.sel .incheck { background: var(--g-tint, #0a84ff); }
.incell.sel .incheck::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.incell.sel img { opacity: .75; }
.inselbar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px -4px 0; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 -2px 16px rgba(0,0,0,.18); }
.inselbar[hidden] { display: none; }
.inselbar span { flex: 1; text-align: center; font-size: 14px; color: var(--muted); }
.inselbar .btn { white-space: nowrap; min-height: 44px; }
.inphalb { margin-top: 14px; }
.inchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.inchip { display: inline-flex; align-items: center; border-radius: 16px; background: color-mix(in srgb, var(--in-pin, #1f8a57) 16%, transparent); font-size: 14px; }
.inchip button { border: 0; background: none; font: inherit; color: inherit; padding: 6px 4px 6px 12px; cursor: pointer; }
.inchip .inchipx { padding: 6px 10px 6px 6px; color: var(--muted); }
.inchip .inchipx.sure { color: var(--danger); font-weight: 600; }
button.inchip.inchipadd { border: 1px dashed color-mix(in srgb, var(--muted) 60%, transparent); background: none; padding: 6px 12px; color: var(--g-tint, #0a84ff); cursor: pointer; font: inherit; font-size: 14px; }
.insheet { max-height: 80vh; overflow-y: auto; }
.insheet .h3 { margin: 0 0 12px; font-size: 18px; }
.insheet .inalblist .gcell { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.insheet .inalblist .gcell + .gcell { border-top: .5px solid var(--line); }
.insheet .inalblist .gcell:disabled { opacity: .5; cursor: default; }
.insheet .btn.wide { width: 100%; margin-top: 10px; min-height: 44px; }
.insheet .inrow { justify-content: flex-end; margin-top: 12px; }
.innri .gcell { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; }
.innri .gcell + .gcell { border-top: .5px solid var(--line); }
.inpin i { display: block; width: 18px; height: 18px; margin: 4px; border-radius: 5px; background: var(--in-pin, #1f8a57); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.inpin.sel i { width: 24px; height: 24px; margin: 1px; background: #ff9f0a; }
.inpin { position: relative; }
.inpin b { position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: #1f8a57; border: 2px solid var(--in-pin, #1f8a57); font: 700 12px/16px var(--body); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.inpager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.inpager span { font-size: 14px; color: var(--g-sub, #6b6b70); }
.inpager button { width: 44px; height: 40px; border-radius: 10px; border: 0; background: var(--g-fill, rgba(120,120,128,.16)); color: var(--g-tint); font: 600 24px/1 var(--body); cursor: pointer; }
.inpager button:disabled { opacity: .35; cursor: default; }
.innri .inloc { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-top: .5px solid var(--line); }
.innri .nywhere .gcell { justify-content: flex-start; }

/* The company tab looks clearly different, so nobody takes a private photo for the shared map or the other way round. */
body.mode-innri { --in-bar: #1f6f4a; --in-ink: #155238; --in-pin: #1f8a57; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.mode-innri { --in-pin: #34c77b; } }
:root[data-theme="dark"] body.mode-innri { --in-pin: #34c77b; }
body.mode-innri .top { background: var(--in-bar); color: #fff; border-bottom-color: var(--in-bar); }
body.mode-innri .top h1, body.mode-innri .top .where { color: #fff; }
body.mode-innri .top .seg { border-color: #fff; }
body.mode-innri .top .seg button { background: transparent; color: #fff; }
body.mode-innri .top .seg button + button { border-left-color: #fff; }
body.mode-innri .top .seg button[aria-pressed="true"] { background: #fff; color: var(--in-bar); }
body.mode-innri .top #camBtn { background: #fff; color: var(--in-ink); border-color: #fff; }
body.mode-innri .top #addBtn, body.mode-innri .top .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.inmove { margin-top: 10px; }

/* ---------- Nýskráning og boðshlekkur ---------- */
.suseg { display: flex; width: 100%; margin: 4px 0 6px; }
.suseg button { flex: 1; }
.suinv { font-size: 17px; margin: 4px 0; }
.ginv .ginvurl { padding: 12px 16px; }
.ginvlink { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; color: var(--muted); }

/* ---------- Teikna á mynd ---------- */
.phacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.phacts .btn { display: inline-flex; align-items: center; gap: 6px; }
.drawing, .drawing body { overflow: hidden; }
.drawov { position: fixed; inset: 0; z-index: 3000; background: #000; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.drawbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 14px; }
.drawbar b { font-size: 17px; font-weight: 600; }
.drawbar button { background: none; border: 0; color: #fff; font: inherit; font-size: 17px; padding: 6px 0; cursor: pointer; justify-self: start; }
.drawbar .dwsave { justify-self: end; color: #ffcc00; font-weight: 600; }
.drawbar button:disabled { opacity: .5; }
.drawstage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; position: relative; }
.drawstage canvas { max-width: 100%; max-height: 100%; touch-action: none; display: block; border-radius: 6px; }
.drawload { position: absolute; color: #aaa; }
.drawtext { display: flex; gap: 8px; padding: 8px 12px; }
.drawtext input { flex: 1; font-size: 17px; padding: 10px 12px; border-radius: 10px; border: 0; background: #1c1c1e; color: #fff; }
.drawtext button { background: #ffcc00; color: #000; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 600; font-size: 16px; }
.drawtools { padding: 6px 10px 10px; }
.dwrow { display: flex; justify-content: center; gap: 6px; }
.dwtool { background: none; border: 0; color: #ccc; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; padding: 6px 8px; border-radius: 10px; min-width: 56px; cursor: pointer; }
.dwtool[aria-pressed="true"] { background: #2c2c2e; color: #fff; }
.dwcolors { margin-top: 8px; gap: 14px; }
.dwcolor { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid #555; cursor: pointer; padding: 0; }
.dwcolor[aria-pressed="true"] { border: 3px solid #fff; box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; }
.drawtext #dwTextX { background: #2c2c2e; color: #fff; border: 0; border-radius: 10px; padding: 0 14px; font-size: 16px; cursor: pointer; }

/* ---------- Vetrarþjónusta ---------- */
:root { --vt-fresh: #16a34a; --vt-mid: #f0a500; --vt-old: #94a3b8; --vt-me: #1e6fd9; --vt-bar: #1b4f78; --vt-ink: #123a59; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vt-fresh: #34d399; --vt-mid: #fbbf24; --vt-old: #64748b; --vt-me: #60a5fa; --vt-bar: #1b4f78; } }
:root[data-theme="dark"] { --vt-fresh: #34d399; --vt-mid: #fbbf24; --vt-old: #64748b; --vt-me: #60a5fa; }
/* The winter tab has its own colour, like the company tab, so nobody is unsure which tab is open. */
body.mode-vetur .top { background: var(--vt-bar); color: #fff; border-bottom-color: var(--vt-bar); }
body.mode-vetur .top h1, body.mode-vetur .top .where { color: #fff; }
body.mode-vetur .top .seg { border-color: #fff; }
body.mode-vetur .top .seg button { background: transparent; color: #fff; }
body.mode-vetur .top .seg button + button { border-left-color: #fff; }
body.mode-vetur .top .seg button[aria-pressed="true"] { background: #fff; color: var(--vt-bar); }
body.mode-vetur .top #camBtn { background: #fff; color: var(--vt-ink); border-color: #fff; }
body.mode-vetur .top #addBtn, body.mode-vetur .top .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.top .seg button { max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .top .seg button { max-width: 8.5em; padding: 6px 9px; } }

.vtlegend { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--surface); border-radius: 10px; padding: 5px 8px; box-shadow: 0 1px 4px rgb(0 0 0 / .25); font-size: .78rem; color: var(--ink); }
.vtlegend .seg button { padding: 4px 10px; font-size: .8rem; }
.vtkey { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 0; white-space: nowrap; }
.vtkey i { display: inline-block; width: 16px; height: 5px; border-radius: 3px; margin: 0 4px 0 8px; }
.vtkey i:first-child { margin-left: 0; }
.vthind { display: grid !important; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dc2626; color: #fff; font: 700 14px/1 var(--body); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .45); }
.leaflet-tooltip.vtwho { font: 600 12px var(--body); padding: 2px 6px; border-radius: 6px; background: var(--surface); color: var(--ink); border: 0; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.leaflet-tooltip.vtwho::before { display: none; }

.vetur .btn.big { min-height: 52px; font-size: 1.05rem; justify-content: center; margin-top: 10px; }
.vetur .btn.wide { width: 100%; justify-content: center; }
.vetur .btn.primary { background: var(--vt-me); border-color: var(--vt-me); color: #fff; }
.vtcard { background: var(--surface); border-radius: 14px; padding: 14px; margin-top: 10px; display: grid; gap: 10px; border: 2px solid var(--vt-fresh); }
.vthead { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.vtdot { width: 12px; height: 12px; border-radius: 50%; background: var(--vt-fresh); box-shadow: 0 0 0 0 var(--vt-fresh); animation: vtpulse 2s infinite; }
@keyframes vtpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vt-fresh) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .vtdot { animation: none; } }
.vtclock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.vtwhat { font-size: 15px; color: var(--ink); margin-top: -6px; }
.vtgps { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--sunk); color: var(--muted); }
.vtgps.ok::before { content: "● "; color: var(--vt-fresh); }
.vtgps.warn { background: color-mix(in srgb, var(--vt-mid) 22%, var(--surface)); color: var(--ink); }
.vtadg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vtadg button { min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.vtadg button[aria-pressed="true"] { background: var(--vt-fresh); border-color: var(--vt-fresh); color: #fff; }
.vtadg button[data-a="2"][aria-pressed="true"], .vtadg button[data-a="4"][aria-pressed="true"] { background: var(--vt-me); border-color: var(--vt-me); }
.vtacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vetur .vtacts .btn { justify-content: center; padding: 0 4px; min-height: 46px; border-radius: 10px; background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.vtchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vtchips .chip { min-height: 40px; font-size: 15px; padding: 0 14px; box-shadow: none; }
.vthint { margin-top: 10px; }
.vton { border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; justify-content: space-between; }
.vton > span:first-child, .vetur .gcell > span:first-child { display: grid; gap: 1px; }
.vetur .gcell small { color: var(--muted); font-size: 13px; }
.vetur .gcell > span.muted { text-align: right; font-size: 14px; }
.vetur .gcell { justify-content: space-between; }
.vtst .vtage { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.vtsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.vtsum > div { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: grid; }
.vtsum b { font-size: 22px; letter-spacing: -.3px; }
.vtsum span { font-size: 13px; color: var(--muted); }
.vtbook { background: var(--surface); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.vtjobadd { gap: 8px; }
.vtjob { justify-content: space-between; }
.vtjob .linkbtn { color: var(--danger); text-decoration: none; }
.vtjobadd input { flex: 1; min-width: 0; text-align: left !important; }
.vrdates { gap: 10px; }
.vrdates .f { flex: 1; }
.vetur button.gcell { border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.vtshare { display: inline-flex; align-items: center; gap: 8px; }
.vtbar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.vtbar i { display: block; height: 100%; background: var(--vt-fresh); border-radius: 3px; }
.vtsrow { margin-top: 14px; gap: 8px; }
:root { --vt-todo: #2563eb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vt-todo: #93c5fd; } }
:root[data-theme="dark"] { --vt-todo: #93c5fd; }
.vtprog { background: var(--surface); border-radius: 12px; padding: 12px 14px; margin-top: 10px; display: grid; gap: 8px; }
.vtprog b { font-size: 20px; }
.vtbar.big { width: 100%; height: 8px; }
.vtprogbtn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: var(--sunk); color: var(--ink); font: inherit; font-size: 14px; padding: 10px 12px; cursor: pointer; text-align: left; }
.vtprogbtn .vtbar { width: 100%; }
.vtprogbtn > span:last-child { color: var(--g-tint); font-weight: 600; }
.vtadd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vetur .vtadd .btn { justify-content: center; min-height: 46px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; }
.vtplace .vtpk, .vtedrow .vtpk { font-style: normal; color: var(--vt-todo); margin-right: 6px; font-size: 13px; }
.vtplace.done .vtpk { color: var(--vt-fresh); }
.vtplace.done .vtpst { color: var(--vt-fresh); font-weight: 600; }
.vtplace.todo .vtpst { color: var(--vt-todo); }
.vtundo { color: var(--danger); font: 500 15px inherit; font-family: inherit; background: none; border: 0; cursor: pointer; padding: 6px 0 6px 12px; }
.vtreg > span:first-child { font-size: 15px; color: var(--muted); }

/* A chosen photo stands out on every map: white ring, dark edge and a yellow halo. */
.pin.sel i { border: 3px solid #fff; box-shadow: 0 0 0 2.5px #111, 0 0 0 8px color-mix(in srgb, var(--paint) 80%, transparent), 0 2px 8px rgb(0 0 0 / .45); animation: selpulse 1.8s ease-out infinite; }
.grp.sel b, .clu.sel b { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #111, 0 0 0 11px color-mix(in srgb, var(--paint) 80%, transparent); }
.vpin.sel b { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #111, 0 0 0 11px color-mix(in srgb, var(--paint) 80%, transparent) !important; }
@keyframes selpulse { 0%, 100% { box-shadow: 0 0 0 2.5px #111, 0 0 0 8px color-mix(in srgb, var(--paint) 80%, transparent), 0 2px 8px rgb(0 0 0 / .45); } 50% { box-shadow: 0 0 0 2.5px #111, 0 0 0 13px color-mix(in srgb, var(--paint) 45%, transparent), 0 2px 8px rgb(0 0 0 / .45); } }
@media (prefers-reduced-motion: reduce) { .pin.sel i { animation: none; } }

/* Under the street map's tiles: its own light ground, so a tile still loading is not a black square. */
#map.tiles-light { background: #f2efe9; }

/* Far out: places are plain dots, sized by how much is there, without numbers. */
.clu.far b { padding: 0; border: 2.5px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .45); width: calc(100% - 16px); height: calc(100% - 16px); margin: 8px; }
.clu.far.sel b { box-shadow: 0 0 0 2px #111, 0 0 0 7px color-mix(in srgb, var(--paint) 80%, transparent); }

/* A thin strip of map (panel pulled up): no filter, legend or scale on top of it. */
.app.shortmap .filters, .app.shortmap .leaflet-control-scale { display: none; }
@media (max-width: 480px) { .camorg { display: none; } }
:root { --vt-hl: #d946ef; }
/* The tab buttons keep their full names; the place name gives way first. */
@media (min-width: 761px) { .top .seg button { max-width: none; } }
@media (min-width: 761px) and (max-width: 1360px) { .top .where { display: none; } }
.vtjobtitle { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vtrename { background: none; border: 0; color: var(--g-tint); font: 500 15px var(--body); cursor: pointer; padding: 4px 0; }
.vtrenameform { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.vtrenameform input { flex: 1 1 220px; min-width: 0; font-size: 20px; font-weight: 600; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
#vtSetBox button.gcell { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; width: 100%; text-align: left; justify-content: space-between; }
/* Removing places from a winter job */
.ghead .vtedit { margin-left: auto; font-size: 14px; padding: 0 2px; }
.vtedrow { display: flex; align-items: center; gap: 10px; }
.vtedrow > span { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.vtedrow > span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtedrow .vtdel { flex: none; padding: 6px 10px; font-size: 14px; }
.vtedrow.going { opacity: .45; }
#vtBannerU[disabled] { opacity: .4; }
.vtedrow .vtdel[data-sure] { background: #e5484d; color: #fff; border-color: #e5484d; }
#vtBanner { width: min(440px, calc(100% - 32px)); flex-wrap: wrap; }
#vtBanner #vtBannerText { flex: 1 1 100%; }
#vtBanner button { flex: 1; padding: 8px 10px; }
.reclist .picks { margin: 4px 0; }
.reclist .pick { display: flex; }
.reclist .pick > span:empty { display: none; }
.reclist .pick > span { flex: 1; }
/* Tasks from e-mail */
#ibFiles img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--line); cursor: zoom-in; }
#ibFiles .tpdf { cursor: pointer; }
.ibtext { white-space: normal; font-size: 15px; line-height: 1.45; max-height: 320px; overflow-y: auto; }
.ibaddr { font-size: 16px; user-select: all; }
#ibSetBox .gcell.gstack { position: relative; }
#ibSetBox #ibCopy { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.ibaddrrow { display: flex; align-items: center; gap: 10px; text-align: left; }
.ibaddrrow > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ibaddrrow .ibcheck { color: var(--g-tint); font-weight: 700; visibility: hidden; }
.ibaddrrow.on .ibcheck { visibility: visible; }
#ibSetBox .ibdel { color: #e5484d; margin-left: auto; }
#ibSetBox .gcell > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ibsec { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ibsec .glist { margin: 0; }
.ibsec .ibfiles { margin: 0; }
.ibsec .row { margin: 0; align-items: center; }
.ibsech { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ibnum { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--g-tint); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.ibdone { opacity: .72; }
.ibdone .ibnum { background: #30a46c; }
.ibok { color: #30a46c; font-weight: 600; margin-right: auto; }
.ibmany { margin: 10px 0 0; }
.ibnote { margin-top: 10px; font-size: 15px; }
.ibfiles img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--line); cursor: zoom-in; }
.ibfiles .tpdf { cursor: pointer; }
.ibsec .ibtext { max-height: 200px; }
.ibpage .box, .ibpage .glist { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ibpage .ibtext, .ibpage .ibnote, .ibpage .gcell span { overflow-wrap: anywhere; }
/* Pictures in the task form */
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.tflist { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.tflist:empty { display: none; }
.tfitem { position: relative; }
.tfthumb { padding: 0; border: 0; background: none; cursor: pointer; position: relative; display: block; }
.tfthumb img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; background: var(--line); }
.tfthumb span { position: absolute; left: 4px; bottom: 4px; font-size: 13px; background: rgba(0,0,0,.55); border-radius: 6px; padding: 1px 4px; }
.tfitem .tpdf { width: 96px; height: 72px; display: grid; place-items: center; }
.tfx { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #1b2023; color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.tdrawpick { align-items: center; margin-top: 8px; }
/* Zoom while drawing */
.drawstage { overflow: hidden; }
.drawstage canvas { transform-origin: 0 0; will-change: transform; }
.dwzoom { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.dwzoom button { min-width: 44px; height: 34px; border-radius: 17px; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 600 17px/1 -apple-system, Segoe UI, Helvetica, Arial, sans-serif; padding: 0 12px; cursor: pointer; }
.dwzoom button:disabled { opacity: .35; }
/* Symbols */
.dwstamps { overflow-x: auto; justify-content: flex-start; gap: 0; padding: 2px 0 4px; scrollbar-width: none; }
.dwstamps[hidden], .dwcolors[hidden] { display: none; }
.dwstamp { flex: 1 0 auto; background: none; border: 0; color: #ccc; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; padding: 4px 2px; border-radius: 10px; min-width: 50px; cursor: pointer; }
.dwstamp canvas { width: 32px; height: 32px; }
.dwstamp[aria-pressed="true"] { background: #2c2c2e; color: #fff; }
.dwsel { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; justify-content: center; align-items: center; gap: 6px; padding: 5px; max-width: calc(100% - 12px); border-radius: 24px; background: rgba(20,20,22,.82); z-index: 2; white-space: nowrap; }
.dwsel[hidden] { display: none; }
.dwsel span { display: flex; gap: 8px; }
.dwsel span[hidden] { display: none; }
.dwsel button { min-width: 38px; height: 36px; border-radius: 18px; border: 0; background: #0a84ff; color: #fff; font: 700 18px/1 -apple-system, Segoe UI, Helvetica, Arial, sans-serif; padding: 0 10px; cursor: pointer; }
.dwsel .dwseldel { background: rgba(255,69,58,.9); font-size: 15px; }
.dwsel .dwselok { background: rgba(255,255,255,.16); font-size: 15px; }
.tdrawpick { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tdrawpick[hidden] { display: none; }
.tdrawpick .row { align-items: center; margin: 0; }
.tdrawpick .row > .small { min-width: 42px; }
.dwcolors, .dwstamps { min-height: 54px; align-items: center; }
/* The drawing canvas covers the stage and is drawn at screen resolution. */
.drawstage canvas { position: absolute; inset: 0; max-width: none; max-height: none; border-radius: 0; transform: none; will-change: auto; }
/* Photos from the log */
.bkov { position: fixed; inset: 0; z-index: 3000; background: var(--bg, #111); color: inherit; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.bkov .drawbar { background: #000; color: #fff; }
.bkov #bkOk { color: #ffcc00; font-weight: 700; }
.bkov #bkOk:disabled { opacity: .4; }
.bkseg { padding: 10px 12px; display: flex; justify-content: center; }
.bkgrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 0 12px 16px; align-content: start; }
.bkitem { position: relative; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.bkitem img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); display: block; outline: 3px solid transparent; outline-offset: -3px; }
.bkitem[aria-pressed="true"] img { outline-color: #0a84ff; }
.bkcheck { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.3); color: transparent; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.bkitem[aria-pressed="true"] .bkcheck { background: #0a84ff; color: #fff; }
.bkcap { font-size: 12px; line-height: 1.25; opacity: .85; }
.bkempty { grid-column: 1 / -1; text-align: center; opacity: .7; margin-top: 30px; }
.bklist { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bklist:empty { display: none; }
.bkchip { font-size: 13px; }
.bkchip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 2px; }
.bksearch { position: relative; padding: 10px 12px 0; }
.bksearch input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.bksearch .hits { position: absolute; left: 12px; right: 12px; z-index: 2; margin-top: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.bkfound { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.bkfound[hidden] { display: none; }
.bkfound button { border: 0; background: none; color: inherit; font-size: 16px; cursor: pointer; padding: 2px 6px; }
/* Password */
.aforgot { align-self: flex-start; margin-top: 4px; }
.pwov { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.pwbox { width: min(420px, 100%); background: var(--surface); border-radius: 16px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
/* Front page: which photos */
.homeseg { margin: 0 0 14px; }
.homehead { margin-bottom: 8px; align-items: baseline; }
/* Keeping a task's photos */
.tsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 10px 0 4px; }
.tsitem { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; }
.tsitem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsitem input { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; margin: 0; accent-color: var(--paint, #0a84ff); }
.tsitem input:not(:checked) + img { opacity: .4; }
.tsave .f { margin-top: 12px; }
.tswarn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #f5a623 18%, transparent); color: var(--ink); }
/* Finished tasks */
.tasearch { padding-top: 4px; }
.tasearch input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.tmaprow { gap: 16px; align-items: baseline; margin-top: 6px; }
/* One look across the panel's pages */
.gpage .gnav { margin: 0 0 2px; justify-content: flex-start; }
.gpage .sec > .gnav > .btn.gback { flex: 0 0 auto; justify-content: flex-start; }
.gpage .btn.ghost.gback { min-height: 32px; padding: 0; color: var(--g-tint); font-weight: 400; }
/* Secondary actions as tinted buttons, not loose links */
.gpage .sec > .row > .btn.ghost:not(.gback):not(#tBack), .gpage .sec > .row > .btn:not(.primary):not(.ghost) { background: var(--surface); color: var(--g-tint); padding: 0 16px; border-radius: 12px; }
.gpage .sec > .row { gap: 8px; flex-wrap: wrap; }
.gpage .sec > .row > .btn { flex: 1 1 auto; justify-content: center; }
.ghome { padding-top: 6px; }
.ghome .homeacts { margin-bottom: 4px; }

/* The camera on the map (phone) */
.camfab { display: none; }
@media (max-width: 760px) {
  .camfab { display: block; position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 800; }
  .camfab #camBtn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px 0 18px; border-radius: 26px; font-size: 1rem; font-weight: 700; max-width: 62vw;
    box-shadow: 0 4px 14px rgb(0 0 0 / .28), 0 1px 3px rgb(0 0 0 / .2); border: 0; }
  .camfab #camBtn[hidden] { display: none; }
  .camfab #camBtn .ico { width: 22px; height: 22px; }
  .camfab #camTxt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app.full .camfab, .app.placing .camfab { display: none; }
  body.mode-innri .camfab #camBtn { background: var(--in-bar); color: #fff; }
  body.mode-vetur .camfab #camBtn { background: var(--vt-bar, #0a6cdb); color: #fff; }
}

/* Computer: the page one is on is marked in the top bar. */
@media (min-width: 761px) {
  .top .navbtns .nb[aria-current="page"] { background: var(--sunk); box-shadow: inset 0 -3px 0 var(--ink); }
  body.mode-innri .top .navbtns .nb[aria-current="page"], body.mode-vetur .top .navbtns .nb[aria-current="page"] { background: rgb(255 255 255 / .16); box-shadow: inset 0 -3px 0 #fff; }
}
/* Office pages on a computer: the wide panel is used, not just stretched. */
.app.deskwork .panel > * { max-width: 1040px; }
.app.deskwork .gpage .sec, .app.deskwork .wios .sec { padding-left: 28px; padding-right: 28px; }
.app.deskwork .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* Computer: three photos in a row in the side panel from about 420 px. */
@media (min-width: 761px) { .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr)); } }
/* Computer: drop sign, hover links between list and map, big photos open on click. */
.dropsign { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; background: rgb(10 30 60 / .35); pointer-events: none; }
.dropsign > div { display: grid; gap: 6px; text-align: center; background: var(--surface); color: var(--ink); border: 3px dashed var(--ink); border-radius: 16px; padding: 28px 40px; box-shadow: 0 12px 40px rgb(0 0 0 / .3); max-width: min(520px, 90vw); }
.dropsign b { font: 700 1.4rem var(--display); }
.dropsign span { font-size: 1rem; }
.dropsign small { color: var(--muted); }
.hring i { display: block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid #ff9f0a; box-sizing: border-box; background: rgb(255 159 10 / .18); box-shadow: 0 0 0 3px rgb(255 255 255 / .8); animation: hring 1.2s ease-in-out infinite; }
@keyframes hring { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .hring i { animation: none; } }
.card.hot { outline: 3px solid #ff9f0a; outline-offset: 1px; }
@media (hover: hover) and (min-width: 761px) { img.big { cursor: zoom-in; } }

/* Computer: the top bar keeps its places when switching between Lagnir and the company. */
@media (min-width: 761px) {
  .top .where { flex: 0 0 9.5em; width: 9.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .camorg { display: none; }
  .top #camBtn { min-width: 9.5em; justify-content: center; }
  .top .seg button { min-width: 7.5em; }
}
/* Lagfæringar eftir yfirferð */
/* 1. The top bar's page links are white on the green and blue bars (computer). */
@media (min-width: 761px) {
  body.mode-innri .top .nb, body.mode-vetur .top .nb { color: #fff; }
  body.mode-innri .top .nb:hover, body.mode-vetur .top .nb:hover { background: rgb(255 255 255 / .14); }
}
/* 2. One way back everywhere: "‹ Til baka" on the left, the page's action on the right. */
.gnav { display: flex; align-items: center; margin: 0 0 2px; }
.gnav .btn.ghost.gback { flex: 0 0 auto; justify-content: flex-start; min-height: 36px; padding: 0; border: 0; background: none; color: var(--g-tint, #0a6cdb); font-weight: 400; font-size: 17px; }
.gnavlr { justify-content: space-between; }
.gedit { min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--g-tint, #0a6cdb); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.gedit:hover, .gnav .gback:hover { text-decoration: underline; }
/* 3. Dagbók > Starfsmenn in the same look as the other tabs. */
.wfolk .sec { padding-left: 0; padding-right: 0; }
.wfolk .wlist { gap: 8px; }
.wfolk .wday { border: 0; border-radius: 12px; padding: 12px 14px; min-height: 50px; }
.wfolk .wremind, .wfolk .sec > .row > .btn { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); color: var(--g-tint); font-weight: 600; }
.wfolk .sec > .row > .btn:disabled { opacity: .45; }
.wfolk .wremind.done { color: var(--muted); }
.wfolk .wnav { margin-top: 0; }
/* 5. Dagbók tabs fit a phone screen without being cut off. */
@media (max-width: 420px) { .worktop .wtabs { overflow: hidden; } .worktop .wtabs .chip { flex: 1 1 auto; min-width: 0; padding: 7px 4px; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; } }
/* 4. Phone: map credit on one line, the scale above it. */
@media (max-width: 760px) {
  .leaflet-control-attribution { font-size: 9.5px; line-height: 1.3; white-space: nowrap; max-width: calc(100vw - 8px); overflow: hidden; text-overflow: ellipsis; }
  .leaflet-bottom.leaflet-left .leaflet-control-scale { margin-bottom: 20px; }
}
/* 6. Computer: hour buttons in the day book stay a sensible size on a wide page. */
.app.deskwork .ghrs { grid-auto-columns: 84px; }
.gpage .gnav.gnavlr, .gpage .sec > .gnav.gnavlr { justify-content: space-between; }
/* Computer: the hour buttons stay on one line. When they all fit they are all shown; when the
   panel is too narrow the line scrolls with the mouse wheel and small arrows at its ends. */
@media (min-width: 761px) {
  .ghrs, .app.deskwork .ghrs { grid-auto-columns: minmax(40px, 58px); justify-content: start; gap: 6px; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; }
  .ghr { height: 36px; font-size: 15px; }
  .ghrwrap { position: relative; }
  .ghrwrap .ghrarr { position: absolute; top: 0; bottom: 0; width: 34px; border: 0; z-index: 1; display: grid; place-items: center; font: 600 22px/1 var(--body); color: var(--g-tint); cursor: pointer; }
  .ghrwrap .ghrarr.l { left: -2px; background: linear-gradient(90deg, var(--surface) 60%, transparent); justify-content: start; padding-left: 4px; }
  .ghrwrap .ghrarr.r { right: -2px; background: linear-gradient(270deg, var(--surface) 60%, transparent); justify-content: end; padding-right: 4px; }
  .ghrwrap .ghrarr[hidden] { display: none; }
}

/* Drafts from mail: "Henda" at the top, and ticking several to throw out at once. */
.ibtoss { border: 0; background: none; color: var(--danger, #d70015); font: inherit; font-size: 17px; cursor: pointer; padding: 0; }
.ghead .gsel { border: 0; background: none; color: var(--g-tint, #0a6cdb); font: 600 15px var(--body); text-transform: none; letter-spacing: 0; cursor: pointer; padding: 0; }
.ibpicking .gtask { gap: 12px; }
.ibtick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted, #8a8a8e); box-sizing: border-box; }
.ibpicking .gtask[aria-pressed="true"] .ibtick { border-color: var(--danger, #d70015); background: var(--danger, #d70015); box-shadow: inset 0 0 0 3px var(--surface); }
.ibpickbar { position: sticky; bottom: 8px; z-index: 2; margin: 10px 0 0; }
.ibpickbar .btn { width: 100%; min-height: 48px; }
.ibpage .nynav > span { justify-self: end; } .ibpage .nynav .ibtoss { color: var(--danger, #d70015); }

/* A job in a mail that was skipped. */
.ibskip { opacity: .55; }
.ibskip .ibnum { background: var(--muted, #8a8a8e); }
.ibskipped { color: var(--muted); font-weight: 600; margin-right: auto; }
.ibsec .row .ibskipbtn { color: var(--muted); }

/* Picking company photos: its albums as chips in one sideways line. */
.coalbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; }
.coalbs::-webkit-scrollbar { display: none; }
.coalbs .chip { flex: 0 0 auto; white-space: nowrap; }
.coalbs .chip[aria-pressed="true"] { background: var(--in-bar, #1f6b45); color: #fff; border-color: transparent; }

/* Deleting an account: a red line of its own, apart from the rest. */
.gdelacct { margin-top: 28px; }
.gfoot.gleft { text-align: left; }
.gbtnrow { margin: 18px 0 8px; }
.gbtnrow .btn { width: 100%; min-height: 48px; }
.gwrapcell .glabel { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; padding: 4px 0; }
.gcell.gwrapcell, .gcell.gwrapcell .glabel { white-space: normal; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; height: auto; min-height: 44px; }
.tmovebtn { color: var(--g-tint, #0a6cdb); text-decoration: none; margin-left: 6px; font-weight: 600; }
.tmove .row { gap: 8px; flex-wrap: wrap; }
/* Not signed in (or not yet approved): only the map and the sign-in panel. No filters, map
   layers, pipe drawings or Lagnir/company switch until there is something to show. */
body.locked .leaflet-control-layers, body.locked #filters, body.locked .top .seg,
body.locked .camfab, body.locked #mapsearch { display: none !important; }
