﻿@font-face {
  font-family: Figtree;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  --wine: #4a1226;
  --wine-dark: #350d1b;
  --hop-red: #f72e54;
  --hop-red-dark: #d81f42;
  --hop-cream: #fff8e7;
  --ink: #282828;
  --muted: #6b6b6b;
  --line: #dedede;
  --paper: #ffffff;
  --ok: #1a8f4c;
  --ok-bg: #e8f5ec;
  --ok-line: #a8d9b9;
  --warn: #b06b00;
  --warn-bg: #fff6e0;
  --warn-line: #e8c877;
  --danger: #c0271e;
  --danger-bg: #fdeceb;
  --danger-line: #f0b4ad;
  --radius: 15px;
  --barh: 58px;
}

.bar {
  background: var(--wine) !important;
}

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin: 0 0 12px;
  border: 1px solid var(--line); border-left: 4px solid var(--muted);
  border-radius: 12px; font-size: 14px;
}
.alert-error { border-color: var(--danger-line); border-left-color: var(--danger); background: var(--danger-bg); color: #8c1d16; font-weight: 600; }
.alert-warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-bg); color: #6b4a00; }
.alert-ok { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-bg); color: #13502c; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: var(--wine);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav { display: flex; gap: 2px; flex-wrap: wrap; margin-right: auto; }
.topnav a {
  padding: 7px 12px; border-radius: 9999px; font-size: 14px; font-weight: 600;
  color: #fff; text-decoration: none; opacity: .85; white-space: nowrap;
}
.topnav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.navToggle { display: none; }

@media (max-width: 860px) {
  .navToggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; flex: none;
    border: 1px solid rgba(255,255,255,.35); border-radius: 10px;
    background: transparent; color: #fff; font: inherit; font-size: 17px; line-height: 1; cursor: pointer;
  }
  .navToggle[aria-expanded="true"] { background: rgba(255,255,255,.16); }
  .topnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 6px 12px 14px;
    background: var(--wine); box-shadow: 0 14px 24px rgba(0,0,0,.22);
  }
  .topnav.open { display: flex; }
  .topnav a { padding: 12px 14px; font-size: 15px; opacity: 1; border-radius: 10px; }
  .topnav a:active { background: rgba(255,255,255,.18); }
  .bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .wordmark { font-size: 18px; }
  .ideaBtn { margin-right: 0; padding: 6px 11px; }
  .who { font-size: 13px; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
}
@media (max-width: 430px) {
  .who { display: none; }
}

.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.wordmark:hover { text-decoration: underline; }
.who { font-size: 15px; opacity: 0.9; }

.narrow {
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  max-width: 520px;
  margin: 0 auto;
}

.wide {
  padding: 20px 18px max(28px, env(safe-area-inset-bottom));
  margin: 0 auto;
}
@media (min-width: 900px) { .wide { padding: 32px 40px 48px; } }

h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.lead { margin: 0 0 20px; color: var(--muted); }

.stack { display: grid; gap: 10px; }
.stack label { color: var(--muted); font-size: 15px; }

input {
  width: 100%;
  padding: 15px 16px;
  min-height: 52px;
  font: inherit;
  font-size: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

#code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; letter-spacing: 0.3em; }

input:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(74, 18, 38, 0.14);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 9999px;
  background: var(--wine);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 15px 30px;
  min-height: 52px;
  cursor: pointer;
}

.btn:active { background: var(--wine-dark); }

.error {
  color: var(--danger);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff4f6;
}

.notice {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--hop-cream);
}

