﻿@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 {
  --header-green: #18864b;
  --hop-red: #f72e54;
  --hop-red-dark: #d81f42;
  --hop-cream: #fff8e7;
  --ink: #282828;
  --muted: #6b6b6b;
  --line: #dedede;
  --paper: #ffffff;
  --ok: #1a8f4c;
  --radius: 15px;
}

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

* { 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(--hop-red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.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(--hop-red);
  box-shadow: 0 0 0 3px rgba(247, 46, 84, 0.12);
}

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

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

.error {
  color: var(--hop-red);
  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(--hop-red); box-shadow: 0 0 0 3px rgba(247,46,84,.12); }

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

.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.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 { box-shadow: 0 0 0 3px rgba(247,46,84,.18); }
@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; }
.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; }
@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; }
}

.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(--hop-red); 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; 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;
}
.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); }
.legend { display: grid; gap: 4px; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.legend span span.tier { display: inline-block; margin-right: 6px; vertical-align: middle; }
.vwhy { color: var(--hop-red-dark); }
.crm-mail { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

.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(--hop-red); }
.chips input:checked + label { background: var(--hop-red); border-color: var(--hop-red); 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; }
@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(--hop-red); }

.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(--hop-red); 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; }
.toolLine { align-self: flex-start; font-size: 13px; color: var(--muted); font-style: italic; padding: 2px 6px; }
.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: 12px; color: var(--muted); }
.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; gap: 14px; font-size: 13px; margin-top: 2px; padding: 0 28px; }
.vmissing { color: #c05a2a; }
.vmissing::before { content: "⚠ "; }

.vaction { margin-top: 0; }
.vform { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; align-items: start; padding: 20px 28px 0; }
.vfmain { grid-column: 1; grid-row: auto; }
.vfside { grid-column: 1; grid-row: auto; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.vflabel { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
           text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.vfbox { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.vfbox input { width: 100%; border: 0; outline: none; font: inherit; font-size: 15px; background: transparent; padding: 2px 0 8px; }
.chips-tight { gap: 5px; }
.chips-tight label { padding: 5px 11px; font-size: 12.5px; line-height: 17px; border-radius: 14px; }
.vfnext { display: block; margin-top: 18px; }
.vfnext .vflabel { margin-bottom: 9px; white-space: normal; }
.vstatus { display: flex; flex-wrap: wrap; gap: 4px; }
.vfside > .btn { justify-self: start; }
.vstatus input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.vstatus label { display: block; padding: 9px 14px; border-radius: 9px; cursor: pointer;
                 border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.vstatus label:hover { border-color: var(--hop-red); }
.vstatus input:checked + label { background: var(--hop-red); border-color: var(--hop-red); color: #fff; font-weight: 600; }
.vfside > .btn { min-height: 42px; padding: 11px 20px; border-radius: 10px; font-size: 14px; }
.btn-dark { background: #282828; }
.btn-dark:hover, .btn-dark:active { background: #000; }
.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; }

.vtabs { margin-top: 0; border-top: 1px solid var(--line); padding: 0 28px; }
.vtabs > input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.vtabs > label { display: inline-block; padding: 18px 2px 12px; margin-right: 24px; cursor: pointer;
                 font-size: 13px; color: var(--muted); border-bottom: 2.5px solid transparent; }
.vtabs > label:hover { color: var(--ink); }
.vtabs > div { display: none; padding-top: 14px; }
.vpane .alist, .vscroll { max-height: 320px; overflow-y: auto; padding-right: 6px; }
.vpane .alist li:nth-child(n+4) { opacity: .68; }
.vpane .alist li:nth-child(n+8) { opacity: .5; }
.vtabs > input:nth-of-type(1):checked ~ label:nth-of-type(1),
.vtabs > input:nth-of-type(2):checked ~ label:nth-of-type(2),
.vtabs > input:nth-of-type(3):checked ~ label:nth-of-type(3) {
  color: var(--ink); font-weight: 700; border-bottom-color: var(--hop-red);
}
.vtabs > input:nth-of-type(1):checked ~ div:nth-of-type(1),
.vtabs > input:nth-of-type(2):checked ~ div:nth-of-type(2),
.vtabs > input:nth-of-type(3):checked ~ div:nth-of-type(3) { display: block; }
.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; }

.vempty { font-size: 13.5px; color: var(--muted); margin: 4px 0; }
.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; }
  .vtabs > label { margin-right: 14px; font-size: 13px; }
}

.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; }
.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; }
.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); }
