/* Stofuskrá – klínískt og traust
   Hugmynd: sjúkraskrá. Djúpblár rammi (hliðarstika) utan um hvíta, reglustrikaða örk.
   Einn aðallitur (blágrænn „petrol“), rauðgulur aðeins fyrir „núna“ og viðvaranir, rauður fyrir villur.
   Letur: IBM Plex Sans í öllu – hlutlaust, nákvæmt, með jafnbreiðum tölum fyrir tíma, kennitölur og upphæðir. */

@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Breytuheiti haldast frá fyrra útliti svo allir hlutar fylgi nýju litunum */
  --mist: #F3F6F8;          /* flötur: bakgrunnur reita og spjalda */
  --sheet: #FFFFFF;         /* örkin */
  --ink: #0F2433;           /* hliðarstika og fyrirsagnir */
  --pine: #172A37;          /* texti */
  --pine-2: #42566A;        /* aukatexti */
  --muted: #5A6B78;         /* daufur texti (5:1 á hvítu) */
  --hair: #E2E8ED;          /* línur */
  --hair-2: #C9D3DB;        /* rammar á reitum */
  --fjord: #135E7C;         /* aðallitur: petrol-blár */
  --fjord-deep: #0C4860;
  --fjord-soft: #DCEBF2;
  --fjord-wash: #EEF5F9;
  --berry: #C77700;         /* „núna“, prufutími, viðvaranir */
  --berry-soft: #FDF1DC;
  --berry-ink: #7A4600;
  --brick: #B42318;
  --brick-soft: #FDECEA;
  --radius: 10px;
  --radius-sm: 6px;
  --display: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--pine); font-family: var(--text); font-size: 17px; line-height: 1.55; }
a { color: var(--fjord); text-underline-offset: 3px; }
a:hover { color: var(--fjord-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 3.2vw, 36px); }
h2 { font-size: 21px; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; max-width: 68ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: #fff; padding: 10px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- Grind: hliðarstika + örk */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 0 0 248px; padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.sheet { flex: 999 1 560px; min-width: 0; background: var(--sheet); margin: 12px 12px 12px 0; border-radius: 12px; padding: 36px clamp(18px, 4vw, 56px) 56px; }
.sheet-inner { max-width: 1680px; }
@media (max-width: 899px) {
  /* Dálkur í síma: haus tekur aðeins sitt pláss og örkin fyllir restina, líka á stuttum síðum */
  .shell { flex-direction: column; flex-wrap: nowrap; }
  .side { flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
  .sheet { flex: 1 0 auto; margin: 0 8px 8px; border-radius: 12px; padding: 24px 16px 40px; }
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--pine); text-decoration: none; padding: 0 8px; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--fjord); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; display: block; }
.brand-sub { font-size: 13px; color: var(--muted); display: block; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 13px; color: var(--muted); padding: 16px 14px 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; color: var(--pine-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a svg { flex: none; opacity: .8; }
.nav a:hover { background: rgba(19,94,124,.08); color: var(--pine); }
.nav a[aria-current="page"] { background: var(--sheet); color: var(--fjord-deep); }
.nav a[aria-current="page"] svg { opacity: 1; }
@media (max-width: 899px) {
  .nav { flex-direction: row; flex-wrap: wrap; order: 3; flex-basis: 100%; }
  .nav-group { display: none; }
  .nav a { padding: 8px 12px; font-size: 15px; }
}

.me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 8px; }
.me .avatar { width: 40px; height: 40px; font-size: 15px; }
.me-text { min-width: 0; line-height: 1.3; }
.me-name { font-weight: 700; font-size: 15px; display: block; }
.me-title { font-size: 13px; color: var(--muted); display: block; }
.me form { margin-left: auto; }
@media (max-width: 899px) { .me { margin: 0 0 0 auto; padding: 0; } .me-text { display: none; } }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--fjord-soft); color: var(--fjord-deep); font-family: var(--display); font-weight: 700; flex: none; }

/* ---------------------------------------------------------------- Síðuhaus */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 600; text-decoration: none; font-size: 15px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.head p { margin: 6px 0 0; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section { margin-top: 40px; }
.section > h2 { margin-bottom: 14px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- Tilkynningar */
.flash { border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; font-weight: 600; }
.flash-ok { background: var(--fjord-wash); color: var(--fjord-deep); }
.flash-info { background: #EDF0F7; color: #2F3E66; }
.flash-error { background: var(--brick-soft); color: var(--brick); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--berry-soft); color: var(--berry-ink); border-radius: 12px; padding: 14px 20px; margin-bottom: 28px; font-weight: 600; }
.once { background: var(--berry-soft); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.once strong { display: block; margin-bottom: 6px; color: var(--berry-ink); }
.once code { font-size: 22px; font-weight: 700; letter-spacing: .04em; font-family: var(--text); user-select: all; }
.notice { background: var(--berry-soft); color: var(--berry-ink); border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; }

/* ---------------------------------------------------------------- Hnappar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--hair-2); background: var(--sheet); color: var(--pine); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--pine-2); color: var(--pine); }
.btn-primary { background: var(--fjord); border-color: var(--fjord); color: #fff; }
.btn-primary:hover { background: var(--fjord-deep); border-color: var(--fjord-deep); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--mist); border-color: transparent; }
.btn-danger { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn-danger:hover { background: #82291D; border-color: #82291D; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-on { background: var(--fjord-soft); border-color: var(--fjord); color: var(--fjord-deep); }
.linklike { background: none; border: none; padding: 0; font: inherit; color: var(--fjord); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike.danger { color: var(--brick); }

/* ---------------------------------------------------------------- Merki */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--mist); color: var(--pine-2); white-space: nowrap; }
.tag-ok { background: var(--fjord-soft); color: var(--fjord-deep); }
.tag-warn { background: var(--berry-soft); color: var(--berry-ink); }
.tag-bad { background: var(--brick-soft); color: var(--brick); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 15px; background: var(--fjord-wash); color: var(--fjord-deep); padding: 2px 12px; border-radius: 999px; }

/* ---------------------------------------------------------------- Listar og töflur */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 600; padding: 0 14px 10px; }
td { padding: 14px; border-top: 1px solid var(--hair); vertical-align: middle; }
tr.is-off td { color: var(--muted); }
td.right, th.right { text-align: right; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--hair); }
.rows > li:last-child { border-bottom: 1px solid var(--hair); }
.row-link { display: flex; align-items: center; gap: 16px; padding: 14px 6px; text-decoration: none; color: var(--pine); border-radius: 8px; }
.row-link:hover { background: var(--fjord-wash); color: var(--pine); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; display: block; }
.row-sub { font-size: 15px; color: var(--muted); display: block; }
.empty { padding: 28px; border: 2px dashed var(--hair); border-radius: 12px; color: var(--muted); }
.empty p { margin-bottom: 14px; }

/* ---------------------------------------------------------------- Yfirlit dagsins: tímalína */
.greet-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.greet { margin-bottom: 0; }
.greet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dstats { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.dstat { background: var(--mist); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dstat-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.dstat-value { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--pine); text-decoration: none; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dstat-value span { font-family: var(--text); font-size: 18px; font-weight: 700; }
a.dstat-value:hover { color: var(--fjord-deep); }
.dstat-next { background: var(--fjord-wash); }
.dstat-quiet { font-size: 20px; color: var(--pine-2); }
.dstat-warn { background: var(--berry-soft); }
.dstat-warn .dstat-value { color: var(--berry-ink); }
@media (max-width: 599px) { .dstats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .dstat-next { grid-column: 1 / -1; } .dstat { padding: 12px 14px; } .dstat-value { font-size: 24px; } .dstat-label { font-size: 13px; } }
.greet h1 { font-size: clamp(32px, 4.4vw, 46px); }
.greet p { color: var(--muted); font-size: 18px; margin-top: 8px; }
.day-grid { display: grid; gap: 36px 44px; align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "appts" "visits" "side"; }
.day-appts { grid-area: appts; min-width: 0; }
.day-visits { grid-area: visits; min-width: 0; }
.day-side { grid-area: side; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1100px) { .day-grid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "appts side" "visits side"; } }
@media (min-width: 1500px) { .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; grid-template-areas: "appts visits side"; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 66px; top: 8px; bottom: 8px; width: 2px; background: var(--hair); border-radius: 2px; }
.timeline li { position: relative; display: flex; gap: 28px; align-items: flex-start; padding: 6px 0; }
.t-time { width: 52px; flex: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 14px; color: var(--pine-2); }
.t-node { position: absolute; left: 60px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--hair-2); }
.t-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: var(--pine); background: var(--mist); }
.t-card:hover { background: var(--fjord-wash); color: var(--pine); }
.t-done .t-node { background: var(--fjord); border-color: var(--fjord); }
.t-now .t-node { background: var(--berry); border-color: var(--berry); box-shadow: 0 0 0 5px var(--berry-soft); }
.t-now .t-card { background: var(--berry-soft); }
.t-revoked .t-card { opacity: .6; }
.now-line { display: flex; align-items: center; gap: 28px; padding: 2px 0; color: var(--berry-ink); font-weight: 700; font-size: 14px; }
.now-line span:first-child { width: 52px; text-align: right; }
.now-line span:last-child { flex: 1; height: 2px; background: var(--berry); border-radius: 2px; }

.panel { background: var(--mist); border-radius: 12px; padding: 20px 22px; }
.panel h2 { font-size: 18px; margin-bottom: 12px; }
.panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quick-search { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- Skjólstæðingur */
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 32px; }
.person .avatar { width: 76px; height: 76px; font-size: 28px; }
.person-text { flex: 1; min-width: 220px; }
.person-text p { margin: 6px 0 0; color: var(--muted); }
.person .head-actions { align-self: center; }
.start { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 20px; background: var(--fjord-wash); border-radius: 12px; }
.start span { font-weight: 700; margin-right: 6px; }

.history { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.history::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--hair); }
.history > li { position: relative; padding: 4px 0; }
.history > li::before { content: ""; position: absolute; left: -26px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--fjord); border: 3px solid var(--sheet); }
.history > li.is-draft::before { background: var(--berry); }
.history > li.is-revoked::before { background: var(--hair-2); }
.history .row-link { padding: 12px 14px; }