.notice.ok { border-color: var(--ok); background: #f2fbf5; }
.notice-title { font-size: 18px; font-weight: 700; }
.notice .lead { margin: 8px 0 0; }

.devcode {
  color: var(--muted);
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

h2 { font-size: 20px; letter-spacing: -0.01em; margin: 28px 0 10px; }
.dim { color: var(--muted); font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  resize: vertical;
}

textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(74,18,38,.14); }

.btn-small { padding: 10px 20px; min-height: 42px; font-size: 15px; display: inline-block; text-decoration: none; }

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.tscroll > table { min-width: 100%; }
.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid .slod { word-break: break-all; }
.grid th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.grid td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid a { color: var(--ink); font-weight: 600; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 9999px; font-size: 13px; font-weight: 600; background: var(--hop-cream); }
.tag-approved { background: #e6f6ec; color: #1a8f4c; }
.tag-sent { background: #eef1f5; color: var(--muted); }

.preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.preview-head { padding: 14px 16px; background: var(--hop-cream); border-bottom: 1px solid var(--line); }
.preview-subject { font-weight: 700; }
.preview-pre { color: var(--muted); font-size: 14px; margin-top: 2px; }
.preview-body { padding: 16px; }

.mail-intro { margin: 0 0 16px; }
.mail-offer { padding: 14px 0; border-top: 1px solid var(--line); }
.mail-offer a { color: var(--ink); text-decoration: none; }
.mail-offer img { width: 100%; border-radius: 10px; display: block; margin-bottom: 8px; }
.mail-title { font-weight: 600; }
.mail-price { margin-top: 4px; }
.mail-disc { color: var(--hop-red); font-weight: 600; margin-left: 8px; }

.offers { list-style: none; padding: 0; margin: 0; }
.offers li { padding: 10px 0; border-bottom: 1px solid var(--line); }

.daybar { display: flex; align-items: stretch; gap: 8px; margin-bottom: 18px; }
.daynav { flex: none; width: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; font-size: 18px; cursor: pointer; color: var(--muted); text-decoration: none; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 0; }

.day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 4px; border: 2px solid var(--ink); border-radius: 12px;
  text-decoration: none; color: var(--ink); background: var(--paper); min-height: 62px;
}
.day-name { font-weight: 700; font-size: 14px; }
.day-date { font-size: 12px; color: var(--muted); }
.day-draft { border-color: #3f7fe0; color: #3f7fe0; }
.day-draft .day-date { color: #3f7fe0; }
.day-approved { border-color: var(--ok); color: var(--ok); }
.day-approved .day-date { color: var(--ok); }
.day-current { border-color: var(--wine); background: var(--wine); color: var(--paper); box-shadow: 0 2px 10px rgba(74,18,38,.3); }
.day-current .day-date, .day-current .day-name { color: var(--paper); }
@media (max-width: 560px) {
  .daybar { gap: 4px; }
  .daynav { width: 30px; font-size: 15px; }
  .days { gap: 4px; }
  .day { padding: 8px 2px; min-height: 56px; }
  .day-name { font-size: 12px; }
  .day-date { font-size: 10px; }
}

.split { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (min-width: 900px) { .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }

.editor { display: grid; gap: 10px; align-content: start; }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--hop-cream); }
.btn-ghost:active { background: var(--hop-cream); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions .btn { flex: 0 1 auto; padding: 11px 18px; min-height: 44px; font-size: 15px; text-align: center; text-decoration: none; line-height: 22px; }
.actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .actions .btn { flex: 1 1 45%; padding: 11px 8px; } }
.kvlink { flex-basis: 100%; font-size: 14px; color: var(--ok); text-decoration: none; }
.sendstate { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border: 1px solid; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.sendstate.is-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.sendstate.is-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.sendstate input { padding: 10px 12px; min-height: 44px; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.dash { display: grid; gap: 16px; }
.dashbar {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 -16px; padding: 10px 16px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.rangechips { display: flex; gap: 6px; flex-wrap: wrap; }
.rchip {
  padding: 7px 14px; border-radius: 9999px; font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--paper);
}
.rchip:hover { background: var(--hop-cream); }
.rchip.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.dashdates { display: flex; align-items: center; gap: 6px; }
.dashdates input {
  padding: 7px 12px; min-height: 36px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 9999px; background: var(--paper); color: var(--ink);
}
.dashdates .btn { min-height: 38px; padding: 8px 16px; }
.dashrange { min-width: 230px; cursor: pointer; text-align: center; }

/* Dagatalið erfir reitastíla appsins og þá verða mánaðarvalið og ártalið hærri en
   hausinn sem þau sitja í, svo þau klippast. Hér eru þau færð aftur í sitt eigið mál. */
.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-months .flatpickr-month { height: 44px; }
.flatpickr-calendar .flatpickr-current-month {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0; font-size: 15px;
}
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month .numInputWrapper,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  width: auto; height: auto; min-height: 0; padding: 2px 4px; margin: 0;
  font-size: 15px; line-height: 1.3;
  border: 0; border-radius: 6px; background: transparent; color: inherit;
}
.flatpickr-calendar .flatpickr-current-month .numInputWrapper { width: 62px; }
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month { height: 44px; padding: 12px 10px; }
.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
  background: var(--wine); border-color: var(--wine); color: #fff;
}
.flatpickr-calendar .flatpickr-day.inRange {
  background: var(--hop-cream); border-color: var(--hop-cream); color: var(--ink);
  box-shadow: -5px 0 0 var(--hop-cream), 5px 0 0 var(--hop-cream);
}
.dashdash { font-size: 13px; color: var(--muted); }
.dashcmp { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.dashcmplabel { font-size: 12px; color: var(--muted); }
.dashsync { font-size: 12px; color: var(--muted); }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 14px 16px; }

.sp {
  position: relative; display: inline-block; vertical-align: middle; margin-left: 5px;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--muted); font-size: 0; font-weight: 600; line-height: 15px;
  text-align: center; cursor: pointer; user-select: none;
}
.sp::before { content: "☰"; font-size: 10px; line-height: 15px; }
.sp:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

.spyrjaPanel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(440px, 92vw);
  background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: -6px 0 28px rgba(0,0,0,.18);
  transform: translateX(102%); transition: transform .22s ease-out;
  padding-top: 58px;
}
@media (max-width: 700px) { .spyrjaPanel { padding-top: 104px; } }
.spyrjaPanel:has(.spyrjaBox) { transform: none; }
.spyrjaPanel.lokad { transform: translateX(102%); }
.spyrjaBox { display: flex; flex-direction: column; height: 100%; padding: 16px 18px; gap: 12px; }
.spyrjaHead { display: flex; align-items: center; gap: 12px; }
.spyrjaClose { margin-left: auto; border: 0; background: none; cursor: pointer; padding: 0 2px; }
.spyrjaSaga { position: relative; }
.spyrjaSaga summary {
  cursor: pointer; list-style: none; user-select: none;
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 9999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.spyrjaSaga summary::-webkit-details-marker { display: none; }
.spyrjaSaga summary::after { content: " ▾"; color: var(--muted); }
.spyrjaSaga[open] summary { background: var(--hop-cream); }
.spyrjaListi {
  position: absolute; top: 30px; left: 0; z-index: 20;
  width: 290px; max-height: 320px; overflow-y: auto;
  padding: 6px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.spyrjaListi a {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--ink); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.spyrjaListi a:hover { background: var(--hop-cream); }
.spyrjaListi a.on { background: var(--wine); color: #fff; }
.spyrjaNy { font-size: 12.5px; font-weight: 600; color: var(--wine); text-decoration: none; }
.spyrjaKort { align-self: center; width: 100%; max-width: 340px; }
.spyrjaCard { max-height: 180px; overflow: hidden; }
.spyrjaCard.open { max-height: 44vh; overflow-y: auto; }
.spyrjaCard > * { margin: 0; }
.spyrjaCard .chart, .spyrjaCard .chartswitch, .spyrjaCard script { display: none; }
.spyrjaShot { display: block; width: 100%; height: auto; margin-top: 8px; border-radius: 10px; }

.tier {
  position: relative; display: inline-block; min-width: 16px; padding: 1px 5px;
  border-radius: 5px; font-size: 10.5px; font-weight: 700; line-height: 1.5;
  text-align: center; vertical-align: 1px; color: #fff; background: var(--muted);
  cursor: help;
}
.tier::after {
  content: attr(data-hjalp);
  position: absolute; top: 22px; left: 0; z-index: 60;
  width: 240px; padding: 9px 12px;
  background: var(--ink); color: #fff;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: 0;
  text-align: left; white-space: normal; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .13s ease-out, transform .13s ease-out, visibility .13s;
}
.tier:hover::after { opacity: 1; visibility: visible; transform: translateY(0); }
.tier[data-hjalp] { cursor: pointer; }
.tier[data-hjalp]::after { content: attr(data-hjalp); }
.tier:not([data-hjalp])::after { display: none; }
.hjalp[data-hjalp], .mark[data-hjalp] { position: relative; cursor: pointer; }
.hjalp[data-hjalp]::after, .mark[data-hjalp]::after {
  content: attr(data-hjalp);
  position: absolute; top: 22px; left: 0; z-index: 60;
  width: 260px; padding: 9px 12px;
  background: var(--ink);
  color: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: 0;
  text-align: left; white-space: normal; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .13s ease-out, transform .13s ease-out, visibility .13s;
}
.mark[data-hjalp]::after { width: 160px; content: attr(data-hjalp); }
.hjalp[data-hjalp]:hover::after, .mark[data-hjalp]:hover::after { opacity: 1; visibility: visible; transform: translateY(0); }

/* Hover tooltips are dead weight on a touch screen and they are wider than the phone is.
   Hidden with visibility they still take their 160 to 330 pixels of layout, which is what
   dragged the whole page sideways. */
@media (max-width: 860px) {
  .hjalp[data-hjalp]::after, .mark[data-hjalp]::after, .hjalpbox, .sp::after { display: none; }
}
.tier-A { background: #1a8f4c; }
.tier-B { background: #2f6f9f; }
.tier-C { background: #7a4fa3; }
.tier-D { background: #8a6b74; }

.nsrates { margin: 0 0 14px; display: grid; gap: 2px; }
.nsrates > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nsrates > div:last-child { border-bottom: 0; }
.nsrates dt { color: var(--muted); }
.nsrates dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }

.toplist li.morerow { display: block; position: relative; height: 0; padding: 0; border-bottom: 0; }
.toplist li.morerow .topMore {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  margin: 0; background: var(--paper);
}
.topMore {
  display: inline-block; margin-top: 2px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 9999px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.topMore:hover { background: var(--hop-cream); }
.topModal { width: min(680px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.topHead { display: flex; align-items: center; gap: 12px; }
.topHead input { flex: 1; min-height: 44px; padding: 10px 14px; font-size: 15px; }
.topDates { font-size: 12px; color: var(--muted); white-space: nowrap; }
.topSorts { display: flex; gap: 6px; margin-bottom: 12px; }
.topSum { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.toplist.topAll { max-height: 56vh; overflow-y: auto; }
.spyrjaMore {
  display: block; margin: 6px auto 0; padding: 3px 0; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--wine); cursor: pointer;
}
.spyrjaMore:hover { text-decoration: underline; }
.spyrjaClose { font-size: 24px; line-height: 1; color: var(--muted); text-decoration: none; }
.spyrjaClose:hover { color: var(--wine); }
.spyrjaBox .chatLog { flex: 1; max-height: none; }
.spyrjaBox .chatForm { margin: 0; }
.batchlist li { position: relative; cursor: help; }
.hjalpbox {
  position: absolute; top: 22px; left: 60px; z-index: 60;
  width: 330px; padding: 12px 14px;
  background: var(--ink); color: #fff;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  font-size: 12.5px; line-height: 1.45; text-transform: none; letter-spacing: 0;
  opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .13s ease-out, transform .13s ease-out, visibility .13s;
}
.batchlist li:hover .hjalpbox { opacity: 1; visibility: visible; transform: translateY(0); }
.hjalphaus { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.hjalphaus strong { font-size: 14px; }
.hjalphaus span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #cbbfc2; }
.hjalpdagar { color: #cbbfc2; font-size: 11.5px; margin-bottom: 9px; }
.hjalpraðir { margin: 0; display: grid; gap: 3px; }
.hjalpraðir > div { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; border-top: 1px solid rgba(255,255,255,.12); }
.hjalpraðir dt { color: #cbbfc2; }
.hjalpraðir dd { margin: 0; font-variant-numeric: tabular-nums; }
.hjalpnoshow dt, .hjalpnoshow dd { color: #ffc9b0; font-weight: 600; }
.sp::after {
  content: attr(data-hjalp);
  position: absolute; top: 26px; left: 50%; margin-left: -140px; z-index: 60;
  width: 280px; padding: 13px 15px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.10);
  font-size: 13px; font-weight: 400; line-height: 1.55; letter-spacing: 0;
  text-align: left; white-space: normal; text-transform: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .13s ease-out, transform .13s ease-out, visibility .13s;
}
.sp:hover::after { opacity: 1; visibility: visible; transform: translateY(0); }
.kpis .kpi:first-child .sp::after { left: 0; margin-left: 0; }
.kpis .kpi:last-child .sp::after { left: auto; right: 0; margin-left: 0; }
@media (max-width: 700px) {
  .sp::after { width: 230px; margin-left: -115px; }
}
.kpilabel { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.kpivalue { font-size: 22px; font-weight: 700; line-height: 1.25; margin-top: 4px; white-space: nowrap; }
.kpifoot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpinote { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.yoy { font-size: 13px; font-weight: 700; }
.yoy-up { color: var(--ok); }
.yoy-down { color: var(--danger); }

.card { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 16px 18px; }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.card h4 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.chart { width: 100%; height: 320px; }
.dashsplit { display: grid; gap: 16px; }
@media (min-width: 980px) { .dashsplit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.toplist, .maillist, .tickerlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toplist li, .maillist li, .tickerlist li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px;
  align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.toplist li:last-child, .maillist li:last-child, .tickerlist li:last-child { border-bottom: 0; }
.topqty { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 42px; text-align: center; }
.topname, .mailsubject, .tickname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topname a, .topmeta a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line); }
.topname a:hover, .topmeta a:hover { color: var(--wine); border-bottom-color: var(--wine); }
.mailsubject { color: var(--ink); }
.topmeta { grid-column: 2; font-size: 12px; color: var(--muted); }
.tiercell { grid-column: 1; text-align: center; }
.topframl { grid-column: 3; text-align: right; white-space: nowrap; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topval, .mailval, .tickval { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.toplist.tight li { padding: 6px 0; }
.mailday, .tickwhen { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 46px; }
.mailorders { grid-column: 2; font-size: 12px; color: var(--muted); }
.tickbuyer { grid-column: 2; font-size: 12px; color: var(--muted); }
.tickbuyer.new { color: var(--ok); font-weight: 600; }
.toplist .empty, .maillist .empty, .tickerlist .empty { color: var(--muted); font-style: italic; }
.nsrow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.catlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.catlist li { position: relative; display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.catlist li:hover .cathjalp { opacity: 1; visibility: visible; transform: translateY(0); }
.cathjalp { top: 26px; left: 190px; width: 340px; }
.cathjalp .hjalpraðir dt { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.cathjalp .hjalpraðir dd { color: #cbbfc2; white-space: nowrap; }
.catname { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catbar { height: 12px; border-radius: 6px; background: #efeaea; overflow: hidden; }
.catbar i { display: block; height: 100%; max-width: 100%; background: var(--wine); }
.catval { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; font-size: 14px; }
.catmeta { grid-column: 2 / span 2; font-size: 12px; color: var(--muted); }

.batchleg { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.legpast, .legnext { display: inline-block; width: 22px; height: 9px; border-radius: 5px; flex: none; }
.legpast { background: var(--wine); }
.legnext { background: repeating-linear-gradient(45deg, #b09a9f, #b09a9f 4px, #cdbdc1 4px, #cdbdc1 8px); }
.legnext { margin-left: 10px; }
.batchlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.batchlist li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: 13px; }
.batchmonth { white-space: nowrap; }
.batchmonth { color: var(--muted); font-variant-numeric: tabular-nums; }
.batchbar { position: relative; height: 10px; border-radius: 6px; background: #efeaea; overflow: hidden; }
.batchbar i { display: block; height: 100%; max-width: 100%; background: var(--wine); }
.batchbar u { position: absolute; top: -2px; width: 2px; height: 14px; border-radius: 1px; }
.midgildi { background: var(--ink); }
.midgildily { background: #b09a9f; }
.legmid, .legmidly { display: inline-block; width: 2px; height: 12px; border-radius: 1px; flex: none; }
.legmid { background: var(--ink); }
.legmidly { background: #b09a9f; margin-left: 10px; }
.batchlist li.coming .batchbar i { background: repeating-linear-gradient(45deg, #b09a9f, #b09a9f 4px, #cdbdc1 4px, #cdbdc1 8px); }
.batchval { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.batchcount { grid-column: 2 / span 2; font-size: 11px; color: var(--muted); }
.dashnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 24px; }

.labhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.labhead h2 { margin: 0; font-size: 20px; }
.labswitch { margin-left: auto; font-size: 13px; color: var(--muted); }
.labsec { font-size: 15px; color: var(--muted); margin: 26px 0 10px; }

.queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qitem { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.qitem.open { border-color: var(--wine); box-shadow: 0 2px 14px rgba(74,18,38,.16); }
.qrow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 14px; padding: 14px 16px; align-items: center; }
.qident { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qname { font-weight: 700; font-size: 16px; }
.qwhy { grid-column: 1; color: var(--muted); font-size: 14px; }
.qfacts { grid-column: 1; color: var(--muted); font-size: 13px; }
.qdo { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: 8px; align-items: center; }
.queue.tight .qrow { padding: 11px 14px; }

.qpanel { display: none; border-top: 1px solid var(--line); padding: 16px; background: var(--hop-cream); }
.qitem.open .qpanel { display: block; }
.qpanel h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.qcols { display: grid; gap: 18px; }
@media (min-width: 820px) { .qcols { grid-template-columns: 1fr 1fr; } }
.qline { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.qcontact { margin: 0; font-size: 14px; color: var(--muted); }
.qnums { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.qmake { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.qout { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.qoutlabel { font-size: 13px; color: var(--muted); min-width: 92px; }
.qnote { display: flex; gap: 8px; margin-top: 12px; }
.qnote input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: 14px; }

.labsplit { display: grid; gap: 16px; align-items: start; }
@media (min-width: 980px) { .labsplit { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
.picklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.pickrow { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 10px; background: var(--paper); cursor: pointer; }
.pickrow:hover { background: var(--hop-cream); }
.pickrow.on { border-left-color: var(--wine); background: var(--hop-cream); }
.pickname { font-weight: 600; font-size: 15px; }
.pickwhy { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.labside { position: sticky; top: 12px; }
.sidecard { display: none; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 18px; }
.sidecard.on { display: block; }
.sidetop { display: flex; align-items: center; gap: 8px; }
.sidetop h3 { margin: 0; font-size: 18px; }

.today { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.today li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 12px; background: var(--paper); }
.today li .btn { margin-left: auto; }
.todayempty { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.markcard { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 16px; }
.markident { display: flex; align-items: center; gap: 8px; }
.markident h3 { margin: 0; font-size: 18px; }
.markdo { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.commentbox { display: flex; gap: 8px; align-items: flex-start; }
.commentbox textarea { flex: 1; min-width: 0; padding: 10px 12px; font-size: 15px; font-family: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); resize: vertical; }
.commentbox .btn { flex: none; min-height: 44px; }
@media (max-width: 560px) { .commentbox { flex-wrap: wrap; } .commentbox .btn { flex: 1 1 100%; } }
#reviewStatus { margin-top: 4px; }
.rlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rlist li { padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--wine); border-radius: 10px; background: var(--paper); font-size: 14px; }
.rwho { font-weight: 600; }
.rcomment { margin-top: 6px; white-space: pre-wrap; color: var(--muted); }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(40, 40, 40, .6); display: flex; flex-direction: column; }
.overlay[hidden] { display: none !important; }
.overlay-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--paper); font-weight: 600; }
.overlay-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.overlay-bar .btn { flex: none; padding: 8px 16px; min-height: 38px; font-size: 14px; }
.overlay iframe { flex: 1; width: 100%; border: 0; background: var(--hop-cream); }

#gjs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 84vh; min-height: 660px; }
#gjs .gjs-one-bg { background-color: var(--paper); }
#gjs .gjs-two-color { color: var(--ink); }
#gjs .gjs-four-color, #gjs .gjs-four-color-h:hover { color: var(--hop-red); }
#gjs .gjs-pn-btn.gjs-pn-active { color: var(--hop-red); box-shadow: none; }
#gjs .gjs-block { border-radius: 10px; font-size: 12px; }
#gjs.side-closed .gjs-pn-views-container { display: none; }
#gjs.side-closed .gjs-cv-canvas { width: 100%; }
@media (max-width: 899px) {
  #gjs { height: 68vh; min-height: 440px; }
  #gjs .gjs-cv-canvas { width: 100%; }
  #gjs .gjs-pn-views-container { width: 66%; box-shadow: -6px 0 16px rgba(40, 40, 40, .18); }
  #gjs .gjs-pn-views { width: 66%; }
  #gjs .gjs-pn-options { right: 66%; }
  #gjs .gjs-block { font-size: 11px; }
}

.crmsplit { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1040px) { .crmsplit { grid-template-columns: minmax(0, var(--crmleft, 420px)) minmax(0, 1fr); } }
.crmleft { min-width: 0; position: relative; }
/* Breidd vinstri dálksins er dregin til með handfanginu og man sig í vafranum. */
.crmdrag { display: none; }
@media (min-width: 1040px) {
  .crmdrag {
    display: block; position: absolute; top: 0; bottom: 0; right: -13px; width: 10px;
    cursor: col-resize; border-radius: 4px;
  }
  .crmdrag:hover, .crmdrag.dreg { background: var(--line); }
}
.crmright { min-width: 0; display: flex; align-items: flex-start; gap: 14px; }
#vendorPanel { flex: 1 1 auto; min-width: 0; }
#saleSlide:empty { display: none; }
@media (min-width: 1040px) {
  .crmright { position: sticky; top: calc(var(--barh) + 12px); max-height: calc(100vh - var(--barh) - 24px); overflow-y: auto; }
}
/* Á mjóum skjá stafla dálkarnir sér, svo spjaldið lenti neðan við allan listann.
   Það leggst nú yfir skjáinn og × í horninu skilar manni aftur í listann. */
@media (max-width: 1039px) {
  .crmright:has(.vcard) {
    position: fixed; left: 0; right: 0; top: var(--barh); bottom: 0; z-index: 90;
    display: block; margin: 0; padding: 0; background: var(--paper); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .crmright:has(.vcard) .vendorpanel { border: 0; border-radius: 0; min-height: 100%; }
}
.vendorpanel { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 4px 16px 16px; min-height: 160px; }
.vendorempty { padding: 24px 4px; }

.side { min-width: 0; }
.side h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.side h3 + .plist { margin-bottom: 22px; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plist li {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font-size: 14px; min-width: 0;
}
.plist li.dragging { opacity: .4; }
.plist a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist a:hover { text-decoration: underline; }
.plist button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 16px; padding: 2px 6px; border-radius: 6px; flex: none; min-width: 28px; }
.plist button:hover { background: var(--hop-cream); color: var(--ink); }
.ph { cursor: grab; color: var(--muted); flex: none; }
.plist li.empty { color: var(--muted); font-style: italic; border-style: dashed; }
#inMail li { border-color: var(--hop-red); touch-action: none; }
#inMail .pick { flex: 1; }
#inMail .ph { padding: 4px 6px; touch-action: none; user-select: none; }

.days-14 { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; }
.days-14 .day { padding: 7px 2px; min-height: 66px; }
.days-14 .day-name { font-size: 12px; }
.days-14 .day-date { font-size: 10px; }
.day-marks { display: flex; gap: 3px; align-items: center; margin-top: 3px; min-height: 16px; }
.mark { font-size: 10px; line-height: 16px; padding: 0 5px; border-radius: 8px; }
.mark-task { background: var(--wine); color: #fff; font-weight: 700; }
.mark-exp { background: #f0a020; color: #fff; font-weight: 700; }
.mark-mail { color: var(--muted); }
@media (max-width: 899px) { .days-14 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } }

.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.pill { font-size: 12px; padding: 4px 11px; border-radius: 10px; background: var(--hop-cream); color: var(--muted); white-space: nowrap; text-decoration: none; }
a.pill:hover { box-shadow: 0 0 0 2px rgba(247, 46, 84, .25); }
.pill-bidum { background: #fde8ec; color: var(--hop-red-dark); font-weight: 600; }
.pill-ferli, .pill-fundur { background: #e8f6ed; color: var(--ok); font-weight: 600; }
.pill-virkur { background: #e9f0fb; color: #3f7fe0; }
.pill-hafnad, .pill-lokad { background: var(--paper-2, #f2f2f2); text-decoration: line-through; }

.tier { font-size: 11px; font-weight: 700; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 6px; flex: none; background: var(--hop-cream); color: var(--muted); }
.tier-A { background: var(--hop-red); color: #fff; }
.tier-B { background: #3f7fe0; color: #fff; }
.tier-C { background: var(--ok); color: #fff; }

.vlist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.vlist > li {
  display: grid; gap: 6px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); font-size: 14px; min-width: 0;
}
.vlist > li:has(> .vlink) { padding: 0; }
.vlist > li:has(> .vlink):hover { border-color: var(--wine); }
.vlink { display: grid; gap: 6px; padding: 10px 12px; color: inherit; text-decoration: none; }
.vlink:hover .vname { text-decoration: underline; }
.vrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vname { color: var(--ink); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vname:hover { text-decoration: underline; }
.vwhy, .vmeta { font-size: 13px; color: var(--muted); }
.vwhy { color: var(--muted); }
.crm-mail { margin-left: auto; font-size: 13px; color: var(--muted); max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-mail:hover { color: var(--wine); }
@media (max-width: 899px) { .crm-mail { margin-left: 0; max-width: 100%; } }

.vcard { margin: 8px 0 2px; padding: 0; display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vhead h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.vhead .vmeta { display: flex; align-items: center; gap: 8px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; font-size: 14px; }
.lbl { display: block; font-size: 12px; color: var(--muted); }
.vnote { margin: 0; padding: 12px 14px; background: var(--hop-cream); border-radius: 12px; font-size: 14px; }
.vform { display: grid; gap: 14px; }
.vform > label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.vform input[type=text], .vform input:not([type]) { font-size: 16px; padding: 12px 14px; }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.chips legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 7px; float: left; width: 100%; }
.chips input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.chips label {
  display: inline-block; padding: 9px 16px; border-radius: 19px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 14px; line-height: 20px; user-select: none;
}
.chips label:hover { border-color: var(--wine); }
.chips input:checked + label { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 600; }
.chips input:focus-visible + label { box-shadow: 0 0 0 3px rgba(247, 46, 84, .3); }
.fdate { width: auto; padding: 8px 12px; font-size: 14px; margin-left: 4px; }
.fsave { display: flex; justify-content: flex-end; }
.fsave .btn { padding: 12px 34px; min-height: 46px; }
.vsale { margin: 0; padding: 12px 14px; background: var(--paper); border-radius: 12px; font-size: 15px; line-height: 1.5; }
.vsales { width: 100%; border-collapse: collapse; font-size: 13px; }
.vsales td { padding: 5px 8px; border-top: 1px solid #f0e4c4; color: var(--muted); }
.vsales tr:first-child td { border-top: 0; color: var(--ink); }
.vs-date { white-space: nowrap; width: 92px; }
.vs-name { color: var(--ink); }
.vs-num { text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .vs-name { display: none; } }

.vtimeline { max-height: 188px; overflow-y: auto; background: var(--paper); border-radius: 12px; padding: 2px 12px; }
.alist { list-style: none; padding: 0; margin: 0; display: grid; font-size: 14px; }
.alist li { display: grid; grid-template-columns: 92px 96px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.alist li:first-child { border-top: 0; }
.alist .aold { color: var(--muted); font-style: italic; }
.adate, .akind { color: var(--muted); font-size: 13px; }
.arecent .atext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alive li { grid-template-columns: minmax(0,1fr) auto; }
@media (max-width: 560px) { .alist li { grid-template-columns: 1fr; gap: 2px; } }

select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit;
}
select:focus { outline: none; border-color: var(--wine); }

.chat { display: grid; gap: 12px; width: min(680px, 86vw); }
.chatLog { display: flex; flex-direction: column-reverse; gap: 10px; max-height: 58vh; overflow-y: auto; padding: 2px; }
.msg { padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.msg-user { white-space: pre-wrap; }
.msg-advisor > :first-child { margin-top: 0; }
.msg-advisor > :last-child { margin-bottom: 0; }
.msg-advisor p { margin: 0 0 9px; }
.msg-advisor ul, .msg-advisor ol { margin: 0 0 9px; padding-left: 20px; }
.msg-advisor li { margin: 2px 0; }
.msg-advisor strong { color: var(--hop-red-dark); }
.msg-user { background: var(--wine); color: #fff; align-self: flex-end; max-width: 82%; border-bottom-right-radius: 4px; }
.msg-advisor { background: var(--paper); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; max-width: 92%; border-bottom-left-radius: 4px; }
.msg-villa { background: #fdf0ef; border: 1px solid #e8b4ae; color: #8a2b22; align-self: flex-start; max-width: 92%; border-bottom-left-radius: 4px; }
.msg-advisor { position: relative; }
.msgFlag { position: absolute; right: 7px; bottom: 5px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 17px; text-align: center; text-decoration: none; opacity: 0; transition: opacity .15s; }
.msg-advisor:hover .msgFlag, .msgFlag:focus { opacity: 1; }
.msgFlag:hover { border-color: #e8b4ae; background: #fdf0ef; color: #8a2b22; }
.kvortunBox { max-width: 520px; }
.kvortunSvar { max-height: 22vh; overflow: auto; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14px; line-height: 1.55; color: var(--muted); }
.askGraf { align-self: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 4px; }
.askGrafNafn { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.askEchart { width: 100%; height: 220px; }
.askVal {
  align-self: flex-end; max-width: 88%; margin: 0;
  border-left: 3px solid var(--wine); background: var(--hop-cream); color: var(--ink);
  border-radius: 4px 12px 12px 4px; padding: 8px 12px; font-size: 13px; font-style: italic;
}
.selAsk {
  position: absolute; z-index: 95; width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--wine); border-radius: 50%; background: var(--wine); color: #fff;
  font-size: 13px; line-height: 26px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.selAsk:hover { background: var(--wine-dark); }
.toolBox { align-self: flex-start; max-width: 100%; }
.toolLine {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 2px 6px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--muted); font-style: italic; text-align: left;
}
.toolLine::before { content: "▸"; font-style: normal; font-size: 10px; }
.toolBox.opin .toolLine::before { content: "▾"; }
.toolCount { font-style: normal; font-size: 11px; background: var(--hop-cream); color: var(--muted); border-radius: 10px; padding: 1px 7px; }
.toolSteps { display: none; margin: 2px 0 6px; padding: 0 0 0 20px; list-style: decimal; }
.toolBox.opin .toolSteps { display: block; }
.toolSteps li { font-size: 12px; color: var(--muted); margin: 3px 0; }
.toolSteps code { display: block; margin-top: 2px; max-height: 120px; overflow: auto; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--ink); background: var(--hop-cream); border-radius: 4px; padding: 3px 6px; white-space: pre-wrap; word-break: break-word; }
.toolArg { font-style: normal; color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.chatForm { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.chatForm textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; resize: vertical;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.chatForm textarea:focus { outline: none; border-color: var(--hop-red); }
.chatForm .btn { min-height: 46px; padding: 12px 24px; }
@media (max-width: 560px) {
  .chat { width: 100%; }
  .chatLog { max-height: 52vh; }
}

.hkdeal {
  --hk-red: #f72e54; --hk-yellow: #ffc700; --hk-cream: #fff8e7;
  --hk-ink: #282828; --hk-grey: #898989;
  margin: 14px 0 4px; background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid #ececec; box-shadow: 0 2px 10px rgba(0,0,0,.07); position: relative;
}
.hkdeal-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(40,40,40,.82); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px;
}
.hkdeal-img { position: relative; background: var(--hk-cream); aspect-ratio: 16 / 9; }
.hkdeal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hkdeal-noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--hk-grey); font-size: 13px;
}
.hkdeal-badge {
  position: absolute; right: 12px; bottom: 12px; background: var(--hk-red); color: #fff;
  font-size: 19px; font-weight: 800; padding: 7px 13px; border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hkdeal-body { padding: 16px 18px 20px; color: var(--hk-ink); }
.hkdeal-title { margin: 0 0 3px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.hkdeal-provider { margin: 0 0 13px; color: var(--hk-grey); font-size: 14px; }
.hkdeal-prices { display: flex; align-items: baseline; gap: 11px; margin-bottom: 13px; }
.hkdeal-was { color: var(--hk-grey); text-decoration: line-through; font-size: 15px; }
.hkdeal-now { color: var(--hk-red); font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.hkdeal-buy {
  background: var(--hk-yellow); color: var(--hk-ink); text-align: center; font-weight: 700;
  padding: 12px; border-radius: 10px; font-size: 16px; margin-bottom: 15px; cursor: default;
}
.hkdeal-desc { margin: 0 0 4px; font-size: 15px; line-height: 1.6; }
.hkdeal-section { margin-top: 15px; padding-top: 13px; border-top: 1px solid #eee; }
.hkdeal-section h3 { margin: 0 0 5px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--hk-grey); }
.hkdeal-section p { margin: 0; font-size: 14px; line-height: 1.6; }
.hkdeal-why { background: var(--hk-cream); margin: 15px -18px -20px; padding: 13px 18px 16px; border-top: 1px solid #f0e4c4; }

.crmcol { max-width: 1240px; }
.crmrule {
  border: 0; border-top: 2px solid var(--line); margin: 34px 0 26px;
  position: relative; overflow: visible;
}
.crmrule::after {
  content: ""; position: absolute; left: 0; top: -2px; width: 70px;
  border-top: 2px solid var(--hop-red);
}
.chatBusy {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--muted); font-style: italic; padding: 10px 2px;
}
.dots { display: inline-flex; gap: 4px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--hop-red);
  animation: chatdot 1.1s infinite ease-in-out both;
}
.dots i:nth-child(2) { animation-delay: .16s; }
.dots i:nth-child(3) { animation-delay: .32s; }
@keyframes chatdot {
  0%, 80%, 100% { opacity: .6; transform: scale(.9); }
  40% { opacity: 1; transform: scale(1); }
}

/* --- spjald v3 --- */
.vtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 28px 0; }
.vident { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vident h2 { margin: 0; font-size: 21px; letter-spacing: -0.02em; }
.vchip { font-size: 11px; padding: 3px 9px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.vecon { font-size: 13px; color: var(--muted); margin: 6px 0 0; padding: 0 28px; }
.vecon strong { color: var(--ink); }
.vcold { font-size: 13px; color: #c05a2a; margin: 6px 0 0; padding: 0 28px; }
.vclose { font-size: 22px; line-height: 1; color: var(--muted); text-decoration: none; padding: 0 4px; }
.vclose:hover { color: var(--hop-red); }
.vcontact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13px; margin: 12px 0 18px; padding: 0 28px; }
.sOpen { text-decoration: none; font-size: 14px; margin-left: 6px; }
.vsechBtn { float: right; margin-top: -4px; }
.sendDlg { display: grid; gap: 12px; }
.sendDlg h3 { margin: 0; font-size: 18px; }
.sendTo { margin: 0; font-size: 13px; color: var(--muted); }
.sendSpa { margin: 0; padding: 9px 11px; border-radius: 9px; background: var(--hop-cream); font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.sendLabel { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.sendSubject, .sendBody { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); width: 100%; }
.sendBody { line-height: 1.55; resize: vertical; }
.sendShot { max-height: 40vh; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sendActs { display: flex; gap: 10px; align-items: center; }
.vfetch { margin: 0 28px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 13px; }
.vfetchHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vfetchClose { font-size: 20px; line-height: 1; color: var(--muted); text-decoration: none; }
.vfetchWarn { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fdf0ef; border: 1px solid #e8b4ae; color: #8a2b22; line-height: 1.5; }
.vfetchText { margin: 0 0 10px; color: var(--ink); line-height: 1.55; }
.vfetchBusy { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.vfetchList { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.vfetchList dt { color: var(--muted); font-size: 12px; }
.vfetchList dd { margin: 0; word-break: break-word; }
.vfetchFoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 12px; }
.vfetchDo { font-weight: 600; color: var(--wine); }
/* Sölupanellinn rennur inn frá hægri inni í spjaldinu sjálfu, svo textinn um
   fyrirtækið þjappast í staðinn fyrir að hverfa undir yfirlagi. */
.slide {
  width: min(420px, 46vw); max-height: calc(100vh - var(--barh) - 24px); overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: -8px 0 24px rgba(0,0,0,.06);
  padding: 14px 16px 28px;
  animation: slideIn .16s ease-out;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 1040px) { .slide { width: 100%; max-height: none; } }
.slideHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.slideHead h3 { margin: 0; font-size: 18px; }
.slideClose { font-size: 24px; line-height: 1; color: var(--muted); text-decoration: none; }
.sHead { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 22px 0 8px; }
/* Hjálparboxið miðast við táknið og færi út fyrir mjóa panelinn til vinstri, þar sem
   hann klippir það af. Hér opnast það inn á við frá tákninu. */
.slide .sp::after { left: 0; right: auto; margin-left: 0; width: min(300px, 78vw); }
.slide .sp::before { left: 0; margin-left: 0; }
.sTotals, .sOffers { width: 100%; border-collapse: collapse; font-size: 13px; }
.sTotals th, .sOffers th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; text-align: right; padding: 4px 6px; }
.sTotals th:first-child, .sOffers th:first-child { text-align: left; }
.sTotals td, .sOffers td { padding: 5px 6px; text-align: right; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sTotals td:first-child, .sOffers td:first-child { text-align: left; }
.sProfit td { font-weight: 700; color: var(--wine); }
.sName { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sDim { color: var(--muted); }
.sChart { width: 100%; height: 220px; }
.sVouchers { font-size: 13px; line-height: 1.6; margin: 0; }
.sThemes { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.sThemes li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.vthemes { position: relative; display: inline-block; }
.vthemes > summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  font-size: 12px; color: var(--muted); padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.vthemes > summary::-webkit-details-marker { display: none; }
.vthemes > summary::after { content: " ▾"; }
.vthemes[open] > summary { border-color: var(--wine); color: var(--wine); }
.vthemeBox {
  position: absolute; z-index: 40; top: 100%; left: 0; margin-top: 4px; min-width: 190px;
  display: grid; gap: 7px; padding: 9px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.vthemeBox label { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.2; white-space: nowrap; cursor: pointer; padding: 0; margin: 0; }
.vthemeBox input[type="checkbox"] { width: 15px; height: 15px; min-width: 15px; margin: 0; accent-color: var(--wine); }
.pillDrop { position: relative; display: inline-block; }
.vstatusDrop { vertical-align: middle; }
.vstatusDrop > summary { cursor: pointer; }
.pillDrop > summary { list-style: none; cursor: pointer; }
.pillDrop > summary::-webkit-details-marker { display: none; }
.pillDrop > summary::after { content: " ▾"; }
.pillList {
  position: absolute; z-index: 45; top: 100%; left: 0; margin-top: 4px; min-width: 210px;
  display: grid; padding: 6px; gap: 1px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.pillList a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 9px; border-radius: 7px; font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pillList a:hover { background: var(--hop-cream); color: var(--wine); }
.pillCount { color: var(--muted); font-variant-numeric: tabular-nums; }
.vthemeSoon { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pill-thema { background: var(--hop-cream); border-color: var(--wine); color: var(--wine); }
.thlist { display: grid; gap: 2px; margin-top: 14px; }
.throw { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .8fr .9fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.throw:nth-child(odd) { background: var(--paper); }
.thhead { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: none; }
.thname { font-weight: 600; }
.thdim { color: var(--muted); }
.throw input { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.throw input[type="number"] { width: 60px; }
@media (max-width: 860px) { .throw { grid-template-columns: 1fr 1fr; } .thhead { display: none; } }
.vcopy {
  border: 1px solid var(--line); background: var(--paper); border-radius: 7px;
  width: 26px; height: 24px; padding: 0; margin-left: 2px;
  font: inherit; font-size: 13px; line-height: 1; color: var(--muted); cursor: pointer;
}
.vcopy:hover { color: var(--wine); border-color: var(--wine); }
.vcopy.afritad { color: var(--ok); border-color: var(--ok); }
.vweb {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  font-size: 12.5px; color: var(--muted); text-decoration: none;
}
.vweb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vweb:hover { color: var(--wine); }
.vaddr { font-size: 12.5px; color: var(--muted); }
.vmissing { color: #c05a2a; }
.vmissing::before { content: "⚠ "; }

.vaction { margin-top: 0; }
.vform { display: grid; gap: 12px; padding: 18px 28px; margin-top: 16px; border-top: 1px solid var(--line); background: var(--hop-cream); }
.vfline { width: 100%; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.vfnote { width: 100%; font: inherit; font-size: 15px; line-height: 1.45; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); resize: vertical; }
.vfnote:focus { outline: none; border-color: var(--wine); }
.vform > button { justify-self: start; }
/* Leiðbeiningin stendur fyrir ofan reitinn og kennir sniðið: þrjár spurningar,
   dæmi um hvern hluta og undir því hverju hann svarar. */
.vfhint { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 4px; }
.vfhint span { display: grid; gap: 2px; }
.vfhint b { font-size: 14px; font-weight: 700; color: var(--wine); }
.vfhint em { font-size: 13px; font-style: normal; color: var(--ink); }
.vfhint i { font-size: 11px; font-style: normal; color: var(--muted); }
.vfrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.vflabel { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
           text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.chips-tight { gap: 5px; }
.chips-tight label { padding: 5px 11px; font-size: 12.5px; line-height: 17px; border-radius: 14px; }
.vfnext, .vfstatus { display: flex; align-items: center; gap: 8px; }
.vfnext .vflabel, .vfstatus .vflabel { margin-bottom: 0; white-space: nowrap; }
.vfstatus select { font-size: 13px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.vform .btn { min-height: 38px; padding: 9px 18px; border-radius: 10px; font-size: 14px; }
.btn-dark { background: var(--wine); }
.btn-dark:hover, .btn-dark:active { background: var(--wine-dark); }
.vfagents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 0 28px 18px; border-bottom: 1px solid var(--line); }
.vfagents .btn { min-height: 36px; padding: 8px 13px; border-radius: 9px; font-size: 13px; }
.vfhint { font-size: 12px; color: var(--muted); }
.btn-outline { background: var(--paper); color: var(--hop-red); border: 1.5px solid var(--hop-red); }
.btn-outline:hover { background: #fff0f3; }
.btn-blue { color: #3b6ea5; border-color: #3b6ea5; }
.btn-blue:hover { background: #eef3f8; }
.btn-blue-solid { background: #3b6ea5; }
.btn-blue-solid:hover, .btn-blue-solid:active { background: #2f5a86; }
.btn-ok { background: var(--paper); color: #2c7a44; border: 1.5px solid #2c7a44; }
.btn-off { background: #f0f0f0; color: #a8a8a8; cursor: not-allowed; }

.vsec { border-top: 1px solid var(--line); padding: 16px 28px; }
.vsech { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em;
         text-transform: uppercase; color: var(--muted); }
.vsync { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.charthead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.charthead h3 { margin: 0; }
.chartswitch { display: flex; gap: 6px; }
.chartchip { font-size: 12px; padding: 4px 11px; border-radius: 12px; text-decoration: none;
             color: var(--muted); background: var(--paper); border: 1px solid var(--line); }
.chartchip:hover { border-color: var(--wine); color: var(--wine); }
.chartchip.on { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 600; }
.chart-tip { position: relative; min-width: 210px; padding: 11px 13px; background: var(--ink);
             border-radius: 11px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.chart-tip-day { font-size: 15px; font-weight: 700; color: #fff; }
.chart-tip-date { font-size: 11.5px; color: #cbbfc2; margin-bottom: 7px; }
.chart-tip-row { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; color: #fff; padding: 2px 0; }
.chart-tip-name { color: #cbbfc2; }
.chart-tip-ask { margin-right: 6px; font-weight: 400; color: #cbbfc2; cursor: pointer; }
.chart-tip-ask:hover { color: #fff; }
.chart-tip-key {
  position: absolute; top: 8px; right: 10px;
  font-size: 10px; line-height: 1; padding: 3px 5px; color: #cbbfc2;
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
}
.chart-tip:has(.chart-tip-key) .chart-tip-day { padding-right: 62px; }
.hjalpbox:has(.chart-tip-key) .hjalphaus { padding-right: 62px; }
.chart-tip-val { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.hjalp { border-bottom: 1px dotted var(--muted); cursor: help; }
.vnext { font-size: 12px; color: var(--muted); }
#filtered > * { animation: blikk .65s ease-out; }
@keyframes blikk {
  0% { background: var(--hop-cream); box-shadow: 0 0 0 6px var(--hop-cream); }
  100% { background: transparent; box-shadow: 0 0 0 6px transparent; }
}
.odlg { display: grid; gap: 14px; max-width: 560px; }
.odlg-head { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.odlg-sub { font-size: 12.5px; color: var(--muted); margin: 0; display: block; }
.odlg-form { display: grid; gap: 16px; }
.odlg-set { border: 0; padding: 0; margin: 0; display: grid; gap: 7px; }
.odlg-set > legend { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px; }
.odlg-opt { display: flex; gap: 9px; align-items: flex-start; font-size: 14px;
            padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.odlg-opt:hover { border-color: var(--wine); }
.odlg-opt input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: var(--wine); }
.odlg-set textarea { width: 100%; font: inherit; font-size: 14.5px; padding: 10px 12px;
                     border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.odlg-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.odlg-steps li::before { content: "✓ "; color: var(--ok); }
.odlg-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.odlg-price { margin: 0; font-size: 15px; }
.odlg-full { text-decoration: line-through; color: var(--muted); margin-left: 8px; }
.odlg-pct { margin-left: 8px; color: var(--ok); font-weight: 600; }
.odlg-why { font-size: 13px; color: var(--muted); }
.btn-ghost { background: var(--paper); color: var(--muted); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--danger); border-color: var(--danger-line); }
.vconfirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0; font-size: 14px; border-bottom: 1px solid #f2ecdc; }
.chatPicks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chatPickLbl { width: 100%; font-size: 12px; color: var(--muted); }
.vmore { margin-top: 10px; }
.vmore > summary { cursor: pointer; font-size: 12.5px; color: var(--muted); list-style: none; }
.vmore > summary::before { content: "▸ "; }
.vmore[open] > summary::before { content: "▾ "; }
.vmore > summary:hover { color: var(--wine); }
.vmore > *:not(summary) { margin-top: 12px; }
.vscroll { max-height: 320px; overflow-y: auto; overflow-x: auto; padding-right: 6px; }
.vdot { display: inline-block; min-width: 17px; height: 17px; line-height: 17px; margin-left: 5px;
        border-radius: 9px; background: var(--hop-red); color: #fff; font-size: 11px; text-align: center; }

.toplist li.sumrow, .maillist li.sumrow { grid-template-columns: minmax(0, 1fr) auto; }
li.sumrow { border-top: 1px solid var(--line); border-bottom: 0 !important; margin-top: 2px; }
.catlist li.sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 9px; }
.catsum .catval { font-variant-numeric: tabular-nums; }
.sumrow .topname { font-weight: 600; }
.sumrow .topval { font-weight: 700; text-align: right; }
.sumframl { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.vempty { font-size: 13.5px; color: var(--muted); margin: 4px 0; }
.mdraft { display: grid; gap: 8px; padding: 18px 28px; border-top: 1px solid var(--line); background: var(--hop-cream); }
.mdraft input, .mdraft textarea { width: 100%; font: inherit; font-size: 14.5px; padding: 10px 12px;
                                  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.mdraft textarea { line-height: 1.55; resize: vertical; }
.mdraft-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.vlive { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vlive th { text-align: left; font-weight: 400; font-size: 11px; text-transform: uppercase;
            letter-spacing: .05em; color: var(--muted); padding: 0 8px 7px 0; border-bottom: 1px solid var(--line); }
.vlive td { padding: 9px 8px 9px 0; border-bottom: 1px solid #f2ecdc; }
.vlive .n { text-align: right; white-space: nowrap; }
.vlive-d { display: block; font-size: 11.5px; color: var(--muted); }
.vlive-sum { font-size: 14px; margin: 12px 0 4px; }
.vlive-note { font-size: 12px; color: var(--muted); margin: 4px 0 0; }

.vdraft { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 16px;
          padding: 14px 0; border-bottom: 1px solid #f2ecdc; }
.vdraft-img { height: 112px; border-radius: 8px; overflow: hidden; background: #f2efe6;
              display: flex; align-items: center; justify-content: center; }
.vdraft-img img { width: 100%; height: 100%; object-fit: cover; }
.vdraft-img span { font-size: 12px; color: #b9b2a0; }
.vdraft-body h4 { margin: 7px 0 4px; font-size: 16px; }
.vbadge { display: inline-block; font-size: 10px; letter-spacing: .06em; padding: 3px 8px;
          border-radius: 5px; background: #fff3d6; color: #8a6d1f; border: 1px solid #e0c169; }
.vbadge-ok { background: #e8f3ea; color: #2c7a44; border-color: #a9d3b6; }
.vdraft-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.vdraft-why { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; }
.vdraft-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.chat-blue .chatHead { font-size: 12px; font-weight: 700; letter-spacing: .05em;
                       text-transform: uppercase; color: #3b6ea5; margin-bottom: 2px; }
.chat-blue .msg-advisor { background: #eef3f8; }
.chat-blue .msg-advisor strong { color: #2f5a86; }
.chat-blue .msg-user { background: #3b6ea5; }
.chat-blue .toolLine { color: #6b8fb5; }

@media (max-width: 860px) {
  .vform { grid-template-columns: 1fr; }
  .vfagents { grid-template-columns: 1fr; }
  .vdraft { grid-template-columns: 1fr; }
  .vdraft-img { height: 150px; }
  .vform .btn { margin-left: 0; }
}

.vsearch { display: flex; gap: 8px; margin: 0 0 20px; max-width: 520px; }
.vsearch input {
  flex: 1; font: inherit; font-size: 15px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.vsearch input:focus { outline: none; border-color: var(--hop-red); }
.olab {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 4px; margin-left: 7px; vertical-align: 2px;
}
.olab-live { background: #e8f3ea; color: #2c7a44; border: 1px solid #a9d3b6; }
.olab-codes { background: #fff3d6; color: #8a6d1f; border: 1px solid #e0c169; }
.vstale {
  background: #fdf1e3; border: 1px solid #e8c9a0; color: #8a5a1f;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; margin: 0 0 12px;
}
.vstale::before { content: "⚠ "; }
.vlive a { color: var(--ink); text-decoration: none; font-weight: 600; }
.vlive a:hover { color: var(--hop-red); text-decoration: underline; }

/* --- hugmyndir --- */
.ideaBtn {
  background: rgba(255,255,255,.18); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 16px; margin-right: 14px;
}
.ideaBtn:hover { background: rgba(255,255,255,.3); }
.idea-wrap { position: fixed; inset: 0; z-index: 9000; }
.idea-cv { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.idea-bar {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9001;
  display: flex; align-items: center; gap: 8px; background: #282828; color: #fff;
  padding: 9px 14px; border-radius: 26px; box-shadow: 0 4px 20px rgba(0,0,0,.35);
  font-family: system-ui, sans-serif; font-size: 13px; white-space: nowrap;
}
.idea-bar strong { margin-right: 6px; font-size: 13px; }
.idea-bar button {
  font: inherit; font-size: 12.5px; border: 1px solid rgba(255,255,255,.3); background: transparent;
  color: #fff; padding: 5px 12px; border-radius: 14px; cursor: pointer;
}
.idea-bar button:hover { background: rgba(255,255,255,.14); }
.idea-bar .idea-t.on { background: #f72e54; border-color: #f72e54; }
.idea-bar .idea-send { background: #ffc700; border-color: #ffc700; color: #282828; font-weight: 700; }
.idea-bar .idea-sp { width: 10px; }
.idea-bar .idea-w { display: inline-flex; gap: 2px; margin-left: 4px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.3); }
.idea-bar .idea-wb { padding: 3px 8px; line-height: 1; }
.idea-bar .idea-wb.on { background: rgba(255,255,255,.25); border-color: #fff; }
.ideaPanel {
  margin: 22px 0; padding: 16px 18px; border-radius: 14px;
  background: #f4f8fc; border: 1px solid #cfdded;
}
.ideaHead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ideaHead strong { color: #3b6ea5; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ideaView { font-size: 13px; color: #3b6ea5; }
.ideaX { margin-left: auto; font-size: 20px; color: var(--muted); text-decoration: none; }
.ideaPanel .msg-advisor { background: #eef3f8; }
.ideaPanel .msg-user { background: #3b6ea5; }

.idealist { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; max-width: 1000px; }
.idealist li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.idearow { display: flex; align-items: center; gap: 10px; }
.idearow strong { font-size: 16px; }
.idate { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.imeta { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.imeta code { background: var(--hop-cream); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.ifrom { font-weight: 600; color: var(--wine); }
a.ifrom { text-decoration: underline; }
.ibody { margin: 10px 0 0; padding: 11px 13px; background: var(--hop-cream); border-radius: 9px;
         font: inherit; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.ibadge { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px;
          border-radius: 5px; background: #eee; color: #666; }
.ibadge-skrad { background: #e8f3ea; color: #2c7a44; }
.ibadge-nyft { background: #fff3d6; color: #8a6d1f; }
.ibadge-kvortun { background: #fdf0ef; color: #8a2b22; }
.plangVilla {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin: 10px 0; padding: 11px 14px;
  border: 1px solid #e8b4ae; border-radius: 12px; background: #fdf0ef; color: #8a2b22;
  grid-column: 1 / -1;
}
#plangVillur .plangVilla { margin: 12px 24px 0; }
.plangVillaText { flex: 1; min-width: 180px; margin: 0; font-size: 13.5px; line-height: 1.5; }
.plangVilla details { flex-basis: 100%; order: 3; font-size: 12px; }
.plangVilla summary { cursor: pointer; color: #a8564c; }
.plangVilla pre { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff;
                  color: var(--ink); font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.plangVillaOk {
  flex: none; padding: 5px 14px; border: 1px solid #e8b4ae; border-radius: 9999px;
  background: #fff; color: #8a2b22; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.plangVillaOk:hover { background: #8a2b22; color: #fff; }
.ibanner {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 12px 24px 0; padding: 12px 16px;
  border: 1px solid #cfe3d4; border-radius: 12px; background: #eef7f0;
}
.ibannerText { flex: 1; min-width: 0; }
.ibannerText strong { display: block; font-size: 14px; color: #2c7a44; }
.ibannerText p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.ibannerChat {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #cfe3d4;
  background: #fff; color: #2c7a44; font-size: 14px; line-height: 28px; text-align: center; text-decoration: none;
}
.ibannerChat:hover { background: #2c7a44; color: #fff; }
.ibanner .btn { flex: none; }
.ideaHead { margin-bottom: 8px; }
.ideaView { font-size: 13px; color: #3b6ea5; }

/* dev */
.devwrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.devwrap:has(.devFile) { grid-template-columns: 220px minmax(0, 1.15fr) minmax(0, 0.85fr); max-width: 1600px; }
.devside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.devlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.devlist li a { display: block; padding: 6px 8px; border-radius: 4px; font-size: 13px; color: var(--ink); text-decoration: none; }
.devlist li a:hover { background: var(--paper); }
.devlist li.on a { background: var(--paper); font-weight: 600; }
.devback { font-size: 13px; color: var(--muted); }
.devmain { min-width: 0; }
.devmain h1 { font-size: 20px; margin: 0 0 14px; }
.devmain .chatLog { max-height: 70vh; }
.devmain .msg-advisor { max-width: 100%; }
.devmain .msg-advisor pre { background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; font-size: 13px; }
.devmain .msg-advisor code { font-size: 13px; }
.devsessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.devsessions li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.devtitle { display: block; font-weight: 600; }
.devmeta { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .devwrap, .devwrap:has(.devFile) { grid-template-columns: 1fr; max-width: 1180px; }
  .devside { position: static; }
}
.diff { align-self: stretch; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 12.5px; }
.diff summary { cursor: pointer; padding: 6px 10px; font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.diff pre { margin: 0; padding: 8px 10px; overflow-x: auto; line-height: 1.45; font-size: 12.5px; border-top: 1px solid var(--line); }
.diff span { display: block; white-space: pre; }
.d-add { background: #e6f4ea; color: #1b5e20; }
.d-del { background: #fdecea; color: #b71c1c; }
.d-hunk { color: #6a4fc9; }
.d-ctx { color: var(--muted); }
.devLink { color: var(--ink); font-weight: 600; text-decoration: underline dotted; }
.devSide:not(:has(.devFile)) { display: none; }
.devSide { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 760px) {
  .devSide { position: fixed; inset: 0; z-index: 900; max-height: none; border: none; border-radius: 0;
    box-shadow: -8px 0 24px rgba(0,0,0,.14); }
}
.devFileHead { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.devFileClose { font-size: 22px; line-height: 1; color: var(--muted); text-decoration: none; padding: 0 6px; }
.devCodeWrap { display: flex; align-items: flex-start; padding: 12px 0 40px; }
.devGutter { margin: 0; padding: 0 12px 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: right; user-select: none; flex: none; }
.devCode { margin: 0; padding: 0 16px 0 0; font-size: 12.5px; line-height: 1.5; overflow-x: auto; flex: 1; min-width: 0; }
.devCode code, .devCode code.hljs { font-size: 12.5px; line-height: 1.5; padding: 0; background: transparent; }
.hljs-variable { color: #b3261e; }
.hljs-bullet { color: var(--muted); }
.devMd { padding: 16px 24px 40px; max-width: 72ch; line-height: 1.6; }
.devMd pre { background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; font-size: 12.5px; }
.devMd code { font-size: 12.5px; }
.devMd table { border-collapse: collapse; font-size: 13px; }
.devMd th, .devMd td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .devSide { transition: none; } }
.msg-employee { background: #fff8e1; border: 1px solid #f1e3a6; color: var(--ink); align-self: flex-start; max-width: 100%; border-bottom-left-radius: 4px; }
.ideaFrom { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ideaNote { margin: 0 0 8px; font-style: italic; }
.ideaSummary { margin: 0 0 8px; white-space: pre-wrap; font-family: inherit; font-size: 14px; background: transparent; padding: 0; }
.doneBox { align-self: stretch; border: 1px solid #b7e0c0; background: #f1faf3; border-radius: 8px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.doneText { font-size: 14px; }
.devSideHead { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 4px; }
.devMeta { font-size: 12px; color: var(--muted); margin: 0 8px; }
.devlist .ibadge { margin-right: 4px; }
.ideaImg { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; }
.devIdeas { margin-bottom: 8px; }
.devNew { display: block; text-align: center; margin-top: 16px; }
.devSearchMini { margin: 4px 0 8px; }
.devSearchMini input { width: 100%; box-sizing: border-box; padding: 5px 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 5px; }
.devSearch { display: flex; gap: 8px; margin: 0 0 14px; max-width: 480px; }
.devSearch input { flex: 1; padding: 7px 10px; font-size: 14px; border: 1px solid var(--line); border-radius: 6px; }
.devHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.errBox { border: 1px solid var(--hop-red); border-left-width: 4px; border-radius: 6px; background: #fff5f6; padding: 10px 12px; margin: 10px 0; }
.errHead { font-size: 12px; font-weight: 600; color: var(--hop-red-dark); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.errText { font-size: 14px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

.devArchive, .devReset { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; }
.devArchive:hover, .devReset:hover { background: var(--paper); color: var(--ink); }
.devSearchMini { display: flex; gap: 6px; }
.devSearchMini button { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 5px; cursor: pointer; font-size: 15px; padding: 0 10px; color: var(--muted); }
.devSearchMini button:hover { background: var(--paper); color: var(--ink); }
.devSearchResults:not(:empty) ~ .devlist { display: none; }
.devSearchHits li.isArchived a { color: var(--muted); }
.archTag { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.devSearchEmpty { font-size: 13px; color: var(--muted); padding: 4px 8px; }
mark.devHl { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0 1px; }
.toolItem { align-self: flex-start; max-width: 100%; }
.toolItem > summary { cursor: pointer; list-style: none; }
.toolItem > summary::-webkit-details-marker { display: none; }
.toolItem[open] > summary { color: var(--ink); }
.toolBody { margin: 2px 0 6px 6px; padding: 8px 10px; border-left: 2px solid var(--line); font-size: 12px; }
.toolFn code { font-size: 12px; background: var(--paper); }
.toolLabel { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 2px; }
.toolPre { margin: 0; padding: 6px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; overflow-x: auto; max-height: 320px; overflow-y: auto; }
.shotBox { align-self: stretch; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 8px; }
.shotNote { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.shotImg { display: block; max-width: 100%; border: 1px solid var(--line); }

.pvdrop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; margin: 12px 0 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--hop-cream); cursor: pointer; text-align: center; }
.pvdrop-over { border-color: var(--hop-red); background: #fff1f4; }
.pvdropstatus { font-size: 14px; font-weight: 600; }
.pvlist { width: 100%; border-collapse: collapse; font-size: 14px; }
.pvlist th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 6px; }
.pvlist td { border-bottom: 1px solid var(--line); padding: 10px 6px; }
.pvstatus { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink); }
.pvstatus-draft { background: var(--warn-bg); color: #6b4a00; }
.pvstatus-ready { background: var(--ok-bg); color: #13502c; }
.pvstatus-error { background: var(--danger-bg); color: #8c1d16; }
.pvbusy { font-size: 15px; color: var(--muted); }
.pvwrap { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.25fr); gap: 24px; align-items: start; padding: 16px 24px; }
.pvedit h3 { margin: 24px 0 8px; }
.pvback { margin: 0 0 4px; font-size: 14px; }
.pvform { display: flex; flex-direction: column; gap: 10px; }
.pvform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; flex: 1; }
.pvform input, .pvform textarea, .pvform select, .pvvar input { font: inherit; font-weight: 400; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); width: 100%; box-sizing: border-box; }
.pvrow { display: flex; gap: 10px; }
.pvactions { display: flex; gap: 10px; margin-top: 8px; }
.pvvars { display: flex; flex-direction: column; gap: 6px; }
.pvvar { display: grid; grid-template-columns: 2fr 1fr 1fr 70px auto; gap: 6px; align-items: center; }
.pvvar-head { font-size: 12px; font-weight: 600; color: var(--muted); }
.pvvar span { display: flex; gap: 4px; }
.pvredo { display: flex; gap: 10px; align-items: center; margin-top: 24px; font-size: 13px; }
.pvsource { margin-top: 16px; font-size: 13px; }
.pvsource pre { white-space: pre-wrap; background: var(--hop-cream); padding: 12px; border-radius: 8px; max-height: 420px; overflow: auto; }
.pvpreview { position: sticky; top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.pvpreview-bar { font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pvframe { display: block; width: 100%; height: calc(100vh - 120px); border: 0; }
.pvwrap.pvdrop-over { outline: 3px dashed var(--hop-red); outline-offset: -6px; background: #fff1f4; }
.pvimgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.pvimg { position: relative; margin: 0; width: 132px; height: 96px; }
.pvimg img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.pvimg:first-child img { outline: 2px solid var(--hop-red); outline-offset: 1px; }
.pvimg-main { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 600; color: #fff; background: var(--hop-red); padding: 1px 6px; border-radius: 999px; }
.pvimg-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 6px; background: rgba(40, 40, 40, .55); border-radius: 0 0 8px 8px; opacity: 0; transition: opacity .15s; }
.pvimg:hover .pvimg-bar, .pvimg:focus-within .pvimg-bar { opacity: 1; }
.pvimg-bar button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; }
.pvimg-bar button:disabled { opacity: .35; cursor: default; }
.pvimg-bar button[value=delete]:hover { background: var(--hop-red); color: #fff; }
@media (hover: none) { .pvimg-bar { opacity: 1; } }
.pvimgs .dim { font-size: 13px; }
.pvfield { display: flex; flex-direction: column; gap: 4px; }
.pvlabel { font-size: 13px; font-weight: 600; }
.pvrte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--hop-cream); }
.pvrte-bar button { font: inherit; font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; }
.pvrte-bar button:hover { border-color: var(--ink); }
.pvrte { min-height: 320px; max-height: 70vh; overflow: auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: var(--paper); font-size: 14px; line-height: 1.5; }
.pvrte:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.pvrte h3 { font-size: 15px; margin: 14px 0 6px; }
.pvdelete { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.pvconfirm { flex-direction: column; }
.pvconfirm form { display: flex; gap: 8px; }
@media (max-width: 1100px) {
  .pvwrap { grid-template-columns: 1fr; padding: 12px; }
  .pvpreview { position: static; }
  .pvrow { flex-direction: column; }
  .pvvar { grid-template-columns: 1fr 1fr; }
}
.askChart { align-self: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 8px; }
.askChartHead { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.askBars { display: flex; align-items: flex-end; gap: 4px; height: 128px; }
.askBar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.askBar i { display: block; width: 100%; max-width: 22px; background: var(--hop-red); border-radius: 4px 4px 0 0; min-height: 2px; }
.askBar b { font-size: 10px; font-weight: 600; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.askBar span { font-size: 10px; color: var(--muted); margin-top: 4px; }
.askBar.part i { opacity: .35; }
.askDrvLegend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.askDrvLegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.askDrvLegend i:first-child { margin-left: 0; }
.askDrv { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.askDrvName { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.askDrv.up .askDrvName::after { content: " ▲"; color: var(--ok); font-size: 10px; }
.askDrv.down .askDrvName::after { content: " ▼"; color: var(--danger); font-size: 10px; }
.askDrvBars { display: grid; gap: 2px; }
.askDrvBar { display: flex; align-items: center; gap: 5px; }
.askDrvBar b { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.askDrvBar i, .askDrvLegend i { height: 8px; border-radius: 2px; min-width: 2px; }
.askDrvBar i.cur, .askDrvLegend i.cur { background: #4a1226; }
.askDrvBar i.ly, .askDrvLegend i.ly { background: #b07083; }
.askExcel { align-self: flex-start; display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 12px; border-radius: 999px; border: 1px solid #1d6f42; color: #1d6f42; background: #eef7f1; font-size: 13px; font-weight: 600; text-decoration: none; }
.askExcel span { font-weight: 400; color: var(--muted); }
.askExcel:hover { background: #1d6f42; color: #fff; }
.askExcel:hover span { color: #e6efe9; }
.askTips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; }
.askTips button { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.askTips button:hover { border-color: var(--hop-red); color: var(--hop-red-dark); }
.askHint { flex-basis: 100%; margin: 2px 0 0 4px; font-size: 12px; color: var(--muted); }
.lookup { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lookup-fields { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 8px 0; font-size: 14px; }
.lookup-fields dt { color: var(--muted); }
.lookup-fields dd { margin: 0; overflow-wrap: anywhere; }
.lookup-diff { color: var(--hop-red-dark); font-size: 13px; }
.lookup-actions { display: flex; gap: 8px; }
.lookup-actions kbd { font: inherit; font-size: 11px; opacity: .6; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 5px; }
.is-pressed { animation: keypress 450ms ease-out; }
.btn.is-pressed { animation: keypress 450ms ease-out forwards; outline: 3px solid var(--hop-red); outline-offset: 2px; }
.btn-ghost.is-pressed { background: #fde8ec; color: var(--hop-red-dark); border-color: var(--hop-red); }
.lookup:has(.is-pressed) .vrow, .lookup:has(.is-pressed) .lookup-fields, .lookup-actions:has(.is-pressed) .btn:not(.is-pressed) { opacity: .4; transition: opacity 300ms ease-out; }
@keyframes keypress {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 46, 84, .55); }
  25% { transform: scale(.92); }
  60% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(247, 46, 84, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 46, 84, 0); }
}
.pill-tillogur { background: #fff4d6; color: #8a5a00; font-weight: 600; }
@media (max-width: 600px) {
  .lookup-fields { grid-template-columns: 1fr; }
  .lookup-fields dt { margin-top: 6px; }
}