/* ---------------------------------------------------------------- Koma */
.record { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 36px; }
.record dt { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.record dd { margin: 0; font-size: 17px; }
.record.compact { gap: 12px 24px; }
.record.compact dd { font-size: 16px; }
.meta-lines { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
details.disclose summary { cursor: pointer; list-style: none; display: inline-flex; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose[open] > form, details.disclose[open] > div { margin-top: 14px; }
.changes { list-style: none; margin: 0; padding: 0; }
.changes > li { border-top: 1px solid var(--hair); }
.changes summary { cursor: pointer; padding: 14px 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.changes summary strong { font-weight: 700; }
.changes .record { padding: 4px 4px 20px; }

/* ---------------------------------------------------------------- Form */
.form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.form-wide { max-width: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; border: none; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field-label { font-weight: 700; font-size: 16px; }
.req { color: var(--brick); }
.hint { font-size: 15px; color: var(--muted); }
.field-error { font-size: 15px; color: var(--brick); font-weight: 600; }
.form-error { background: var(--brick-soft); color: var(--brick); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=month], textarea, select {
  width: 100%; font: inherit; font-size: 17px; color: var(--pine); background: var(--sheet); border: 1.5px solid var(--hair-2); border-radius: 8px; padding: 11px 14px; min-height: 48px;
}
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--fjord); outline: 3px solid var(--fjord-soft); outline-offset: 0; }
textarea { resize: vertical; line-height: 1.5; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--brick); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--fjord); flex: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--hair-2); background: var(--sheet); font-size: 16px; }
.choice input:checked + span { background: var(--fjord); border-color: var(--fjord); color: #fff; font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; max-width: 620px; }
.scale-step { position: relative; }
.scale-step input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale-step span { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 8px; border: 1.5px solid var(--hair-2); background: var(--sheet); font-size: 16px; font-variant-numeric: tabular-nums; }
.scale-step input:checked + span { background: var(--fjord); border-color: var(--fjord); color: #fff; font-weight: 700; }
.scale-step input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.search { display: flex; gap: 8px; max-width: 560px; margin-bottom: 24px; }
.template-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.inline-form { display: inline; }

/* ---------------------------------------------------------------- Stjórnun */
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.stat { flex: 1 1 170px; background: var(--mist); border-radius: 12px; padding: 16px 20px; }
.stat strong { display: block; font-family: var(--display); font-size: 28px; white-space: nowrap; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }
.stat.lead { background: var(--fjord); color: #fff; }
.stat.lead span { color: #D3E4EE; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > .grow { flex: 999 1 460px; min-width: 0; }
.split > .aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.user-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.lines td { padding: 8px 14px; }
.total-row td { font-weight: 700; }

/* ---------------------------------------------------------------- Innskráning og skráning */
body.bare { background: var(--mist); }
.auth { width: 100%; max-width: 480px; margin: 0 auto; padding: 48px 16px 64px; }
.auth.wide { max-width: 760px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; text-decoration: none; color: var(--pine); }
.auth-card { background: var(--sheet); border-radius: 12px; padding: 32px clamp(20px, 5vw, 40px); }
.auth-card h1 { font-size: 30px; margin-bottom: 10px; }
.auth-card > p { color: var(--pine-2); }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); }
.steps { padding-left: 22px; margin: 0 0 16px; }
.steps li { margin-bottom: 4px; }
.qr { display: flex; justify-content: center; margin: 8px 0 18px; }
.qr svg { width: 220px; height: 220px; border-radius: 8px; border: 1.5px solid var(--hair); }
.manual { margin-bottom: 16px; }
.manual summary { cursor: pointer; color: var(--fjord); font-weight: 700; padding: 6px 0; }
.secret { font-size: 19px; font-weight: 700; letter-spacing: .05em; background: var(--mist); padding: 14px; border-radius: 8px; word-break: break-all; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose h2 { margin: 28px 0 10px; font-size: 20px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.avatar-sm { width: 38px; height: 38px; font-size: 14px; }
.flush { margin: 0; }
.filters input[type=search] { flex: 1 1 260px; width: auto; }
.filters select { width: auto; flex: 0 1 220px; }

td.right { white-space: nowrap; }
.lines { width: 100%; margin: 4px 0 12px; }
.lines td { padding: 8px 0; }
@media (max-width: 599px) {
  .timeline::before { left: 50px; }
  .timeline li { gap: 18px; }
  .t-time { width: 40px; font-size: 15px; }
  .t-node { left: 44px; }
  .t-card { flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; }
  .t-card .avatar { display: none; }
  .t-card .row-main { flex: 1 1 100%; }
  .now-line { gap: 18px; }
  .now-line span:first-child { width: 40px; }
}

/* ---------------------------------------------------------------- Myndir og skjöl */
.gallery { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.thumb { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--mist); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.doc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--pine-2); text-decoration: none; padding: 12px; text-align: center; font-size: 15px; word-break: break-word; }
.thumb-meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 2px 0; font-size: 15px; }
.upload { display: flex; flex-direction: column; gap: 14px; max-width: 640px; padding: 20px; border: 2px dashed var(--hair-2); border-radius: 12px; }
.upload-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.file-btn { position: relative; }
.file-btn:focus-within { outline: 3px solid var(--berry); outline-offset: 2px; }
.upload.is-uploading { opacity: .6; pointer-events: none; }
.count-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 599px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .thumb-meta { font-size: 14px; } }
.once code { word-break: break-all; font-size: 16px; }

/* ---------------------------------------------------------------- Dagatal */
.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.cal-step { display: flex; gap: 6px; }
.cal-step .btn-sm { padding: 0 12px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--mist); border-radius: 999px; }
.seg a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--pine-2); text-decoration: none; }
.seg a:hover { color: var(--pine); background: var(--sheet); }
.seg a[aria-current] { background: var(--sheet); color: var(--fjord-deep); box-shadow: 0 1px 2px rgba(15, 36, 51, .12); }
.staff-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.staff-pick a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 5px; border-radius: 999px; border: 1.5px solid var(--hair-2); text-decoration: none; color: var(--pine); font-weight: 600; font-size: 15px; }
.staff-pick a:first-child:not(:has(.avatar)) { padding-left: 14px; }
.staff-pick a:hover { border-color: var(--pine-2); color: var(--pine); }
.staff-pick a[aria-current] { background: var(--fjord-soft); border-color: var(--fjord); color: var(--fjord-deep); }
.avatar-xs { width: 28px; height: 28px; font-size: 11px; }
.cal-colhead a.row-title { color: var(--pine); text-decoration: none; }
.cal-colhead a.row-title:hover { color: var(--fjord-deep); text-decoration: underline; }
.cal-week .cal-col { min-width: 120px; }
.cal-dayhead { justify-content: center; gap: 8px; text-decoration: none; color: var(--pine); }
.cal-dayhead:hover { background: var(--fjord-wash); color: var(--pine); }
.cal-wd { font-size: 14px; font-weight: 600; color: var(--muted); }
.cal-dn { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.cal-dc { font-size: 12px; font-weight: 700; color: var(--fjord-deep); background: var(--fjord-soft); border-radius: 999px; padding: 1px 8px; }
.cal-col.is-today .cal-dn { background: var(--fjord); color: #fff; }
.cal-col.is-today .cal-wd { color: var(--fjord-deep); }
.cal-col.is-weekend .cal-grid { background: #FAFBFC; }
.cal-list-day { font-size: 16px; margin: 20px 0 6px; }
.cal-list-day a { color: var(--pine); text-decoration: none; }

/* Mánaðarsýn */
.month { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: var(--sheet); }
.month-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-row + .month-row { border-top: 1px solid var(--hair); }
.month-wd span { padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--hair-2); }
.month-wd abbr { text-decoration: none; }
.month-cell { position: relative; min-height: 132px; padding: 8px 8px 30px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.month-cell:first-child { border-left: 0; }
.month-cell.is-weekend { background: #FAFBFC; }
.month-cell.is-out { background: var(--mist); }
.month-cell.is-out .month-dn { color: var(--muted); font-weight: 600; }
.month-day { display: flex; align-items: center; justify-content: space-between; gap: 6px; text-decoration: none; color: var(--pine); border-radius: 10px; }
.month-dn { font-family: var(--display); font-size: 18px; font-weight: 700; min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.month-day:hover .month-dn { background: var(--fjord-wash); }
.month-cell.is-today .month-dn { background: var(--fjord); color: #fff; }
.month-count { display: none; font-size: 12px; font-weight: 700; color: var(--fjord-deep); background: var(--fjord-soft); border-radius: 999px; padding: 1px 8px; }
.month-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.month-list li > a, .month-list li > span { display: block; padding: 2px 8px; border-radius: 8px; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; color: var(--pine); background: var(--fjord-soft); border-left: 3px solid var(--fjord); }
.month-list li > a:hover { background: #CFE2EC; color: var(--pine); }
.month-list .num { font-weight: 700; color: var(--fjord-deep); }
.month-list .a-arrived > a { background: var(--berry-soft); border-left-color: var(--berry); }
.month-list .a-done > a { background: var(--mist); border-left-color: var(--fjord-deep); }
.month-list .a-no_show > a { background: var(--brick-soft); border-left-color: var(--brick); text-decoration: line-through; }
.month-list .a-hidden > span { background: var(--mist); border-left-color: var(--hair-2); color: var(--muted); }
.month-list .month-more a { background: none; border-left: 0; padding-left: 4px; font-weight: 700; color: var(--fjord-deep); }
.month-add { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--fjord); opacity: 0; }
.month-cell:hover .month-add, .month-add:focus-visible { opacity: 1; background: var(--fjord-wash); }
@media (max-width: 799px) {
  .month-cell { min-height: 64px; padding: 6px 4px 6px; }
  .month-list, .month-add { display: none; }
  .month-day { flex-direction: column; gap: 2px; }
  .month-count { display: inline-block; }
  .month-dn { font-size: 16px; min-width: 30px; height: 30px; }
  .month-wd span { padding: 8px 4px; text-align: center; }
}
.cal-pick { display: flex; gap: 8px; margin-left: auto; }
.cal-pick input { width: auto; min-height: 38px; padding: 4px 12px; }
.cal-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; background: var(--sheet); }
.cal { display: flex; min-width: min-content; }
.cal-gutter { flex: none; width: 58px; position: sticky; left: 0; z-index: 3; background: var(--sheet); border-right: 1px solid var(--hair); }
.cal-col { flex: 1 1 0; min-width: 170px; border-right: 1px solid var(--hair); }
.cal-col:last-child { border-right: 0; }
.cal-colhead { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--hair-2); position: sticky; top: 0; background: var(--sheet); }
.cal-colhead .row-title { font-size: 15px; }
.cal-colhead .row-sub { font-size: 13px; }
.cal-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(52, 22px); position: relative; }
.cal-hour { grid-column: 1; font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-9px); font-variant-numeric: tabular-nums; }
.cal-hour.r-1 { transform: none; padding-top: 2px; }
.cal-slot { grid-column: 1; border-top: 1px dashed transparent; }
.cal-slot.is-hour { border-top: 1px solid var(--hair); }
.cal-slot.r-1 { border-top: 0; }
.cal-slot:nth-child(4n+3) { border-top-color: #EEF2F5; }
.cal-slot:hover { background: var(--fjord-wash); }
.cal-slot:hover::after { content: "+"; display: block; padding-left: 8px; font-weight: 700; color: var(--fjord); line-height: 20px; }
.cal-now { grid-column: 1; height: 2px; background: var(--berry); align-self: start; z-index: 2; pointer-events: none; box-shadow: 0 0 0 2px var(--berry-soft); }
.cal-appt { grid-column: 1; z-index: 1; margin: 1px 6px 1px 4px; padding: 3px 10px; border-radius: 10px; background: var(--fjord-soft); border-left: 4px solid var(--fjord); color: var(--pine); text-decoration: none; overflow: hidden; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; min-height: 0; }
.cal-appt:hover { background: #CFE2EC; color: var(--pine); }
.cal-appt.is-short { flex-direction: row; gap: 6px; align-items: center; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
.cal-time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--fjord-deep); }
.cal-who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-state, .cal-note { font-size: 13px; color: var(--pine-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-appt.a-arrived { background: var(--berry-soft); border-left-color: var(--berry); }
.cal-appt.a-arrived .cal-time { color: var(--berry-ink); }
.cal-appt.a-done { background: var(--mist); border-left-color: var(--fjord-deep); }
.cal-appt.a-no_show { background: var(--brick-soft); border-left-color: var(--brick); }
.cal-appt.a-no_show .cal-who { text-decoration: line-through; }
.cal-appt.a-no_show .cal-time { color: var(--brick); }
.cal-appt.a-hidden { background: repeating-linear-gradient(135deg, var(--mist), var(--mist) 6px, #E6EBEF 6px, #E6EBEF 12px); border-left-color: var(--hair-2); color: var(--muted); }
.cal-appt.a-hidden .cal-time { color: var(--muted); }
.cal-page { display: flex; flex-direction: column; }
.cal-list { display: none; }
@media (max-width: 699px) {
  .cal-list { display: block; order: -1; margin: 0 0 28px; }
  .cal-pick { margin-left: 0; }
  .cal-col { min-width: 150px; }
}
.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upcoming a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 16px; border-radius: 8px; background: var(--fjord-wash); text-decoration: none; color: var(--pine); }
.upcoming a:hover { background: var(--fjord-soft); color: var(--pine); }
.upcoming .row-main { flex: 1; min-width: 200px; }

/* Raðir í dagatalsgrind: r-N = byrjunarröð, s-N = fjöldi raða (15 mín. hver) */
.r-1 { grid-row-start: 1; } .r-2 { grid-row-start: 2; } .r-3 { grid-row-start: 3; } .r-4 { grid-row-start: 4; } .r-5 { grid-row-start: 5; } .r-6 { grid-row-start: 6; } .r-7 { grid-row-start: 7; } .r-8 { grid-row-start: 8; } .r-9 { grid-row-start: 9; } .r-10 { grid-row-start: 10; } .r-11 { grid-row-start: 11; } .r-12 { grid-row-start: 12; } .r-13 { grid-row-start: 13; } .r-14 { grid-row-start: 14; } .r-15 { grid-row-start: 15; } .r-16 { grid-row-start: 16; } .r-17 { grid-row-start: 17; } .r-18 { grid-row-start: 18; } .r-19 { grid-row-start: 19; } .r-20 { grid-row-start: 20; } .r-21 { grid-row-start: 21; } .r-22 { grid-row-start: 22; } .r-23 { grid-row-start: 23; } .r-24 { grid-row-start: 24; } .r-25 { grid-row-start: 25; } .r-26 { grid-row-start: 26; } .r-27 { grid-row-start: 27; } .r-28 { grid-row-start: 28; } .r-29 { grid-row-start: 29; } .r-30 { grid-row-start: 30; } .r-31 { grid-row-start: 31; } .r-32 { grid-row-start: 32; } .r-33 { grid-row-start: 33; } .r-34 { grid-row-start: 34; } .r-35 { grid-row-start: 35; } .r-36 { grid-row-start: 36; } .r-37 { grid-row-start: 37; } .r-38 { grid-row-start: 38; } .r-39 { grid-row-start: 39; } .r-40 { grid-row-start: 40; } .r-41 { grid-row-start: 41; } .r-42 { grid-row-start: 42; } .r-43 { grid-row-start: 43; } .r-44 { grid-row-start: 44; } .r-45 { grid-row-start: 45; } .r-46 { grid-row-start: 46; } .r-47 { grid-row-start: 47; } .r-48 { grid-row-start: 48; } .r-49 { grid-row-start: 49; } .r-50 { grid-row-start: 50; } .r-51 { grid-row-start: 51; } .r-52 { grid-row-start: 52; }
.s-1 { grid-row-end: span 1; } .s-2 { grid-row-end: span 2; } .s-3 { grid-row-end: span 3; } .s-4 { grid-row-end: span 4; } .s-5 { grid-row-end: span 5; } .s-6 { grid-row-end: span 6; } .s-7 { grid-row-end: span 7; } .s-8 { grid-row-end: span 8; } .s-9 { grid-row-end: span 9; } .s-10 { grid-row-end: span 10; } .s-11 { grid-row-end: span 11; } .s-12 { grid-row-end: span 12; } .s-13 { grid-row-end: span 13; } .s-14 { grid-row-end: span 14; } .s-15 { grid-row-end: span 15; } .s-16 { grid-row-end: span 16; } .s-17 { grid-row-end: span 17; } .s-18 { grid-row-end: span 18; } .s-19 { grid-row-end: span 19; } .s-20 { grid-row-end: span 20; } .s-21 { grid-row-end: span 21; } .s-22 { grid-row-end: span 22; } .s-23 { grid-row-end: span 23; } .s-24 { grid-row-end: span 24; } .s-25 { grid-row-end: span 25; } .s-26 { grid-row-end: span 26; } .s-27 { grid-row-end: span 27; } .s-28 { grid-row-end: span 28; } .s-29 { grid-row-end: span 29; } .s-30 { grid-row-end: span 30; } .s-31 { grid-row-end: span 31; } .s-32 { grid-row-end: span 32; } .s-33 { grid-row-end: span 33; } .s-34 { grid-row-end: span 34; } .s-35 { grid-row-end: span 35; } .s-36 { grid-row-end: span 36; } .s-37 { grid-row-end: span 37; } .s-38 { grid-row-end: span 38; } .s-39 { grid-row-end: span 39; } .s-40 { grid-row-end: span 40; } .s-41 { grid-row-end: span 41; } .s-42 { grid-row-end: span 42; } .s-43 { grid-row-end: span 43; } .s-44 { grid-row-end: span 44; } .s-45 { grid-row-end: span 45; } .s-46 { grid-row-end: span 46; } .s-47 { grid-row-end: span 47; } .s-48 { grid-row-end: span 48; } .s-49 { grid-row-end: span 49; } .s-50 { grid-row-end: span 50; } .s-51 { grid-row-end: span 51; } .s-52 { grid-row-end: span 52; }
.cal-slot, .cal-now { grid-row-end: span 1; }
.with-unit { display: flex; align-items: center; gap: 10px; }
.with-unit input { max-width: 160px; font-variant-numeric: tabular-nums; }
.unit { color: var(--muted); font-weight: 600; }
@media (min-width: 1100px) { .split > .aside { flex: 0 1 380px; } }
.panel .upcoming a { background: var(--sheet); }
.panel .upcoming a:hover { background: var(--fjord-wash); }
.panel-action { margin-top: 14px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hair-2); padding-bottom: 8px; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
/* Vinnutími, biðlisti og færsla tíma */
.cal-slot.is-off { background: repeating-linear-gradient(135deg, #F3F6F8, #F3F6F8 5px, #EBEFF2 5px, #EBEFF2 10px); }
.cal-slot.is-off:hover { background: var(--fjord-wash); }
.cal-slot.is-drop { background: var(--fjord-soft); box-shadow: inset 0 0 0 2px var(--fjord); }
.cal-appt[draggable="true"] { cursor: grab; }
.cal-appt.is-dragging { opacity: .45; }
.cal-dragging .cal-appt:not(.is-dragging) { pointer-events: none; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 13px; font-weight: 700; }
.repeat-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.repeat-row select { width: auto; min-width: 200px; }
.repeat-count { display: inline-flex; align-items: center; gap: 8px; }
.repeat-count input { width: 84px; }
.clashes { background: var(--berry-soft); color: var(--berry-ink); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.clashes ul { margin: 6px 0 0; padding-left: 20px; }
.section-title { margin-bottom: 14px; }
.week-hours { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.wh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 4px; border-bottom: 1px solid var(--hair); }
.wh-row.has-error { background: var(--brick-soft); }
.wh-day { min-width: 170px; font-weight: 700; }
.wh-times { display: inline-flex; align-items: center; gap: 8px; }
.wh-times input { width: 150px; min-height: 42px; }
.wh-row:has(.wh-day input:not(:checked)) .wh-times, .wh-row:has(.wh-day input:not(:checked)) .wh-more { opacity: .35; }
.wh-more summary { list-style: none; display: inline; }
.wh-more summary::-webkit-details-marker { display: none; }
.wh-more[open] summary { display: none; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-tight { gap: 14px; margin-top: 16px; }
.off-list { margin-bottom: 8px; }
.off-list li { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--hair-2); }
.pick-list { margin-top: 12px; }
.month-off { display: block; font-size: 12px; font-weight: 700; color: var(--berry-ink); background: var(--berry-soft); border-radius: 8px; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wait-row { align-items: flex-start; }
.wait-row:hover { background: none; }
.wait-row .row-title { color: var(--pine); text-decoration: none; }
.wait-row .row-title:hover { text-decoration: underline; }
.wait-note { color: var(--pine-2); }
.wait-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wait-remove summary { list-style: none; font-size: 15px; }
.wait-remove summary::-webkit-details-marker { display: none; }
.wait-remove form { display: flex; gap: 6px; margin-top: 6px; }
.wait-remove input { min-height: 38px; width: 200px; }
@media (max-width: 799px) { .month-off { display: none; } .month-cell:has(.month-off) .month-dn { box-shadow: inset 0 -3px 0 var(--berry); } }
/* ---------------------------------------------------------------- Netbókun (opinber) */
body.public { background: var(--mist); }
.pub { max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; }
.pub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pub-mark { width: 52px; height: 52px; border-radius: 8px; background: var(--fjord); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px; flex: none; }
.pub-name { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0; }
.pub-meta { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.pub-card { background: var(--sheet); border-radius: 12px; padding: clamp(22px, 5vw, 40px); }
.pub-card h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 8px; }
.pub-intro { color: var(--pine-2); }
.pub-step { font-size: 17px; margin: 28px 0 12px; }
.pub-services { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pub-services a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; background: var(--mist); color: var(--pine); text-decoration: none; }
.pub-services a:hover { background: var(--fjord-wash); color: var(--pine); }
.pub-svc-meta { text-align: right; font-weight: 700; font-size: 15px; color: var(--pine-2); white-space: nowrap; }
.pub-days-wrap { display: flex; align-items: center; gap: 8px; }
.pub-days-nav { flex: none; padding: 0 10px; }
.pub-days { list-style: none; margin: 0; padding: 4px 2px; display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.pub-days a, .pub-days span.is-full { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 4px; border-radius: 8px; border: 1.5px solid var(--hair-2); text-decoration: none; color: var(--pine); }
.pub-days a:hover { border-color: var(--fjord); color: var(--pine); }
.pub-days a[aria-current] { background: var(--fjord); border-color: var(--fjord); color: #fff; }
.pub-days span.is-full { opacity: .4; border-style: dashed; }
.pd-wd, .pd-mo { font-size: 12px; font-weight: 600; }
.pd-dn { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.pub-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pub-slots a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px; background: var(--fjord-wash); color: var(--fjord-deep); font-weight: 700; font-size: 17px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pub-slots a span { font-size: 12px; font-weight: 600; color: var(--pine-2); }
.pub-slots a:hover { background: var(--fjord); color: #fff; }
.pub-slots a:hover span { color: #DCEBF2; }
.pub-summary { display: flex; flex-direction: column; gap: 2px; background: var(--fjord-wash); border-radius: 12px; padding: 14px 18px; margin: 16px 0 20px; }
.pub-done { text-align: center; }
.pub-done .pub-summary { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
.pub-done p { margin-left: auto; margin-right: auto; }
.pub-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: var(--berry-soft); color: var(--berry-ink); font-size: 30px; margin-bottom: 12px; }
.pub-icon-ok { background: var(--fjord-soft); color: var(--fjord-deep); }
.pub-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.with-prefix { display: flex; align-items: stretch; }
.with-prefix .prefix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--mist); border: 1.5px solid var(--hair-2); border-right: 0; border-radius: 8px 0 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.with-prefix input { border-radius: 0 14px 14px 0; min-width: 0; }
.section-sm { margin-top: 16px; }
/* Netbókanir (starfsfólk) */
.requests { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.request { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 12px; background: var(--mist); }
.request-main { flex: 1 1 360px; min-width: 0; }
.request-when { font-family: var(--display); font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.request-who { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.request-note { margin: 8px 0 0; color: var(--pine-2); font-style: italic; }
.request-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
@media (max-width: 599px) { .with-prefix { flex-direction: column; } .with-prefix .prefix { border-radius: 8px 14px 0 0; border-right: 1.5px solid var(--hair-2); border-bottom: 0; padding: 8px 12px; } .with-prefix input { border-radius: 0 0 14px 14px; } }
/* SMS-stillingar */
.sms-form { gap: 28px; }
.sms-block { display: flex; flex-direction: column; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.sms-block h2 { font-size: 19px; }
.sms-block > p { margin: -8px 0 0; }
.check-lg { font-size: 17px; }
.sms-when { display: flex; flex-direction: column; gap: 10px; }
.choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.choice-row input[type=radio] { width: 20px; height: 20px; accent-color: var(--fjord); margin: 0; }
.choice-row select { width: auto; min-height: 40px; }
.choice-row input[type=number] { width: 84px; min-height: 40px; }
.sms-kind { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 12px; background: var(--mist); }
.sms-kind:has(> .check input:not(:checked)) .sms-kind-text { display: none; }
.sms-kind textarea { background: var(--sheet); }
.sms-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 4px; }
.sms-bubble { max-width: 420px; background: #E7EEF9; color: #1A2433; border-radius: 12px 18px 18px 6px; padding: 10px 14px; font-size: 15px; line-height: 1.4; }
.sms-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.placeholders code { font-size: 14px; background: var(--mist); padding: 1px 6px; border-radius: 6px; }
.sms-log { gap: 0; }
.sms-log li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair-2); font-size: 15px; }
.sms-log li:last-child { border-bottom: 0; }
.sms-optout { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair-2); }
.idle-warn { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; max-width: calc(100vw - 32px); padding: 14px 18px; background: var(--pine); color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 36, 51, .25); }
.idle-warn[hidden] { display: none; }
.idle-warn p { margin: 0; }
/* Leit að skjólstæðingum */
.psearch { max-width: 820px; }
.ps-form { margin-bottom: 18px; }
.ps-box { position: relative; display: flex; align-items: center; }
.ps-box > svg { position: absolute; left: 20px; color: var(--muted); pointer-events: none; }
.ps-box input[type=search] { width: 100%; min-height: 62px; padding: 0 60px 0 56px; font-size: 19px; border-radius: 999px; border: 2px solid var(--hair-2); background: var(--sheet); box-shadow: 0 1px 2px rgba(15, 36, 51, .06); }
.ps-box input[type=search]:focus { border-color: var(--fjord); outline: 4px solid var(--fjord-soft); }
.ps-box input[type=search]::-webkit-search-cancel-button { margin-right: 4px; }
.ps-hint { position: absolute; right: 22px; font: inherit; font-size: 13px; color: var(--muted); border: 1px solid var(--hair-2); border-radius: 6px; padding: 1px 7px; background: var(--mist); }
.psearch.is-loading .ps-box > svg { color: var(--fjord); animation: ps-pulse 0.9s ease-in-out infinite; }
@keyframes ps-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .psearch.is-loading .ps-box > svg { animation: none; } }
.ps-label { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 8px 6px; text-transform: none; }
.ps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: var(--mist); color: var(--pine); text-decoration: none; border: 2px solid transparent; }
.ps-item:hover, .ps-item.is-active { background: var(--fjord-wash); color: var(--pine); }
.ps-item.is-active { border-color: var(--fjord); }
.ps-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-name { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-name mark { background: var(--berry-soft); color: inherit; border-radius: 4px; padding: 0 1px; }
.ps-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; color: var(--muted); }
.ps-side { flex: none; font-size: 14px; }
.ps-go { flex: none; color: var(--muted); display: inline-flex; }
.ps-item:hover .ps-go, .ps-item.is-active .ps-go { color: var(--fjord); }
.ps-empty { padding: 18px 20px; border: 2px dashed var(--hair); border-radius: 12px; color: var(--muted); }
.ps-new { margin-top: 14px; padding: 4px 18px; border-radius: 12px; background: var(--fjord-wash); }
.ps-new summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; color: var(--fjord-deep); }
.ps-new summary::-webkit-details-marker { display: none; }
.ps-new[open] { padding-bottom: 18px; }
.panel .psearch .ps-box input[type=search] { min-height: 50px; font-size: 16px; padding-left: 48px; padding-right: 16px; }
.panel .psearch .ps-box > svg { left: 16px; }
.panel .psearch .ps-hint, .panel .psearch .ps-side { display: none; }
.panel .psearch .ps-item { background: var(--sheet); padding: 10px 12px; }
.panel .psearch .ps-new .form-grid { grid-template-columns: 1fr; }
@media (max-width: 599px) {
  .ps-box input[type=search] { min-height: 54px; font-size: 17px; }
  .ps-hint, .ps-go { display: none; }
  .ps-item { flex-wrap: wrap; padding: 10px 12px; }
  .ps-side { flex: 1 1 100%; padding-left: 52px; }
}
.upload-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 36px 20px; border: 2px dashed var(--hair-2); border-radius: 12px; text-align: center; cursor: pointer; color: var(--pine-2); }
.upload-drop:hover, .upload-drop:focus-within { border-color: var(--fjord); background: var(--fjord-wash); }
.upload-drop input[type=file] { margin-top: 10px; font: inherit; max-width: 100%; }
.sample { background: var(--sheet); border-radius: 12px; padding: 12px 14px; font-size: 13px; overflow-x: auto; white-space: pre; }
/* Tölfræði */
.dstat-sub { font-size: 13px; color: var(--muted); min-height: 1em; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; padding: 12px 4px 0; border-bottom: 1px solid var(--hair-2); margin-bottom: 8px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar-n { font-size: 13px; font-weight: 700; color: var(--pine-2); font-variant-numeric: tabular-nums; }
.bar-col { width: 100%; max-width: 44px; border-radius: 8px 8px 2px 2px; background: var(--fjord-soft); min-height: 2px; }
.bar.is-current .bar-col { background: var(--fjord); }
.bar-m { font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.meter { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; margin-right: 8px; }
.meter-fill { display: block; height: 100%; background: var(--fjord); border-radius: 999px; }
@media (max-width: 599px) { .bars { gap: 4px; height: 180px; } .bar-n { font-size: 11px; } }
.bh-0 { height: 1%; } .bh-1 { height: 4%; } .bh-2 { height: 8%; } .bh-3 { height: 12%; } .bh-4 { height: 16%; } .bh-5 { height: 20%; } .bh-6 { height: 24%; } .bh-7 { height: 28%; } .bh-8 { height: 32%; } .bh-9 { height: 36%; } .bh-10 { height: 41%; } .bh-11 { height: 45%; } .bh-12 { height: 49%; } .bh-13 { height: 53%; } .bh-14 { height: 57%; } .bh-15 { height: 61%; } .bh-16 { height: 65%; } .bh-17 { height: 69%; } .bh-18 { height: 73%; } .bh-19 { height: 77%; } .bh-20 { height: 82%; }
.bw-0 { width: 0%; } .bw-1 { width: 5%; } .bw-2 { width: 10%; } .bw-3 { width: 15%; } .bw-4 { width: 20%; } .bw-5 { width: 25%; } .bw-6 { width: 30%; } .bw-7 { width: 35%; } .bw-8 { width: 40%; } .bw-9 { width: 45%; } .bw-10 { width: 50%; } .bw-11 { width: 55%; } .bw-12 { width: 60%; } .bw-13 { width: 65%; } .bw-14 { width: 70%; } .bw-15 { width: 75%; } .bw-16 { width: 80%; } .bw-17 { width: 85%; } .bw-18 { width: 90%; } .bw-19 { width: 95%; } .bw-20 { width: 100%; }
/* Mínar síður skjólstæðings */
.pub-card { background: var(--sheet); border-radius: 12px; padding: 30px 28px; }
.pub-card h1 { font-size: clamp(26px, 5vw, 32px); margin-bottom: 18px; }
.pub-clinic { font-weight: 700; color: var(--fjord); margin-bottom: 6px; }
.self-when { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 12px; background: var(--fjord-wash); margin-bottom: 18px; }
.self-when.is-cancelled { background: var(--mist); text-decoration: line-through; color: var(--muted); }
.self-day { font-family: var(--display); font-weight: 700; font-size: 22px; }
.self-time { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--fjord-deep); }
.self-info { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.self-info .muted { display: inline-block; min-width: 56px; }
.self-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.self-cancel { border-top: 1px solid var(--hair); padding-top: 14px; }
.self-cancel summary { cursor: pointer; font-weight: 700; color: var(--brick); list-style: none; }
.self-cancel summary::-webkit-details-marker { display: none; }
.self-note { background: var(--berry-soft); color: var(--berry-ink); border-radius: 8px; padding: 12px 16px; font-weight: 600; margin: 0; }
/* Flýtitextar */
.snips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.snip { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; background: var(--mist); border-radius: 8px; padding: 14px 16px; }
.snip-main p { color: var(--pine-2); font-size: 15px; margin-top: 4px; }
.snip-bar { position: relative; margin-top: 6px; }
.snip-open { font-size: 15px; }
.snip-pop { position: absolute; z-index: 20; left: 0; top: 28px; width: min(460px, 90vw); background: var(--sheet); border: 1px solid var(--hair-2); border-radius: 8px; box-shadow: 0 16px 40px -18px rgba(15, 36, 51, .35); padding: 10px; }
.snip-pop input[type=search] { width: 100%; min-height: 40px; margin-bottom: 8px; }
.snip-pop ul { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.snip-pop li button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--pine); cursor: pointer; }
.snip-pop li button:hover, .snip-pop li button:focus-visible { background: var(--fjord-wash); }
.snip-pop li span { font-size: 14px; color: var(--muted); }
/* Leit í sögu */
.record-search { display: flex; gap: 8px; max-width: 520px; }
.record-search input { flex: 1; min-height: 44px; }
.hits { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hits a { display: block; padding: 14px 16px; border-radius: 8px; background: var(--mist); color: var(--pine); text-decoration: none; }
.hits a:hover { background: var(--fjord-wash); }
.hit-line { display: block; font-size: 15px; color: var(--pine-2); margin-top: 6px; }
.hit-line b { color: var(--muted); font-weight: 600; }
.hits mark, .hit-line mark { background: var(--berry-soft); color: inherit; border-radius: 4px; padding: 0 1px; }
.section-sub { color: var(--muted); margin: 12px 0 0; }

/* ---------- Rukkun ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.stack > form { margin: 0; }
.stack .btn { justify-content: center; }
.charge-items { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--hair-2); }
.charge-items li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; margin: 0 -12px; border-bottom: 1px solid var(--hair-2); border-radius: 12px; transition: background .15s; }
.charge-items li.is-on { background: var(--fjord-wash); }
.charge-items label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-width: 0; }
.charge-items .ci-name { font-weight: 600; }
.charge-items .ci-price { font-size: 15px; }
.charge-items input { width: 64px; text-align: center; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: var(--fjord-deep); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.stepper-btn:hover { border-color: var(--fjord); background: var(--fjord-wash); }
.stepper-btn:disabled { opacity: .35; cursor: default; }
.charge-form.is-js .stepper input { width: 44px; border-color: transparent; background: transparent; font-weight: 700; padding-left: 0; padding-right: 0; -moz-appearance: textfield; appearance: textfield; }
.charge-form.is-js .stepper input::-webkit-outer-spin-button, .charge-form.is-js .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.free-lines { display: flex; flex-direction: column; gap: 10px; }
.free-line { display: grid; grid-template-columns: minmax(0, 1fr) 170px 92px; gap: 12px; align-items: end; }
.free-line .with-unit input { max-width: none; width: 100%; }
.free-line + .free-line { padding-top: 12px; border-top: 1px dashed var(--hair); }
.charge-form .with-unit select { width: auto; }
.charge-sum { position: sticky; top: 20px; }
.sum-lines { list-style: none; padding: 0; margin: 0 0 6px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hair-2); }
.sum-lines li.is-disc { color: var(--berry-ink); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 2px; font-weight: 600; }
.sum-total strong { font-family: var(--display); font-size: 30px; color: var(--pine); white-space: nowrap; }
.sum-vat { margin: 0 0 16px; font-size: 15px; text-align: right; }
.charge-submit { margin-top: 18px; }
.si-box { background: var(--fjord-wash); border-radius: 12px; padding: 18px 20px 8px; margin: 0 0 28px; min-width: 0; }
.si-box .section-title { margin-bottom: 12px; }
.si-box .form-grid { margin-top: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
.sum-si-row { color: var(--fjord-deep); font-weight: 600; }
.si-item summary { font-weight: 600; }
.si-item form { min-width: 200px; margin-top: 8px; }
.charge-mbar { display: none; }
@media (max-width: 900px) {
  .charge-mbar:not([hidden]) { display: flex; position: fixed; z-index: 39; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 8px; background: var(--fjord); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 8px 24px rgba(15, 36, 51, .18); }
  .charge-mbar strong { font-size: 20px; }
  .charge-form.is-js { padding-bottom: 72px; }
  .charge-mbar:hover { color: #fff; background: var(--fjord-deep); }
}
@media (max-width: 640px) {
  .free-line { grid-template-columns: minmax(0, 1fr) 96px; }
  .free-line > label:first-child { grid-column: 1 / -1; }
  .charge-sum { position: static; }
}
.balance { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.balance strong { font-size: 20px; }
.mini-list { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-list li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair-2); text-decoration: none; color: inherit; }
.mini-list li a:hover .row-title { color: var(--fjord-deep); text-decoration: underline; }
.mini-list .row-sub { display: block; }
.receipt table.lines th { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.receipt table.lines th.right, .receipt .right { text-align: right; }
.receipt table.lines td { border-bottom: 1px solid var(--hair-2); }
.receipt .paper-head .right h2 { font-size: 20px; }

/* ---------- Samþykki ---------- */
.auth.consent-main { max-width: 920px; }
.consent { background: var(--sheet); border-radius: 12px; padding: 28px clamp(18px, 4vw, 40px) 32px; }
.consent h1 { font-size: 28px; margin-bottom: 4px; }
.consent-back { margin: 0 0 14px; }
.consent-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--pine-2); text-decoration: none; }
.consent-pick { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.consent-body { background: #fff; border: 1px solid var(--hair); border-radius: 8px; padding: 20px 22px; margin: 18px 0; font-size: 17px; line-height: 1.6; max-height: 46vh; overflow-y: auto; }
.consent-doc .consent-body, .paper .consent-body { max-height: none; overflow: visible; }
.paper .consent-body { border: 0; padding: 0; font-size: inherit; }
.consent-form .check { font-size: 17px; margin: 6px 0 16px; }
.sig-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.sig-pad { display: block; width: 100%; aspect-ratio: 3 / 1; height: auto; background: #fff; border: 2px dashed var(--hair); border-radius: 8px; touch-action: none; cursor: crosshair; }
.sig-pad.is-empty { border-color: var(--brick); }
.sig-done { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 8px; }
.sig-done img { width: 100%; max-width: 360px; height: auto; border-bottom: 2px solid var(--pine); background: #fff; }
.sig-done .facts { flex: 1 1 240px; }
.mini-list .tag { flex: none; }

/* ---------- Þjónn ---------- */
.stat meter { display: block; width: 100%; height: 8px; margin-top: 10px; }
.stat-warn { background: var(--berry-soft); }
.stat-warn strong { color: var(--berry-ink); }
.callout-warn { background: var(--brick-soft); margin-bottom: 20px; }
.callout-warn h2 { color: var(--brick); }
pre.code { background: #14231f; color: #E6EFF4; border-radius: 8px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
pre.code.log { max-height: 420px; overflow-y: auto; }
.small { font-size: 13.5px; }
.pkg-list { columns: 3 180px; padding-left: 18px; margin-top: 12px; font-size: 14.5px; }
.server-actions { display: flex; flex-direction: column; gap: 14px; }
.srv-action { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--hair-2); }
.last-action { margin: 0 0 14px; }
.last-action .tag { margin-bottom: 6px; }
.server-page h2 { margin-bottom: 12px; }

/* Skráning: fótaaðgerðafræðingum vísað á Fótaskrá */
.fotaskra-note { display: none; margin: 12px 0 0; }
.field:has(#p_fotaadgerd:checked) .fotaskra-note { display: block; }

/* ---------- Valmynd í síma: flipastika neðst ---------- */
.tabbar { display: none; }
@media (max-width: 899px) {
  .side > .nav { display: none; }
  .side { flex-wrap: nowrap; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--hair); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar > a, .tab-more > summary { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; line-height: 1.1; position: relative; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar > a[aria-current="page"] { color: var(--fjord-deep); background: var(--fjord-wash); }
  .tab-more { flex: 1 1 0; min-width: 0; display: flex; }
  .tab-more > summary { list-style: none; cursor: pointer; flex: 1 1 0; }
  .tab-more > summary::-webkit-details-marker { display: none; }
  .tab-more[open] > summary { color: var(--fjord-deep); background: var(--fjord-wash); }
  .tab-more .count { position: absolute; top: 2px; right: 18%; }
  .tab-dots { display: flex; gap: 3px; height: 20px; align-items: center; }
  .tab-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .more-sheet { position: fixed; left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); max-height: calc(100vh - 140px); overflow-y: auto; background: var(--sheet); border-radius: 12px; padding: 10px; box-shadow: 0 -10px 40px rgba(15, 36, 51, .22); }
  .nav-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .nav-sheet .nav-group { display: block; grid-column: 1 / -1; padding: 10px 12px 2px; }
  .nav-sheet a { padding: 12px; font-size: 15px; border-radius: 8px; }
  .nav-sheet a[aria-current="page"] { background: var(--fjord-wash); }
  .idle-warn { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 899px) {
  .tabbar > a:nth-child(3) { flex-grow: 1.45; }
  .tab-more, .tab-more > summary { flex-grow: .8; }
  .tab-more[open]::before { content: ""; position: fixed; inset: 0; background: rgba(15, 36, 51, .28); z-index: -1; }
  .more-sheet { z-index: 1; }
}

/* ---------- Hljóð og upphleðsla ---------- */
.upload-status { display: none; font-weight: 700; color: var(--fjord-deep); margin: 4px 0 0; }
.upload.is-uploading .upload-status { display: block; }
.gallery li.is-audio { grid-column: 1 / -1; }
.thumb.audio { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--fjord-wash); border-radius: 12px; aspect-ratio: auto; }
.audio-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pine); word-break: break-all; }
.thumb.audio audio { width: 100%; }
.rec-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 12px; background: var(--berry-soft); margin: 4px 0; }
.rec-panel[hidden] { display: none; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brick); animation: recblink 1.2s infinite; }
.rec-time { font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.rec-label { color: var(--berry-ink); font-weight: 700; margin-right: auto; }
.rec-panel a { font-weight: 700; }
@keyframes recblink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.upload-buttons [hidden] { display: none; }

/* Móttaka */
@media (min-width: 1100px) { .day-grid.day-grid-rec { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "appts side"; } }
.reception-note { background: var(--fjord-wash); border-radius: 12px; padding: 16px 20px; color: var(--pine-2); }

/* ---------- Komusíða ---------- */
.vh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 6px 0 22px; }
.vh-patient { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.vh-patient .avatar { width: 52px; height: 52px; font-size: 19px; }
.vh-name { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.vh-patient:hover .vh-name { color: var(--fjord-deep); text-decoration: underline; text-underline-offset: 3px; }
.vh-sub { display: block; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.vh-nav { display: flex; align-items: center; gap: 10px; }
.vh-nav .muted { font-size: 14px; }

.visit-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 32px; align-items: start; }
@media (min-width: 1100px) { .visit-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.visit-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.visit-aside { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1100px) { .visit-aside { position: sticky; top: 16px; } }

.vdoc { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 30px clamp(18px, 3.5vw, 40px) 0; box-shadow: 0 1px 0 var(--hair), 0 18px 40px -32px rgba(15, 36, 51, .35); position: relative; overflow: hidden; }
.vdoc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--fjord); }
.vdoc.is-draft::before { background: var(--berry); }
.vdoc.is-revoked::before { background: var(--brick); }
.vdoc.is-revoked .vdoc-facts, .vdoc.is-revoked .vdoc-section { opacity: .55; }
.vdoc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vdoc-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fjord-deep); }
.vdoc-head h1 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.vdoc-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 18px 0 0; padding: 14px 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.vdoc-meta dt { font-size: 13px; color: var(--muted); }
.vdoc-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 15.5px; }
.vdoc-revoked { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--brick-soft); color: var(--brick); }
.vdoc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 4px; }
.vdoc-facts > div { background: var(--mist); border-radius: 8px; padding: 12px 16px; }
.vdoc-facts dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.vdoc-facts dd { margin: 4px 0 0; font-size: 16px; }
.vf-big { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vf-scale { display: block; }
.vf-scale meter { display: block; width: 100%; height: 6px; margin-top: 8px; }
.vdoc-section { padding: 20px 0 4px; }
.vdoc-section + .vdoc-section { border-top: 1px solid var(--hair-2); }
.vdoc-section h2 { font-size: 15px; letter-spacing: .02em; color: var(--fjord-deep); margin: 0 0 8px; }
.vdoc-text { font-size: 17.5px; line-height: 1.65; max-width: 72ch; white-space: normal; }
.vdoc-empty { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.vdoc-files { margin: 12px 0 0; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.vdoc-sign { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px calc(-1 * clamp(18px, 3.5vw, 40px)) 0; padding: 18px clamp(18px, 3.5vw, 40px); background: var(--fjord-wash); border-top: 1px solid var(--hair); }
.vdoc.is-draft .vdoc-sign { background: var(--berry-soft); }
.vdoc.is-revoked .vdoc-sign { background: var(--mist); }
.vdoc-sign > span:not(.sign-mark) { display: flex; flex-direction: column; line-height: 1.35; }
.sign-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--fjord); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; flex: none; }
.sign-mark.sign-draft { background: var(--berry); }
.sign-now { margin-left: auto; }

.vcard { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 22px clamp(16px, 3vw, 30px); }
.vcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vcard-head h2 { font-size: 20px; margin: 0; }
.vcard .upload { border: 0; padding: 0; margin: 0; background: none; max-width: none; }
.upload-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.upload-row .field { flex: 1 1 260px; margin: 0; }
.upload-help { margin-top: 10px; }
.upload-help .hint { margin: 8px 0 0; }

.vhistory { list-style: none; margin: 0 0 14px; padding: 0; position: relative; }
.vhistory::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--hair); }
.vhistory > li { position: relative; display: flex; gap: 16px; padding: 4px 0 14px; }
.vh-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--fjord); margin-top: 4px; position: relative; z-index: 1; }
.vh-dot.vh-first { border-color: var(--hair-2); }
.vh-line { margin: 0; font-size: 15.5px; }
.vh-none { margin: 2px 0 0; font-size: 14.5px; }
.vh-diff summary { font-size: 14.5px; margin-top: 2px; }
.vh-diff dl { margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.vh-diff dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.vh-diff dd { margin: 2px 0 0; display: flex; flex-direction: column; gap: 4px; }
.vh-diff del, .vh-diff ins { display: block; text-decoration: none; padding: 6px 10px; border-radius: 10px; font-size: 15px; }
.vh-diff del { background: var(--brick-soft); color: var(--brick); }
.vh-diff del::before { content: "Áður: "; font-weight: 700; }
.vh-diff ins { background: var(--fjord-wash); color: var(--fjord-deep); }
.vh-diff ins::before { content: "Eftir: "; font-weight: 700; }
@media (max-width: 599px) {
  .vh-nav { width: 100%; justify-content: space-between; }
  .vdoc { border-radius: 12px; }
  .sign-now { margin-left: 0; width: 100%; }
  .sign-now .btn { width: 100%; }
}

/* ---------- Dagatal: dráttur ---------- */
.cal-appt[data-move] { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; position: relative; }
.month-list a[data-move] { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cal-dragging, .cal-dragging * { cursor: grabbing !important; }
.cal-appt.is-dragging, .month-list a.is-dragging { opacity: .4; }
.cal-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; cursor: ns-resize; }
.cal-resize::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity .15s; }
.cal-appt:hover .cal-resize::after { opacity: .35; }
@media (pointer: coarse) { .cal-resize { height: 14px; } .cal-resize::after { opacity: .3; } }
.cal-ghost { grid-column: 1; z-index: 3; margin: 1px 6px 1px 4px; border-radius: 10px; border: 2px dashed var(--fjord); background: rgba(30, 107, 94, .14); color: var(--fjord-deep); font-weight: 700; font-size: 13px; padding: 2px 8px; pointer-events: none; font-variant-numeric: tabular-nums; }
.month-cell.is-drop { outline: 3px dashed var(--fjord); outline-offset: -3px; background: var(--fjord-wash); }
.move-bar { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: calc(100vw - 24px); padding: 14px 18px; background: var(--pine); color: #fff; border-radius: 12px; box-shadow: 0 14px 36px rgba(15, 36, 51, .35); }
.move-bar p { margin: 0; font-weight: 700; }
.move-bar .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
@media (max-width: 899px) { .move-bar { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.cal-dragging .cal-slot:hover { background: none; } .cal-dragging .cal-slot:hover::after { content: none; }

/* ---------- Mínar síður (gátt) ---------- */
.portal-login h1 { margin-bottom: 6px; }
.code-input { font-family: var(--display); font-size: 28px; letter-spacing: .3em; text-align: center; max-width: 240px; }
.portal-fine { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 8px 0; }
.portal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.portal-top h1 { font-size: clamp(28px, 6vw, 38px); margin: 0; }
.portal-sec { margin-bottom: 16px; }
.portal-sec h2 { font-size: 21px; margin: 0 0 14px; }
.portal-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.portal-sec-head h2 { margin: 0; }
.portal-appts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.portal-appts > li { background: var(--fjord-wash); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.pa-when { display: flex; flex-direction: column; gap: 2px; }
.pa-day { font-family: var(--display); font-weight: 700; font-size: 20px; }
.pa-time { font-weight: 700; font-size: 17px; color: var(--fjord-deep); }
.pa-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.pa-cancel summary { list-style: none; cursor: pointer; }
.pa-cancel summary::-webkit-details-marker { display: none; }
.pa-cancel[open] { flex-basis: 100%; }
.pa-cancel[open] form { margin-top: 12px; }
.portal-list { list-style: none; margin: 0; padding: 0; }
.portal-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--hair-2); }
.portal-list li:last-child { border-bottom: 0; }
.portal-list a { font-weight: 700; }
.portal-sms { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair-2); }
.portal-share { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: var(--fjord-wash); display: flex; flex-direction: column; gap: 6px; }
.self-portal { margin-top: 14px; }
.portal-more { margin-top: 12px; }
.portal-more summary { list-style: none; cursor: pointer; }
.portal-more summary::-webkit-details-marker { display: none; }
.portal-more[open] summary { margin-bottom: 12px; }

/* SMS: verð og lengd */
.sms-pricing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 24px; padding: 20px 22px; border-radius: 12px; background: var(--fjord-wash); }
@media (min-width: 800px) { .sms-pricing { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.sms-price-main { display: flex; flex-direction: column; gap: 4px; color: var(--pine-2); font-size: 15px; }
.sms-price-num { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--fjord-deep); }
.sms-price-rules h2 { font-size: 18px; margin: 0 0 8px; }
.sms-price-rules ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; color: var(--pine-2); }
.sms-warn { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sms-preview.is-over .sms-meta { color: var(--berry-ink); font-weight: 700; }
.sms-preview.is-over .sms-warn { color: var(--berry-ink); background: var(--berry-soft); padding: 6px 10px; border-radius: 10px; margin-top: 6px; }
.sms-est { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 0 0 6px; }

.sms-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (min-width: 800px) { .sms-top { grid-template-columns: 1fr 1fr; } }
.sms-box { border-radius: 12px; padding: 16px 18px; font-size: 15.5px; }
.sms-box h2 { font-size: 16px; margin: 0 0 6px; }
.sms-box-price { background: var(--berry-soft); border: 1px solid #F1D9A8; color: var(--pine); }
.sms-box-usage { background: var(--mist); border: 1px solid var(--hair); }
.sms-box-usage p + p { margin-top: 4px; }
.sms-pricing { grid-template-columns: minmax(0, 1fr) !important; }
.sms-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; padding: 8px 12px; background: var(--mist); border: 1px solid var(--hair); border-radius: 12px; }
.sms-bar .sms-meta { margin: 0; font-size: 14px; font-weight: 700; }
.sms-enc { font-size: 13px; color: var(--muted); }
.sms-short { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 8px; background: #EEF4FB; border: 1px solid #CFE0F3; font-size: 14.5px; }
.sms-short[hidden] { display: none; }
.sms-short em { color: var(--pine-2); }
.sms-short .btn { margin-top: 8px; }
.sms-short-seg { color: var(--muted); font-weight: 400; }
.inv-lines { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.inv-lines td { padding: 3px 8px 3px 0; border: 0; vertical-align: top; }
.inv-lines td.right { white-space: nowrap; }

/* Vöktun á Kerfisstjórn → Þjónn */
.watch-panel { margin-bottom: 20px; }
.watch-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.watch-list li { padding: 10px 14px; border-radius: 12px; border-left: 4px solid var(--warn, #C98A1B); background: rgba(201,138,27,.08); }
.watch-list li.is-crit { border-left-color: var(--bad, #B3261E); background: rgba(179,38,30,.07); }
.watch-list .muted { display: block; font-size: 13px; margin-top: 2px; }

/* Fyrstu skrefin (gátlisti nýrrar stofu) */
.onboard { margin-bottom: 24px; border: 1.5px solid var(--hair-2, #CBD3CC); }
.onboard .section-head { align-items: flex-start; }
.onboard h2 { margin-bottom: 4px; }
.onboard-bar { height: 8px; border-radius: 999px; background: rgba(30,107,94,.12); overflow: hidden; margin: 14px 0 18px; }
.onboard-bar span { display: block; height: 100%; background: var(--fjord, #1E6B5E); border-radius: 999px; }
.onboard-bar .w-0 { width: 0%; }
.onboard-bar .w-5 { width: 5%; }
.onboard-bar .w-10 { width: 10%; }
.onboard-bar .w-15 { width: 15%; }
.onboard-bar .w-20 { width: 20%; }
.onboard-bar .w-25 { width: 25%; }
.onboard-bar .w-30 { width: 30%; }
.onboard-bar .w-35 { width: 35%; }
.onboard-bar .w-40 { width: 40%; }
.onboard-bar .w-45 { width: 45%; }
.onboard-bar .w-50 { width: 50%; }
.onboard-bar .w-55 { width: 55%; }
.onboard-bar .w-60 { width: 60%; }
.onboard-bar .w-65 { width: 65%; }
.onboard-bar .w-70 { width: 70%; }
.onboard-bar .w-75 { width: 75%; }
.onboard-bar .w-80 { width: 80%; }
.onboard-bar .w-85 { width: 85%; }
.onboard-bar .w-90 { width: 90%; }
.onboard-bar .w-95 { width: 95%; }
.onboard-bar .w-100 { width: 100%; }
.onboard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.onboard-list li { display: flex; gap: 14px; align-items: flex-start; }
.onboard-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--hair-2, #CBD3CC); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.onboard-list li.is-done .onboard-check { background: var(--fjord, #1E6B5E); border-color: var(--fjord, #1E6B5E); color: #fff; }
.onboard-text { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.onboard-text .muted { flex-basis: 100%; font-size: 15px; }
.onboard-list li.is-done strong { color: var(--muted, #5B6B66); text-decoration: line-through; text-decoration-thickness: 1px; }
.onboard-list a { text-decoration: none; }
.onboard-list a strong { text-decoration: underline; text-underline-offset: 3px; }

.nowrap { white-space: nowrap; }

/* ---------- Skjólstæðingur: viðvörun og eyðublað ---------- */
.pwarn { margin: 0 0 18px; }
.pwarn.is-on { background: #FCEBE6; border: 1px solid #E9B8A8; border-radius: 12px; padding: 14px 20px; }
.pwarn-text strong { color: #8A2E12; display: block; margin-bottom: 2px; }
.pwarn-text p { margin: 0 0 4px; font-weight: 600; color: var(--pine); }
.pwarn .disclose { margin-top: 6px; }
.pwarn-hist { padding: 8px 0; border-bottom: 1px solid var(--hair-2); }
.form-section { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.form-section legend { padding: 0; margin-bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--pine); }
.form-grid-postal { grid-template-columns: 120px minmax(0, 1fr); }

/* ---------- Móttökuspjald ---------- */
body.kiosk { background: var(--fjord-wash); min-height: 100vh; min-height: 100dvh; -webkit-user-select: none; user-select: none; }
body.kiosk input, body.kiosk textarea { -webkit-user-select: text; user-select: text; }
.kiosk-main { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.kiosk-card { width: 100%; max-width: 560px; background: #fff; border-radius: 12px; padding: 36px 32px; box-shadow: 0 18px 50px rgba(15, 36, 51, .08); }
.kiosk-consent { max-width: 760px; }
.kiosk-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kiosk-card h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 10px; }
.kiosk-clinic { color: var(--fjord-deep); font-weight: 700; margin: 0 0 8px; }
.kiosk-lead { font-size: 20px; color: var(--pine-2); margin: 0 0 22px; }
.kiosk-note { color: var(--muted); margin: 14px 0 0; text-align: center; }
.kiosk-logo { width: 64px; height: 64px; border-radius: 12px; margin-bottom: 12px; }
.kiosk-kt { width: 100%; font-size: 34px; text-align: center; letter-spacing: .08em; font-variant-numeric: tabular-nums; padding: 16px; border-radius: 12px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.keypad button { height: 76px; border-radius: 12px; border: 1px solid var(--hair); background: #fff; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--pine); cursor: pointer; touch-action: manipulation; }
.keypad button:active { background: var(--fjord-soft); }
.keypad .keypad-go { background: var(--fjord); border-color: var(--fjord); color: #fff; font-size: 22px; }
.keypad .keypad-go:disabled { opacity: .4; }
.kiosk-btn { min-height: 60px; font-size: 20px; padding: 0 34px; margin-top: 18px; }
.kiosk-consent .kiosk-btn { width: 100%; justify-content: center; }
.kiosk-text { max-height: 40vh; overflow: auto; font-size: 18px; }
.kiosk-skip { margin-top: 18px; text-align: center; }
.kiosk-check { width: 88px; height: 88px; border-radius: 50%; background: var(--fjord-soft); color: var(--fjord-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.kiosk-pair-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.kiosk-pair-grid .qr { margin: 0; }
.kiosk-pair-grid > div:last-child { flex: 1 1 280px; min-width: 0; }
.pair-url { display: block; word-break: break-all; background: var(--fjord-wash); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
@media (max-width: 480px) { .kiosk-card { padding: 28px 20px; } .keypad button { height: 64px; } }

.form-pick { padding: 6px 0; border-bottom: 1px solid var(--hair-2); }
.form-text { margin: 4px 0 0 34px; }
.form-text summary { cursor: pointer; list-style: none; }
.form-text summary::-webkit-details-marker { display: none; }
.form-text .consent-body { margin: 10px 0; font-size: 15px; max-height: 320px; overflow: auto; }
.off-list .form-text { margin-left: 0; flex: 1 1 auto; min-width: 0; }
.off-list .form-text summary { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.off-list .form-text summary .linklike { font-size: 15px; }
.off-list li > form button { white-space: nowrap; }

/* ================================================================
   Klínískt útlit (2026-10). Lag ofan á grunninn: rammi, letur, form hluta.
   ================================================================ */
body { font-size: 16px; line-height: 1.55; background: var(--sheet); color: var(--pine); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; }
h2 { font-size: 19px; }
.num, td.num, .dstat-value, .t-time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--fjord); outline-offset: 2px; border-radius: 4px; }
a { color: var(--fjord); }

/* Rammi: djúpblá hliðarstika og flöt hvít örk */
.shell { background: var(--sheet); }
.side { background: var(--ink); color: #E6EDF2; flex-basis: 240px; padding: 22px 14px; position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
.sheet { margin: 0; border-radius: 0; padding: 32px clamp(18px, 3.5vw, 48px) 64px; min-height: 100vh; }
.brand { color: #fff; padding: 0 8px; }
.brand-mark { background: #fff; color: var(--ink); border-radius: 8px; width: 36px; height: 36px; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-sub { color: #9DB2C1; }
.nav { gap: 1px; }
.nav-group { color: #8299AA; font-size: 12px; padding: 18px 12px 6px; }
.nav a { border-radius: 6px; color: #C4D2DC; font-weight: 500; font-size: 15px; padding: 9px 12px; position: relative; }
.nav a svg { opacity: .75; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .10); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #6FC0DD; }
.nav .count { background: #6FC0DD; color: var(--ink); }
.me { border-top: 1px solid rgba(255, 255, 255, .10); padding-top: 16px; }
.me .avatar { background: rgba(255, 255, 255, .12); color: #fff; }
.me-name { color: #fff; font-weight: 600; }
.me-title { color: #9DB2C1; }
.me .btn-ghost { color: #C4D2DC; }
.me .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 899px) {
  .side { position: static; height: auto; flex: none; width: 100%; padding: 12px 16px; }
  .me { border-top: 0; padding-top: 0; }
  .sheet { margin: 0; border-radius: 0; padding: 22px 16px 96px; min-height: 0; }
  .nav a[aria-current="page"]::before { display: none; }
}

/* Síðuhaus með línu undir, eins og haus á eyðublaði */
.head, .greet-row { border-bottom: 1px solid var(--hair); padding-bottom: 20px; }
.head p { color: var(--muted); }
.back { font-size: 14px; font-weight: 500; color: var(--pine-2); }
.back:hover { color: var(--fjord); }
.greet h1 { font-size: clamp(28px, 3.2vw, 36px); }
.section-title { font-size: 17px; }

/* Hnappar og merki: ferköntuð, ekki pillur */
.btn { border-radius: 8px; border-width: 1px; font-weight: 600; font-size: 15px; min-height: 42px; padding: 0 18px; box-shadow: 0 1px 0 rgba(15, 36, 51, .04); }
.btn:hover { border-color: var(--pine-2); background: var(--mist); }
.btn-primary:hover { background: var(--fjord-deep); }
.btn-ghost { box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 14px; }
.btn-on { background: var(--fjord-wash); border-color: var(--fjord); color: var(--fjord-deep); }
.tag { border-radius: 4px; font-size: 13px; padding: 2px 8px; font-weight: 600; background: var(--mist); }
.chip { border-radius: 4px; font-size: 14px; }
.choice span { border-radius: 8px; border-width: 1px; min-height: 42px; font-size: 15px; padding: 0 16px; }
.scale-step span { border-radius: 6px; border-width: 1px; }
.linklike { font-weight: 500; }

/* Reitir */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=month], textarea, select {
  border-radius: 8px; border-width: 1px; font-size: 16px; min-height: 44px; padding: 10px 12px;
}
input:focus, textarea:focus, select:focus { border-color: var(--fjord); outline: 3px solid var(--fjord-soft); }
.field-label { font-weight: 600; font-size: 14px; color: var(--pine); }
.hint { font-size: 14px; }

/* Spjöld: hvít með ramma og haus */
.panel { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; }
.panel h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: -2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.start { background: var(--fjord-wash); border: 1px solid var(--fjord-soft); border-radius: var(--radius); padding: 14px 18px; }
.empty { border: 1px dashed var(--hair-2); border-radius: var(--radius); background: var(--mist); }

/* Lykiltölur */
.dstat, .stat { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); }
.dstat-label { font-size: 13px; font-weight: 500; }
.dstat-value { font-weight: 600; font-size: 28px; color: var(--ink); letter-spacing: -0.01em; }
.dstat-next { background: var(--sheet); box-shadow: inset 3px 0 0 var(--fjord); }
.dstat-warn { background: var(--sheet); box-shadow: inset 3px 0 0 var(--berry); }
.stat strong { font-weight: 600; color: var(--ink); }
.stat.lead { background: var(--ink); border-color: var(--ink); }
.stat.lead strong { color: #fff; }

/* Töflur: haus með lit, línur á milli */
.table-wrap { border: 1px solid var(--hair); border-radius: var(--radius); margin: 0; }
th { background: var(--mist); font-size: 13px; font-weight: 600; color: var(--pine-2); padding: 10px 14px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
td { padding: 12px 14px; font-size: 15px; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover td { background: #FAFCFD; }
.lines th { background: transparent; }

/* Tímalína og saga */
.t-card { background: var(--sheet); border: 1px solid var(--hair); border-radius: 8px; }
.t-card:hover { border-color: var(--fjord-soft); background: var(--fjord-wash); }
.t-now .t-card { background: var(--berry-soft); border-color: #F1D29E; }
.t-node { border-width: 2px; }
.row-link { border-radius: 8px; }

/* Tilkynningar: rönd til vinstri */
.flash, .banner, .notice, .form-error, .once { border-radius: 8px; }
.flash { font-weight: 500; box-shadow: inset 4px 0 0 currentColor; padding-left: 20px; }
.banner, .notice { box-shadow: inset 4px 0 0 var(--berry); font-weight: 500; }
.form-error { box-shadow: inset 4px 0 0 var(--brick); font-weight: 500; }

/* Skjólstæðingur: haus sjúkraskrár */
.person { border-bottom: 1px solid var(--hair); padding-bottom: 22px; }
.person .avatar { width: 64px; height: 64px; font-size: 24px; border-radius: 12px; }
.avatar { font-weight: 600; }
.pwarn.is-on { background: var(--brick-soft); border: 1px solid #F3C1BC; border-radius: var(--radius); box-shadow: inset 4px 0 0 var(--brick); }
.pwarn-text strong { color: var(--brick); }

/* Neðsta stika í síma */
.tabbar > a[aria-current="page"] { color: var(--fjord-deep); background: var(--fjord-wash); }

/* Innskráning og ytri síður */
body.bare { background: var(--mist); }
.auth-card { border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 36, 51, .06); }
.auth-brand { color: var(--ink); }
.auth-brand .brand-mark { background: var(--ink); color: #fff; }

/* Móttökuspjald */
body.kiosk { background: var(--mist); }
.kiosk-card { border: 1px solid var(--hair); border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 36, 51, .07); }
.kiosk-card h1 { font-weight: 600; }
.keypad button { border-radius: 10px; font-family: var(--text); font-weight: 500; }
.kiosk-logo { background: var(--ink); color: #fff; border-radius: 14px; }

@media (min-width: 900px) { .shell { background: linear-gradient(to right, var(--side-bg, var(--ink)) 240px, var(--sheet) 240px); } }

/* Lokaðir dagar (frídagar og lokanir stofu) */
.month-cell.is-closed { background: repeating-linear-gradient(135deg, var(--mist) 0 6px, #EAEEF2 6px 12px); }
.month-closed { color: var(--pine-2); font-weight: 600; }
.cal-closed { box-shadow: inset 4px 0 0 var(--pine-2); background: var(--mist); color: var(--pine); }
.inline-disclose { display: inline-block; }
.inline-disclose[open] { display: block; flex-basis: 100%; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 12px 14px; }

/* Matskvarðar */
.measures .section-head h2 { margin: 0; }
.measure-add[open] { flex-basis: 100%; }
.measure-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.measure-pick .muted { font-weight: 400; }
.measure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.measure-card h3 { margin: 0 0 6px; font-size: 18px; }
.measure-card h3 .muted { font-weight: 400; font-size: 15px; }
.measure-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 4px; }
.measure-now strong { font-size: 28px; line-height: 1.1; color: var(--ink); }
.measure-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.measure-row.is-off > span { color: var(--muted); text-decoration: line-through; }
.measure-row.is-off .tag { text-decoration: none; }
.mchart { display: block; width: 100%; height: auto; margin: 10px 0; }
.mchart-axis { font-size: 11px; fill: var(--muted); font-family: var(--text); }
.mchart-band { fill: var(--fjord-soft); }
.mchart-band.b0 { opacity: .25; } .mchart-band.b1 { opacity: .4; } .mchart-band.b2 { opacity: .55; } .mchart-band.b3 { opacity: .7; } .mchart-band.b4 { opacity: .85; }
.mchart-line { stroke: var(--fjord); }
.mchart-pt { fill: var(--sheet); stroke: var(--fjord); }
.mq-list { list-style: decimal; padding-left: 24px; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.mq-label { display: block; font-weight: 600; margin-bottom: 8px; }
.mq .choice span { font-size: 15px; min-height: 40px; padding: 0 14px; }
.mq-total { position: sticky; bottom: 0; background: var(--sheet); border-top: 1px solid var(--hair); padding: 12px 0; margin: 0; font-size: 18px; }
.mq-total strong { font-size: 22px; color: var(--ink); }

/* Tilvísanir */
.ref-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.ref-row .row-title, .ref-row .row-sub { flex-basis: 100%; }
.ref-row.is-off { color: var(--muted); }
.ref-meter { flex: 1 1 120px; height: 10px; }
.panel-action { margin-top: 8px; }
.panel-action[open] > summary { margin-bottom: 10px; }

/* Frídagar */
.hol-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); }

/* Óskir á biðlista */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.choices-sm { gap: 6px; }
.choices-sm .choice span { min-height: 38px; padding: 0 12px; font-size: 15px; }
.wait-edit summary { list-style: none; font-size: 15px; }
.wait-edit summary::-webkit-details-marker { display: none; }
.wait-edit[open] { align-self: stretch; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 12px 14px; text-align: left; }
.wait-edit[open] summary { margin-bottom: 8px; }

/* Stofan: yfirlit stillinga */
.hub { display: flex; flex-direction: column; gap: 32px; }
.hub-group h2 { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hub-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hub-tile:hover { border-color: var(--fjord); box-shadow: 0 2px 10px rgba(15, 36, 51, .06); color: inherit; }
.hub-tile:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
.hub-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--fjord-wash); color: var(--fjord); display: inline-flex; align-items: center; justify-content: center; }
.hub-text { flex: 1; min-width: 0; }
.hub-title { display: block; font-weight: 700; color: var(--ink); }
.hub-status { display: block; font-size: 14px; color: var(--muted); }
.hub-title .tag { font-size: 12px; vertical-align: 2px; margin-left: 4px; }
.hub-go { flex: none; color: var(--hair-2); display: inline-flex; }
.hub-tile:hover .hub-go { color: var(--fjord); }

/* Starfsfólk */
.staff-rows .row-link { align-items: center; }
.staff-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.role-list { margin: 0; }
.role-list dt { font-weight: 700; margin-top: 10px; }
.role-list dt:first-child { margin-top: 0; }
.role-list dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.acc-h { font-size: 14px; color: var(--muted); font-weight: 700; margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--hair); }
.acc-action { margin-bottom: 10px; }
.acc-action .hint { margin: 6px 0 0; font-size: 14px; }
tr.is-warn td { color: var(--brick); }
.check-list { list-style: none; padding: 0; margin: 0 0 12px; }
.check-list li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--fjord); border-bottom: 2px solid var(--fjord); transform: rotate(-45deg); }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } .staff-tags { flex-direction: column; align-items: flex-end; } }

/* ================================================================ Útlit: litur, textastærð, dökkt */
:root[data-accent="petrol"] { --fjord: #135E7C; --fjord-deep: #0C4860; --fjord-soft: #DCEBF2; --fjord-wash: #EEF5F9; }
:root[data-accent="skogur"] { --fjord: #2C6A4E; --fjord-deep: #1E4F39; --fjord-soft: #DCEDE3; --fjord-wash: #EEF6F1; }
:root[data-accent="fjola"] { --fjord: #5B4A9B; --fjord-deep: #43367A; --fjord-soft: #E6E1F4; --fjord-wash: #F3F0FA; }
:root[data-accent="hraun"] { --fjord: #3D4C5A; --fjord-deep: #2B3742; --fjord-soft: #E1E6EB; --fjord-wash: #F0F3F6; }
:root[data-accent="roe"] { --fjord: #9A3D5C; --fjord-deep: #782C46; --fjord-soft: #F4DFE6; --fjord-wash: #FAEFF3; }
:root[data-text="large"] body { zoom: 1.12; }
:root[data-text="large"] .side { height: calc(100vh / 1.12); }
:root[data-theme="dark"] { color-scheme: dark; --side-bg: #0A141C; --mist: #0F1B24; --sheet: #15232E; --ink: #E9F0F5; --pine: #D8E3EA; --pine-2: #B3C3CE; --muted: #93A7B6; --hair: #243644; --hair-2: #354B5C; --berry: #E0A23C; --berry-soft: #3A2C12; --berry-ink: #F3CD86; --brick: #D2493D; --brick-soft: #3B1A17; }
:root[data-theme="dark"][data-accent="petrol"] { --fjord: #3A8FB5; --fjord-deep: #7CC0DE; --fjord-soft: #173A4A; --fjord-wash: #132D3A; }
:root[data-theme="dark"][data-accent="skogur"] { --fjord: #3E9670; --fjord-deep: #82CBA8; --fjord-soft: #1A3B2D; --fjord-wash: #142E23; }
:root[data-theme="dark"][data-accent="fjola"] { --fjord: #7F6CC4; --fjord-deep: #B9ACEB; --fjord-soft: #2D2650; --fjord-wash: #231E3F; }
:root[data-theme="dark"][data-accent="hraun"] { --fjord: #6A7E90; --fjord-deep: #B2C1CE; --fjord-soft: #27323C; --fjord-wash: #1E2830; }
:root[data-theme="dark"][data-accent="roe"] { --fjord: #C2607F; --fjord-deep: #EBA3BA; --fjord-soft: #47202E; --fjord-wash: #381925; }
:root[data-theme="dark"] .side { background: #0A141C; }
:root[data-theme="dark"] .brand-mark { background: #E9F0F5; color: #0A141C; }
:root[data-theme="dark"] .auth-brand .brand-mark, :root[data-theme="dark"] .kiosk-logo { background: #0A141C; color: #fff; }
:root[data-theme="dark"] a:hover { color: var(--fjord-deep); }
:root[data-theme="dark"] .btn-primary:hover { color: #fff; }
:root[data-theme="dark"] .flash-error, :root[data-theme="dark"] .form-error { color: #F4A79F; }
:root[data-theme="dark"] .tag-bad { color: #F4A79F; }
:root[data-theme="dark"] .flash-info { background: #1B2A44; color: #C3D2F2; }
:root[data-theme="dark"] .stepper-btn, :root[data-theme="dark"] .consent-body, :root[data-theme="dark"] .tabbar, :root[data-theme="dark"] .vdoc, :root[data-theme="dark"] .vcard, :root[data-theme="dark"] .vh-dot, :root[data-theme="dark"] .keypad button { background: var(--sheet); color: var(--pine); }
:root[data-theme="dark"] .cal-col.is-weekend .cal-grid, :root[data-theme="dark"] .month-cell.is-weekend { background: #122029; }
:root[data-theme="dark"] tbody tr:hover td { background: #1A2A36; }
:root[data-theme="dark"] .cal-slot:nth-child(4n+3) { border-top-color: #1C2C38; }
:root[data-theme="dark"] .cal-appt:hover, :root[data-theme="dark"] .month-list li > a:hover { background: var(--fjord-wash); color: var(--pine); }
:root[data-theme="dark"] .cal-appt.a-hidden { background: repeating-linear-gradient(135deg, var(--mist), var(--mist) 6px, #1A2833 6px, #1A2833 12px); }
:root[data-theme="dark"] .cal-slot.is-off, :root[data-theme="dark"] .month-cell.is-closed { background: repeating-linear-gradient(135deg, #111E27, #111E27 5px, #172530 5px, #172530 10px); }
:root[data-theme="dark"] .cal-closed { background: #1A2833; }
:root[data-theme="dark"] .month-cell.is-closed { background: repeating-linear-gradient(135deg, #111E27 0 6px, #172530 6px 12px); }
:root[data-theme="dark"] .sms-bubble { background: #22324A; color: #DCE6F5; }
:root[data-theme="dark"] .sms-short { background: #1A2A3C; border-color: #2B4058; }
:root[data-theme="dark"] .sms-box-price { border-color: #5A4520; }
:root[data-theme="dark"] .pwarn.is-on { background: var(--brick-soft); border-color: #6B2A24; }
:root[data-theme="dark"] .pwarn-text strong { color: #F4A79F; }
:root[data-theme="dark"] .t-now .t-card { border-color: #6A4D1A; }
:root[data-theme="dark"] .stat.lead span { color: rgba(255, 255, 255, .8); }
:root[data-theme="dark"] .hub-tile:hover { box-shadow: none; }
:root[data-theme="dark"] .vdoc { box-shadow: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { color-scheme: dark; --side-bg: #0A141C; --mist: #0F1B24; --sheet: #15232E; --ink: #E9F0F5; --pine: #D8E3EA; --pine-2: #B3C3CE; --muted: #93A7B6; --hair: #243644; --hair-2: #354B5C; --berry: #E0A23C; --berry-soft: #3A2C12; --berry-ink: #F3CD86; --brick: #D2493D; --brick-soft: #3B1A17; }
  :root[data-theme="auto"][data-accent="petrol"] { --fjord: #3A8FB5; --fjord-deep: #7CC0DE; --fjord-soft: #173A4A; --fjord-wash: #132D3A; }
  :root[data-theme="auto"][data-accent="skogur"] { --fjord: #3E9670; --fjord-deep: #82CBA8; --fjord-soft: #1A3B2D; --fjord-wash: #142E23; }
  :root[data-theme="auto"][data-accent="fjola"] { --fjord: #7F6CC4; --fjord-deep: #B9ACEB; --fjord-soft: #2D2650; --fjord-wash: #231E3F; }
  :root[data-theme="auto"][data-accent="hraun"] { --fjord: #6A7E90; --fjord-deep: #B2C1CE; --fjord-soft: #27323C; --fjord-wash: #1E2830; }
  :root[data-theme="auto"][data-accent="roe"] { --fjord: #C2607F; --fjord-deep: #EBA3BA; --fjord-soft: #47202E; --fjord-wash: #381925; }
  :root[data-theme="auto"] .side { background: #0A141C; }
  :root[data-theme="auto"] .brand-mark { background: #E9F0F5; color: #0A141C; }
  :root[data-theme="auto"] .auth-brand .brand-mark, :root[data-theme="auto"] .kiosk-logo { background: #0A141C; color: #fff; }
  :root[data-theme="auto"] a:hover { color: var(--fjord-deep); }
  :root[data-theme="auto"] .btn-primary:hover { color: #fff; }
  :root[data-theme="auto"] .flash-error, :root[data-theme="auto"] .form-error { color: #F4A79F; }
  :root[data-theme="auto"] .tag-bad { color: #F4A79F; }
  :root[data-theme="auto"] .flash-info { background: #1B2A44; color: #C3D2F2; }
  :root[data-theme="auto"] .stepper-btn, :root[data-theme="auto"] .consent-body, :root[data-theme="auto"] .tabbar, :root[data-theme="auto"] .vdoc, :root[data-theme="auto"] .vcard, :root[data-theme="auto"] .vh-dot, :root[data-theme="auto"] .keypad button { background: var(--sheet); color: var(--pine); }
  :root[data-theme="auto"] .cal-col.is-weekend .cal-grid, :root[data-theme="auto"] .month-cell.is-weekend { background: #122029; }
  :root[data-theme="auto"] tbody tr:hover td { background: #1A2A36; }
  :root[data-theme="auto"] .cal-slot:nth-child(4n+3) { border-top-color: #1C2C38; }
  :root[data-theme="auto"] .cal-appt:hover, :root[data-theme="auto"] .month-list li > a:hover { background: var(--fjord-wash); color: var(--pine); }
  :root[data-theme="auto"] .cal-appt.a-hidden { background: repeating-linear-gradient(135deg, var(--mist), var(--mist) 6px, #1A2833 6px, #1A2833 12px); }
  :root[data-theme="auto"] .cal-slot.is-off, :root[data-theme="auto"] .month-cell.is-closed { background: repeating-linear-gradient(135deg, #111E27, #111E27 5px, #172530 5px, #172530 10px); }
  :root[data-theme="auto"] .cal-closed { background: #1A2833; }
  :root[data-theme="auto"] .sms-bubble { background: #22324A; color: #DCE6F5; }
  :root[data-theme="auto"] .sms-short { background: #1A2A3C; border-color: #2B4058; }
  :root[data-theme="auto"] .sms-box-price { border-color: #5A4520; }
  :root[data-theme="auto"] .pwarn.is-on { background: var(--brick-soft); border-color: #6B2A24; }
  :root[data-theme="auto"] .pwarn-text strong { color: #F4A79F; }
  :root[data-theme="auto"] .t-now .t-card { border-color: #6A4D1A; }
  :root[data-theme="auto"] .stat.lead span { color: rgba(255, 255, 255, .8); }
  :root[data-theme="auto"] .hub-tile:hover { box-shadow: none; }
  :root[data-theme="auto"] .vdoc { box-shadow: none; }
}

/* Útlitssíða */
.ui-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ui-option { position: relative; cursor: pointer; }
.ui-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ui-card { display: block; border: 2px solid var(--hair); border-radius: var(--radius); padding: 10px; background: var(--sheet); }
.ui-option input:checked + .ui-card { border-color: var(--fjord); box-shadow: 0 0 0 3px var(--fjord-soft); }
.ui-option input:focus-visible + .ui-card { outline: 3px solid var(--berry); outline-offset: 2px; }
.ui-name { display: block; font-weight: 600; margin-top: 8px; }
.ui-preview { display: flex; height: 70px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hair); }
.up-side { width: 26%; background: #0F2433; }
.up-main { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.up-line { height: 6px; border-radius: 3px; background: #DDE4EA; }
.up-line-a { width: 60%; background: var(--fjord); }
.up-line-s { width: 40%; }
.ui-preview-dark .up-side { background: #0A141C; }
.ui-preview-dark .up-main { background: #15232E; }
.ui-preview-dark .up-line { background: #2B3E4D; }
.ui-preview-dark .up-line-a { background: var(--fjord); }
.ui-preview-auto .up-main { background: linear-gradient(90deg, #fff 50%, #15232E 50%); }
.ui-swatch span { gap: 8px; }
.ui-sample { margin-top: 8px; }


/* ================================================================ Heimaæfingar */
.ex-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--mist); }
.ex-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.row-link.is-off { opacity: .6; }
.ex-group { border-bottom: 1px solid var(--hair); padding: 10px 0; }
.ex-group summary { cursor: pointer; }
.ex-lib { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.ex-current { display: flex; align-items: center; gap: 16px; }
.ex-current img { border-radius: 8px; height: auto; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex-filter { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 2; background: var(--sheet); padding: 10px 0; }
.ex-pick { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ex-item { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--sheet); }
.ex-item:has(.ex-head input:checked) { border-color: var(--fjord); box-shadow: inset 4px 0 0 var(--fjord); }
.ex-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer; }
.ex-head input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--fjord); }
.ex-title { display: flex; flex-direction: column; gap: 2px; }
.ex-dose { display: none; padding: 0 14px 14px 48px; }
.ex-item:has(.ex-head input:checked) .ex-dose { display: flex; flex-direction: column; gap: 10px; }
.ex-dose-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ex-dose .field-label { font-size: 13px; }
.ex-dose input { min-height: 40px; }
.program-bar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; margin-top: 16px; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: 0 -6px 20px rgba(15, 36, 51, .06); }
.note-box { background: var(--fjord-wash); border-radius: var(--radius); padding: 12px 16px; }
.ex-list { list-style: none; counter-reset: ex; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ex-card { counter-increment: ex; display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--sheet); }
.ex-card h2, .ex-card h3 { margin: 0 0 4px; font-size: 18px; }
.ex-card h2::before, .ex-card h3::before { content: counter(ex) ". "; color: var(--fjord); }
.ex-card p { margin: 0 0 6px; }
.ex-img { width: 140px; height: auto; border-radius: 8px; flex: none; }
.ex-dose-line { font-weight: 700; color: var(--fjord-deep); }
.ex-note { font-style: italic; color: var(--pine-2); }
.copy-line code { display: block; word-break: break-all; font-size: 14px; background: var(--mist); padding: 8px 10px; border-radius: 6px; user-select: all; }
.adherence { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 4px 0 10px; }
.adh { height: 22px; border-radius: 4px; background: var(--mist); border: 1px solid var(--hair); }
.adh.is-on { background: var(--fjord); border-color: var(--fjord); }
.ex-public { max-width: 720px; }
.ex-done { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); text-align: center; }
.ok-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fjord-deep); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 18px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--fjord); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
@media (max-width: 640px) {
  .ex-dose { padding-left: 14px; }
  .ex-dose-grid, .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-card { flex-direction: column; }
  .ex-img { width: 100%; }
}
@media print { .ex-card { break-inside: avoid; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 10px 0; } .ex-img { width: 110px; } }
.ex-public-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media print {
  body.public { background: #fff; }
  .pub-card { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .pub-foot, .no-print { display: none !important; }
}

/* Prufutíma lokið / hlé */
.gate { max-width: 560px; margin: 8vh auto; text-align: center; }
.gate-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: var(--fjord-wash); color: var(--fjord); margin-bottom: 12px; }
.gate .actions { justify-content: center; }
.sub-card { border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px; background: var(--sheet); box-shadow: inset 4px 0 0 var(--berry); }
.sub-card.sub-ok { box-shadow: inset 4px 0 0 var(--fjord); }
.sub-card h2 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.sub-price { font-size: 18px; margin: 14px 0; }
.sub-price strong { font-size: 30px; color: var(--ink); }
.hol-list-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.kv-wide { grid-template-columns: max-content 1fr; }
.kv-wide dd { text-align: left; }

/* ================================================================ Forskráning */
.intake { max-width: 760px; }
.intake-form { display: flex; flex-direction: column; gap: 18px; }
.intake-measure, .intake-consent { border-top: 1px solid var(--hair); padding-top: 18px; }
.intake-measure h2, .intake-consent h2 { font-size: 20px; margin: 0 0 8px; }
.intake-consent .consent-body { max-height: 260px; }
.answers dt { font-weight: 700; margin-top: 16px; }
.answers dd { margin: 4px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.iq-list { padding-left: 20px; margin: 0 0 12px; }
.iq-list li { margin-bottom: 6px; }
.iq-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.iq-row.is-off { opacity: .55; }
.iq-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.portal-todo { box-shadow: inset 4px 0 0 var(--berry); }

/* ================================================================ Bréf og vottorð */
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tpl-card { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: inherit; padding: 16px 18px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--sheet); cursor: pointer; }
.tpl-card:hover { border-color: var(--fjord); }
.tpl-card strong { color: var(--ink); }
.tpl-blank { border-style: dashed; }
.letter-body { font-family: var(--text); line-height: 1.6; min-height: 360px; }
.letter-paper { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px 28px; }
.letter-text { white-space: normal; line-height: 1.65; }
.letter-sign { margin-top: 28px; font-weight: 600; }
.letter-title { font-size: 20px; margin: 18px 0 12px; }
.letter-draft { color: var(--brick); font-weight: 700; letter-spacing: .06em; }
.letter-signature { margin-top: 36px; }
.letter-signature .sig-line { width: 240px; border-bottom: 1px solid currentColor; height: 36px; margin: 0 0 6px; }
.section-sm { margin-top: 12px; }
