/* ════════════════════════════════════════════════════════════════
   MÄKLARGRUVAN — BRAND / KNAPPLAGER (Prowebb-look)
   ════════════════════════════════════════════════════════════════
   Förutsätter mg-tokens.css inläst FÖRST. Matchar mockupen
   knapp-jamforelse.html: en navy primär, ljusa sekundärer, vikt 900,
   radie 7px, mjuka lyft-skuggor, runda ikoner, type-cards med
   vänsterribba + prick (navy i ljus, GULD i dark).

   Använder --mg-*-PRIMITIVER (inte modulernas lokala namn som --p/--g)
   så lagret fungerar i alla moduler, även index som kör --ink/--gold.

   ARBETSDELNING I DETTA PASS:
   - FORM + LJUSA färger: ägs här (delad källa).
   - DARK-färger på .btn-p/.btn-o: lämnas till modulens egna inline
     dark-regler (navy-panel — beslut 2026-06-02). De ger redan rätt
     resultat och du har godkänt dem; formen (900/7px/42px) kommer
     ändå härifrån i båda lägena. Dark-färgerna centraliseras i (B).
   - TYPE-CARDS: full Prowebb-stil (ljus + dark) ägs här.
   ════════════════════════════════════════════════════════════════ */

 body {
      margin: 0;
      height: 100vh;
      max-height: 100vh;
      overflow: hidden;
      overscroll-behavior: none;
      overflow-anchor: none;
      color: var(--ink);
      font-family: var(--mg-font);
      line-height: 1.5;
      background:
        radial-gradient(circle at 12% 10%, rgba(201, 154, 95, .16), transparent 34rem),
        radial-gradient(circle at 88% 2%, rgba(13, 38, 63, .08), transparent 28rem),
        linear-gradient(180deg, #fffdfa 0%, var(--mg-cream) 100%);
    }


    
  * { box-sizing: border-box; }

    html {
      min-width: 320px;
      height: 100%;
      max-height: 100%;
      background: var(--mg-cream);
      overflow: hidden;
      overscroll-behavior: none;
      overflow-anchor: none;
    }

.btn-p, .btn-o, .btn-g {
  min-height: 42px;
  border-radius: 7px;
  border: 1px solid var(--mg-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-family: var(--mg-font);
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}

/* Primär — enda navy-fyllda knappen (ljust läge) */
.btn-p {
  border-color: var(--mg-navy);
  background: var(--mg-navy);
  color: #fff;
  box-shadow: 0 12px 24px rgba(13,38,63,.18);
}
.btn-p:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(13,38,63,.24); }
.btn-p:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Sekundär — ljus yta, navy text, tunn ram (ljust läge) */
.btn-o {
  background: rgba(255,255,255,.64);
  color: var(--mg-ink);
}
.btn-o:hover {
  background: #fff;
  border-color: var(--mg-line-warm);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13,38,63,.06);
}

/* Guld-accentknapp (sparsam användning) */
.btn-g {
  background: var(--mg-gold-shine);
  border-color: transparent;
  color: #fff;
}
.btn-g:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Liten variant — kombineras med färgklass (.btn-o.btn-sm etc.) */
.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.85rem;
}

/* ── TYPE-CARDS (Broschyr/Skylt-val) ──────────────────────────────
   Inert i pilot (inga type-cards där). Aktiveras när broschyr
   konverteras och dess inline-type-card-regler tas bort.
   Navy ribba/prick i ljus → GULD i dark (beslut 2026-06-02). */
.type-card {
  min-height: 52px;
  border: 1px solid var(--mg-line);
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  color: var(--mg-ink);
  position: relative;
  display: grid;
  align-content: center;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.type-card strong { font-size: 0.9rem; }
.type-card.active {
  border-color: rgba(13,38,63,.46);
  background: linear-gradient(135deg, rgba(13,38,63,.10), rgba(13,38,63,.045));
  box-shadow: inset 3px 0 0 var(--mg-navy), 0 0 0 2px rgba(13,38,63,.06);
}
.type-card.active::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--mg-navy);
}

/* Shared feedback panel */
.feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 590;
  display: block;
  background: rgba(7, 19, 32, .58);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.feedback-backdrop.open,
body.feedback-open .feedback-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.feedback-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(500px, calc(100vw - 32px));
  background: #fff;
  border: 0;
  outline: 0;
  border-radius: calc(var(--mg-radius) + 6px);
  box-shadow: var(--mg-shadow-soft);
  z-index: 600;
  overflow: hidden;
  transform: translateY(12px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), opacity .25s cubic-bezier(.4, 0, .2, 1);
}

#feedbackPanel {
  border: none !important;
  outline: none;
}

.fb-header {
  background: var(--mg-navy);
  color: #fff;
  padding: .9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.fb-header svg {
  color: inherit;
  stroke: currentColor;
  flex-shrink: 0;
}

.fb-close {
  margin-left: auto;
  background: rgba(255, 255, 255, .15);
  border: 0;
  color: inherit;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-close:hover {
  background: rgba(255, 255, 255, .3);
}

.fb-body {
  padding: 1.2rem;
}

.fb-label {
  display: block;
  margin-bottom: 3px;
  color: var(--mg-ink-soft-alt);
  font-size: .72rem;
  font-weight: 600;
}

#feedbackPanel select,
#feedbackPanel textarea {
  width: 100%;
  padding: .45rem .65rem;
  border: 1px solid var(--mg-line);
  border-radius: 7px;
  background: #fff;
  color: var(--mg-ink);
  font-family: inherit;
  font-size: .82rem;
}

#feedbackPanel select {
  margin-bottom: .65rem;
}

#feedbackPanel textarea {
  min-height: 168px;
  resize: vertical;
  margin-bottom: .75rem;
  line-height: 1.5;
}

#feedbackPanel select:focus,
#feedbackPanel textarea:focus {
  outline: none;
  border-color: var(--mg-gold);
  box-shadow: 0 0 0 3px rgba(168, 119, 66, .14);
}

.fb-send {
  width: 100%;
  border: 0;
  border-radius: var(--mg-radius);
  background: var(--mg-navy);
  color: #fff;
  padding: .68rem;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.fb-send:hover {
  background: var(--mg-navy-2);
}

.fb-ok {
  display: none;
  padding: .85rem;
  color: #16a34a;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}

.fb-err {
  display: none;
  padding: .85rem;
  color: #dc2626;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}


/* Index shell brand/header styles */
:root {
      --ink: #0d263f;
      --ink-2: #183756;
      --muted: #607086;
      --soft: #8b97a6;
      --gold: #a87742;
      --gold-2: #c99a5f;
      --gold-soft: #f4eadf;
      --cream: #fbf8f3;
      --paper: #fffdf9;
      --panel: rgba(255, 255, 255, .86);
      --line: rgba(13, 38, 63, .11);
      --line-warm: rgba(168, 119, 66, .22);
      --shadow: 0 22px 60px rgba(13, 38, 63, .10);
      --shadow-soft: 0 12px 34px rgba(13, 38, 63, .07);
      --radius: 8px;
      --font: "Inter", "Segoe UI", system-ui, sans-serif;
      --serif: "Cormorant Garamond", Georgia, serif;
    }

    a { color: inherit; }

    button, input { font: inherit; }

    .shell {
      width: min(1820px, calc(100vw - 48px));
      margin: 0 auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 253, 249, .88);
      backdrop-filter: blur(18px);
      /* Höjden mäts INKLUSIVE 1px-kanten, annars blir toppbaren 89px här och 88px
         på de sidor som laddar header.css. Speglar header.css:s box-modell så alla
         sex sidor mäter lika. */
      box-sizing: border-box;
      height: var(--mg-header-h);
      display: flex;
      align-items: center;
    }

    .topbar-inner {
      width: min(1820px, calc(100vw - 48px));
      height: var(--mg-header-h);
      margin: 0 auto;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      justify-self: start;
      min-width: 0;
    }

    .brand-mark {
      width: 46px;
      height: 46px;
      color: var(--ink);
      flex: 0 0 auto;
    }

    .brand-text {
      font-family: var(--serif);
      font-size: 32px;
      font-weight: 600;
      letter-spacing: 0;
      line-height: 1;
      white-space: nowrap;
    }

    .brand-text em {
      color: var(--gold);
      font-style: italic;
      font-weight: 500;
    }

    .nav {
      display: inline-flex;
      justify-content: flex-start;
      align-items: center;
      gap: 8px;
      justify-self: start;
    }

    .nav-link, .utility-link, .icon-button, .menu-button {
      min-height: 44px;
      border: 1px solid transparent;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      color: var(--ink);
      text-decoration: none;
      font-weight: 700;
      font-size: 14px;
      background: #fff;
      cursor: pointer;
      transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }

    .nav-link {
      padding: 0 17px;
      position: relative;
    }

    .nav-link svg, .utility-link svg, .icon-button svg, .menu-button svg { width: 19px; height: 19px; }

    .nav-link:hover, .utility-link:hover, .icon-button:hover, .menu-button:hover {
      background: #fff;
      border-color: var(--line-warm);
      transform: translateY(-1px);
      box-shadow: 0 8px 22px rgba(13, 38, 63, .06);
    }

    .nav-link.active {
      background: #fff;
      border-color: var(--line);
      box-shadow: 0 10px 28px rgba(13, 38, 63, .06);
    }

    .nav-link.active::after {
      content: "";
      position: absolute;
      left: 20px;
      right: 20px;
      bottom: -15px;
      height: 2px;
      border-radius: 2px;
      background: var(--gold);
    }

    .pilot {
      min-height: 38px;
      padding: 0 15px;
      border-radius: 999px;
      border: 1px solid rgba(146, 91, 32, .12);
      background: linear-gradient(135deg, #c89353, #a96b2a);
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .04em;
      display: inline-flex;
      align-items: center;
      box-shadow: 0 12px 28px rgba(182, 123, 59, .22);
    }

    .utilities {
      justify-self: end;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    /* ── Tillägg-zon (Förslag B): inramad grupp till höger i utilities. Text,
       ikoner, "Tillägg"-etikett och lås går i ink; kopparn bär bara ramen +
       den svaga bakgrunden. Ligger inuti .utilities → ärver mobil-döljningen. ── */
    .utilities .vrule {
      width: 1px;
      height: 34px;
      background: var(--line);
      flex: 0 0 auto;
      align-self: center;
    }

    .addon-group {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 5px 8px 5px 12px;
      border: 1px dashed rgba(168, 119, 66, .34);
      border-radius: 16px;
      background: linear-gradient(0deg, rgba(168, 119, 66, .10), transparent);
      position: relative;
      flex: 0 0 auto;
    }

    .addon-group-label {
      position: absolute;
      top: -9px;
      left: 14px;
      font-size: 9.5px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--ink);
      background: var(--surface);
      padding: 0 6px;
      border-radius: 6px;
      white-space: nowrap;
    }

    .nav-link.addon {
      background: rgba(168, 119, 66, .10);
      border-color: rgba(168, 119, 66, .34);
    }

    .nav-link.addon:hover {
      background: rgba(168, 119, 66, .16);
      border-color: rgba(168, 119, 66, .45);
    }

    .nav-link.addon .mg-lock {
      width: 15px;
      height: 15px;
      flex: 0 0 auto;
      color: var(--ink);
      opacity: .85;
    }

    .app-menu-wrap {
      position: relative;
    }

    body.menu-open {
      overflow: hidden;
    }

    body.menu-open::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 19;
      background: rgba(13, 38, 63, .34);
      backdrop-filter: blur(3px);
    }

    .utility-link {
      padding: 0 18px;
      background: rgba(255, 255, 255, .55);
      border-color: var(--line);
    }

    .menu-button {
      padding: 0 17px;
      background: rgba(255, 255, 255, .55);
      border-color: var(--line);
      font-family: var(--font);
    }

    .app-menu {
      position: fixed;
      top: 0;
      right: 0;
      width: min(430px, 100vw);
      height: 100dvh;
      max-height: none;
      overflow: hidden;
      z-index: 120;
      display: flex;
      flex-direction: column;
      border-left: 1px solid var(--line);
      border-radius: 0;
      background: #fff;
      box-shadow: -24px 0 70px rgba(13, 38, 63, .22);
      padding: 0 22px 22px;
      transform: translateX(100%);
      opacity: 0;
      pointer-events: none;
      transition: transform .24s ease, opacity .24s ease;
      scrollbar-width: thin;
      scrollbar-color: rgba(13, 38, 63, .22) transparent;
    }

    .app-menu.open {
      transform: translateX(0);
      opacity: 1;
      pointer-events: all;
    }

    .app-menu-head {
      position: sticky;
      top: 0;
      z-index: 1;
      min-height: 104px;
      margin: 0 -22px 14px;
      padding: 22px 24px 18px;
      border-bottom: 1px solid var(--line);
      background: #fff;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
    }

    .app-menu-title {
      margin: 0;
      font-family: var(--serif);
      font-size: 32px;
      line-height: 1;
      font-weight: 600;
      color: var(--ink);
    }

    .app-menu-caption {
      max-width: 285px;
      margin: 9px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
      font-weight: 650;
    }

    .app-menu-close {
      width: 40px;
      height: 40px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--ink);
      cursor: pointer;
      display: grid;
      place-items: center;
      font-size: 24px;
      line-height: 1;
      flex: 0 0 auto;
      transition: background .16s ease, border-color .16s ease, transform .16s ease;
    }

    .app-menu-close:hover {
      border-color: var(--line-warm);
      transform: translateY(-1px);
    }

    .app-menu-main {
      min-height: 0;
      overflow: auto;
      padding: 2px 2px 18px;
    }

    .app-menu-section + .app-menu-section {
      margin-top: 22px;
      padding-top: 20px;
      border-top: 1px solid var(--line);
    }

    .app-menu-heading {
      margin: 2px 4px 10px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .app-menu-link {
      min-height: 66px;
      border: 1px solid transparent;
      border-radius: 8px;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      color: var(--ink);
      text-decoration: none;
      font-size: 15px;
      font-weight: 800;
      position: relative;
      transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .app-menu-link.compact {
      min-height: 60px;
    }

    .app-menu-link::before {
      content: "";
      position: absolute;
      left: 0;
      top: 12px;
      bottom: 12px;
      width: 3px;
      border-radius: 3px;
      background: transparent;
    }

    .app-menu-link.active,
    .app-menu-link:hover {
      background: rgba(244, 234, 223, .42);
      border-color: var(--line-warm);
    }

    .app-menu-link:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(13, 38, 63, .055);
    }

    .app-menu-link.active::before {
      background: var(--ink);
    }

    .app-menu-icon {
      width: 42px;
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 8px;
      display: grid;
      place-items: center;
      background: #fff;
      color: var(--gold);
      flex: 0 0 auto;
    }

    .app-menu-icon svg {
      width: 19px;
      height: 19px;
      color: currentColor;
      flex: 0 0 auto;
    }

    .app-menu-link-text {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .app-menu-link-text strong {
      font-size: 15px;
      line-height: 1.2;
      color: var(--ink);
    }

    .app-menu-link-text span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.35;
    }

    .app-menu-status {
      align-self: start;
      margin-top: 2px;
      border-radius: 999px;
      padding: 4px 8px;
      background: var(--ink);
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .app-menu-bottom {
      margin-top: auto;
      padding-top: 18px;
      border-top: 1px solid var(--line);
    }

    .app-menu-bottom-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .app-menu-bottom-head .app-menu-heading {
      margin-bottom: 0;
    }

    .menu-theme-options {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 0;
    }

    .menu-theme-options .theme-option {
      min-height: 62px;
      grid-template-columns: 1fr;
      gap: 4px;
      padding: 9px;
      text-align: center;
    }

    .menu-theme-options .theme-option.active {
      border-color: var(--ink);
      background: var(--ink);
      color: #fff;
      box-shadow: 0 10px 24px rgba(13, 38, 63, .16);
    }

    .menu-theme-options .theme-option.active span {
      color: inherit;
    }

    .menu-theme-options .theme-option svg {
      display: none;
    }

    .menu-version {
      color: var(--muted);
      padding: 0;
      font-size: 12px;
      font-weight: 800;
      text-align: right;
      white-space: nowrap;
    }


    .app-menu .theme-options {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 8px !important;
      padding: 0 !important;
    }

    .app-menu .theme-option {
      min-height: 62px !important;
      border: 1px solid var(--line) !important;
      border-radius: 8px !important;
      background: rgba(255, 255, 255, .68) !important;
      color: var(--mg-navy) !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 4px !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 9px !important;
      text-align: center !important;
      cursor: pointer !important;
      font-family: var(--font) !important;
      font-size: 13px !important;
      font-weight: 800 !important;
      line-height: 1.2 !important;
      box-shadow: none !important;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
    }

    .app-menu .theme-option strong,
    .app-menu .theme-option span {
      display: block !important;
      color: inherit;
      margin: 0 !important;
      line-height: 1.25 !important;
    }

    .app-menu .theme-option strong {
      font-size: 13px !important;
      font-weight: 900 !important;
    }

    .app-menu .theme-option span span {
      margin-top: 3px !important;
      color: var(--mg-ink-soft-alt) !important;
      font-size: 12px !important;
      font-weight: 700 !important;
    }

    .app-menu .theme-option.active {
      border-color: var(--mg-navy) !important;
      background: var(--mg-navy) !important;
      color: #fff !important;
      box-shadow: 0 10px 24px rgba(13, 38, 63, .16) !important;
    }

    .app-menu .theme-option.active span,
    .app-menu .theme-option.active span span {
      color: inherit !important;
    }

    .app-menu .theme-option svg {
      display: none !important;
    }

    .icon-button {
      width: 44px;
      padding: 0;
      background: rgba(255, 255, 255, .55);
      border-color: var(--line);
    }

    .mobile-toggle {
      display: none;
      justify-self: end;
    }


/* Index page shell and intro typography */
    main {
      width: min(1820px, calc(100vw - 48px));
      margin: 0 auto;
      padding: 24px 0 24px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 430px;
      grid-template-rows: minmax(0, 1fr) auto;
      gap: 28px;
      align-items: start;
      height: calc(100dvh - 87px);
      overflow: hidden;
    }

    .content {
      height: calc(100dvh - 134px);
      min-height: 0;
      display: grid;
      grid-template-rows: 222px minmax(0, 1fr) auto;
      overflow: hidden;
    }

    .intro {
      height: 222px;
      min-height: 0;
      display: flex;
      align-items: end;
      padding: 22px 4px 20px;
      overflow: visible;
    }

    .eyebrow, .section-kicker {
      margin: 0 0 14px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .18em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      font-family: var(--serif);
      font-size: clamp(44px, 4.1vw, 68px);
      line-height: 1.16;
      letter-spacing: 0;
      font-weight: 600;
      color: var(--ink);
    }

    .tagline {
      margin: 14px 0 14px;
      color: var(--gold);
      font-family: var(--serif);
      font-size: clamp(21px, 1.65vw, 27px);
      font-style: italic;
      font-weight: 500;
    }

    .lead {
      max-width: 760px;
      margin: 0;
      color: var(--ink-2);
      font-size: 0.9rem;
      line-height: 1.75;
    }

    .section {
      margin-bottom: 24px;
    }

    #objectsTitle {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      margin-bottom: 16px;
      overflow: hidden;
    }

/* Index responsive header/mobile-menu styles */
    .mobile-menu {
      display: none;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 253, 249, .96);
      padding: 0 24px 18px;
    }

    .mobile-menu.open { display: block; }

    .mobile-menu a {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      color: var(--ink);
      text-decoration: none;
      font-weight: 800;
      border-top: 1px solid rgba(13, 38, 63, .08);
    }

    .mobile-menu .app-menu-heading {
      margin: 16px 0 8px;
    }

    .mobile-menu .menu-theme-options {
      margin-top: 10px;
      padding: 0;
    }

    .mobile-menu .menu-version {
      margin: 12px 0 0;
    }

    @media (max-width: 1320px) {
      .topbar-inner {
        grid-template-columns: 1fr auto;
      }

      .nav, .utilities {
        display: none;
      }

      .mobile-toggle {
        display: inline-flex;
      }
    }

    @media (max-width: 760px) {
      .topbar-inner {
        width: min(100vw - 28px, 1820px);
        height: 74px;
      }

      .brand-mark {
        width: 39px;
        height: 39px;
      }

      .brand-text {
        font-size: 25px;
      }
    }

    @media (max-width: 520px) {
      .brand-text {
        font-size: 22px;
      }

      .mobile-menu {
        padding-inline: 14px;
      }
    }


/* Mobile uses the same right-side app menu as desktop. */
@media (max-width: 1320px) {
  .utilities {
    display: block;
    position: static;
    justify-self: auto;
  }

  .utilities > :not(.app-menu-wrap),
  .app-menu-wrap > .menu-button,
  .mobile-menu {
    display: none !important;
  }

  .app-menu-wrap {
    display: block;
    position: static;
  }

  .app-menu {
    width: min(430px, 100vw);
    height: 100dvh;
    max-height: none;
  }

  .app-menu.open {
    display: flex;
  }
}

@media (max-width: 520px) {
  .app-menu {
    width: 100vw;
    padding-inline: 18px;
  }

  .app-menu-head {
    margin-inline: -18px;
    padding-inline: 20px;
  }
}

/* Keep page-specific header actions from crowding the topbar. */
@media (max-width: 1440px) {
  .utilities > button.utility-link {
    display: none !important;
  }
}

/* Header-trösklar (uppmätta, inte gissade — se commit-historiken):
     <=1320px  mobil: nav döljs, hamburgaren tar över (compact behöver 1295+).
     1321-1520 compact: Feedback-pillen döljs, Diktera ikon-only (behöver 1247).
     >=1521px  full: allt utskrivet (behöver 1505 — därför 1520, inte 1500,
               annars uppstår 4 px överlapp i springan 1501-1504).
   Menyposten Feedback måste visas så fort pillen döljs, annars blir Feedback
   ONÅBAR. BRYTPUNKTEN HÄR MÅSTE HÅLLAS I SYNK med .utilities>.utility-link-
   regeln i mg-header.js (mg-dictate-css). */
@media (min-width: 1521px) {
  .app-menu-support {
    display: none;
  }
}

@media (max-width: 1320px) {
  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav,
  .mobile-toggle,
  .mobile-menu {
    display: none !important;
  }

  .utilities {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end;
    justify-self: end !important;
    align-self: center !important;
    gap: 10px;
    height: 100%;
    position: static;
  }

  .utilities > .utility-link {
    display: inline-flex !important;
  }

  .utilities > button.utility-link {
    display: none !important;
  }

  .app-menu-wrap {
    display: inline-flex !important;
    align-items: center !important;
    position: static;
  }

  .app-menu-wrap > .menu-button {
    display: inline-flex !important;
    align-items: center !important;
  }
}

/* Shared accordion styling. */
body .acc.acc {
  background: #fbfaf7;
  border: 1px solid #eadfce;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: .55rem;
  box-shadow: none;
  transition: all .15s;
}

body .acc.acc.open {
  background: #fff;
  border-color: #d9c8b4;
  box-shadow: none;
}

body .acc.acc > .acc-sum {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 14px;
  cursor: pointer;
  user-select: none;
  background: #fbfaf7;
  transition: background .12s;
}

body .acc.acc > .acc-sum:hover {
  background: #f8f5ee;
}

body .acc.acc.open > .acc-sum {
  background: #f3eee7;
  border-bottom: 1px solid #e2d3c2;
}

body .acc-lbl {
  flex: 1;
  min-width: 0;
}

body .acc-lbl strong {
  color: var(--brand-primary);
  display: block;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
}

body .acc-lbl span,
body .acc-chev,
body .ph-arrow.acc-chev {
  color: var(--brand-primary);
}

body .acc-lbl span {
  display: block;
  margin-top: .12rem;
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.25;
}

/* .acc-help flyttad till mg-help.css. Låg här som "body .acc-help" med
   avvikande storlek (.7rem/600 mot .82rem/800) — högre specificitet än den
   delade regeln, så den måste bort för att enhetligheten ska slå igenom. */

body .acc-chev,
body .ph-arrow.acc-chev {
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}

body .acc.acc.open > .acc-sum .acc-chev,
body .acc.acc.open > .acc-sum .ph-arrow.acc-chev {
  color: var(--brand-primary);
  transform: rotate(180deg);
}

body .ph-arrow.acc-chev::before {
  content: none !important;
  display: none !important;
}

body .ph-arrow.acc-chev svg {
  display: block;
  width: 14px;
  height: 14px;
}

body .acc-body {
  display: none;
  padding: 14px;
  border-top: 0;
  background: #fff;
}

body .acc.acc.open > .acc-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-theme="dark"] .acc.acc {
  background: rgba(21, 34, 51, .86) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow: none !important;
}

body[data-theme="dark"] .acc.acc.open {
  background: rgba(16, 25, 37, .92) !important;
  border-color: rgba(201, 154, 95, .38) !important;
}

body[data-theme="dark"] .acc.acc > .acc-sum {
  background: rgba(21, 34, 51, .86) !important;
}

body[data-theme="dark"] .acc.acc > .acc-sum:hover {
  background: rgba(255, 255, 255, .045) !important;
}

body[data-theme="dark"] .acc.acc.open > .acc-sum {
  background: rgba(201, 154, 95, .12) !important;
  border-bottom: 1px solid rgba(201, 154, 95, .22) !important;
}

body[data-theme="dark"] .acc-lbl strong,
body[data-theme="dark"] .acc-lbl span,
body[data-theme="dark"] .acc-chev,
body[data-theme="dark"] .ph-arrow.acc-chev {
  color: var(--mg-dark-ink) !important;
}

body[data-theme="dark"] .acc.acc.open > .acc-body {
  background: rgba(16, 25, 37, .92) !important;
  border-top: 0 !important;
}
/* Shared object picker modal, used by text.html and sociala-medier.html. */
.text-object-picker {
  position: fixed;
  inset: 0;
  z-index: 9400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 38, 63, .34);
  backdrop-filter: blur(6px);
}

.text-object-picker.open {
  display: flex;
}

.text-object-picker__panel {
  width: min(760px, 100%);
  height: min(560px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(13, 38, 63, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 68px rgba(13, 38, 63, .24);
}

.text-object-picker__head {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(13, 38, 63, .10);
  background: #fff;
}

.text-object-picker__head h2 {
  margin: 0;
  color: #0d263f !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.text-object-picker__head p {
  margin: 5px 0 0;
  color: #5d6f85 !important;
  font-size: .86rem;
  line-height: 1.4;
}

.text-object-picker__close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(13, 38, 63, .12);
  border-radius: 50%;
  background: #fff;
  color: #0d263f !important;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.text-object-picker__close:hover {
  background: rgba(13, 38, 63, .045);
}

.text-object-picker__search {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(13, 38, 63, .08);
  background: #fff;
}

.text-object-picker__search input {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  background: #fff;
}

.text-object-picker__list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 0;
  padding: 0 0 20px;
  background: #fff;
  overflow-y: auto;
  scrollbar-width: thin;
}

.text-object-picker__item,
.text-object-picker__empty {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 13px 20px 13px 28px;
  border: 0;
  border-bottom: 1px solid rgba(13, 38, 63, .08);
  border-radius: 0;
  background: #fff;
  color: #0d263f !important;
  box-shadow: none;
  text-align: left;
}

.text-object-picker__item {
  cursor: pointer;
}

.text-object-picker__item:hover,
.text-object-picker__item.active {
  background: rgba(13, 38, 63, .045);
  border-color: rgba(13, 38, 63, .08);
}

.text-object-picker__item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.text-object-picker__title-row {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.text-object-picker__address {
  min-width: 0;
  color: #0d263f !important;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.text-object-picker__meta,
.text-object-picker__empty span {
  color: #5d6f85 !important;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.35;
}

.text-object-picker__status-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 98px;
}

.text-object-picker__status-wrap:empty {
  display: none;
}

.text-object-picker__status {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0d263f !important;
  font-size: .84rem;
  font-weight: 500;
}

.text-object-picker__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 24px;
  min-height: 24px;
  margin-left: 0;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(42, 117, 148, .12);
  color: #2b6f8f;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.text-object-picker__badge.is-test {
  background: var(--mg-gold, #a87742);
  color: #fff;
  box-shadow: none;
}

.text-object-picker__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: stretch;
  border-bottom: 1px solid rgba(13, 38, 63, .08);
  background: #fff;
}

.text-object-picker__row .text-object-picker__item {
  border-bottom: 0;
  padding-right: 12px;
}

.text-object-picker__delete {
  width: 34px;
  height: 34px;
  min-height: 34px;
  align-self: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #9a3d3d;
  cursor: pointer;
  box-shadow: none;
}

.text-object-picker__delete svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-object-picker__delete:hover,
.text-object-picker__delete:focus-visible {
  background: rgba(163, 61, 61, .08);
  border-color: rgba(163, 61, 61, .18);
  color: #7f1d1d;
}

.text-object-picker__delete:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(163, 61, 61, .12);
}

body[data-theme="dark"] .text-object-picker__panel,
body[data-theme="dark"] .text-object-picker__head,
body[data-theme="dark"] .text-object-picker__search,
body[data-theme="dark"] .text-object-picker__list,
body[data-theme="dark"] .text-object-picker__item,
body[data-theme="dark"] .text-object-picker__empty {
  background: #fff !important;
  border-color: rgba(13, 38, 63, .10) !important;
}

body[data-theme="dark"] .text-object-picker__close {
  background: #fff !important;
  border-color: rgba(13, 38, 63, .12) !important;
  color: #0d263f !important;
}

body[data-theme="dark"] .text-object-picker__item:hover,
body[data-theme="dark"] .text-object-picker__item.active {
  background: rgba(13, 38, 63, .045) !important;
  border-color: rgba(13, 38, 63, .08) !important;
}

body[data-theme="dark"] .text-object-picker__badge.is-test {
  background: var(--mg-gold, #a87742);
  color: #fff;
  box-shadow: none;
}

body[data-theme="dark"] .text-object-picker__delete {
  background: transparent !important;
  border-color: transparent !important;
  color: #9a3d3d !important;
}

body[data-theme="dark"] .text-object-picker__delete:hover,
body[data-theme="dark"] .text-object-picker__delete:focus-visible {
  background: rgba(163, 61, 61, .08) !important;
  border-color: rgba(163, 61, 61, .18) !important;
  color: #7f1d1d !important;
}

@media (max-width: 560px) {
  .text-object-picker {
    padding: 12px;
  }

  .text-object-picker__panel {
    height: calc(100vh - 24px);
  }

  .text-object-picker__item,
  .text-object-picker__empty {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .text-object-picker__status-wrap {
    justify-content: flex-start;
    min-width: 0;
  }

  .text-object-picker__row {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .text-object-picker__title-row {
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* Shared import accordion structure. */
.social-import-section {
  border: 1px solid #eadfce !important;
  border-radius: 8px;
  background: #fbfaf7 !important;
  box-shadow: none !important;
  overflow: hidden;
}
.social-import-section.open {
  border-color: #d9c8b4 !important;
  background: #fff !important;
}

.social-import-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: #fbfaf7 !important;
  color: var(--brand-primary);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}

.social-import-toggle:hover {
  background: #f8f5ee !important;
}

.social-import-section.open .social-import-toggle {
  background: #f3eee7 !important;
  border-bottom: 1px solid #e2d3c2 !important;
}

.social-import-heading__text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.social-import-heading__title {
  color: var(--brand-primary) !important;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
}

.social-import-heading__sub {
  color: var(--brand-primary) !important;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
}

.social-import-toggle__chev {
  margin-left: auto;
  display: inline-flex;
  color: var(--brand-primary) !important;
  transition: transform .16s ease;
}

.social-import-section.open .social-import-toggle__chev {
  transform: rotate(180deg);
}

.social-import-body {
  display: block;
  padding: 14px;
  border-top: 0 !important;
  background: #fff !important;
}

.social-import-body[data-collapsed="1"] {
  display: none;
}
body[data-theme="dark"] .social-import-section {
  background: rgba(21, 34, 51, .86) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}

body[data-theme="dark"] .social-import-section.open {
  background: rgba(16, 25, 37, .92) !important;
  border-color: rgba(201, 154, 95, .38) !important;
}

body[data-theme="dark"] .social-import-toggle {
  background: rgba(21, 34, 51, .86) !important;
}

body[data-theme="dark"] .social-import-toggle:hover {
  background: rgba(255, 255, 255, .045) !important;
}

body[data-theme="dark"] .social-import-section.open .social-import-toggle {
  background: rgba(201, 154, 95, .12) !important;
  border-bottom: 1px solid rgba(201, 154, 95, .22) !important;
}

body[data-theme="dark"] .social-import-body {
  background: rgba(16, 25, 37, .92) !important;
  border-top: 0 !important;
}

body[data-theme="dark"] .social-import-heading__title,
body[data-theme="dark"] .social-import-heading__sub,
body[data-theme="dark"] .social-import-toggle__chev {
  color: var(--mg-dark-ink) !important;
}

/* Shared help sidebar polish 2026-07-01 */
#helpPanel {
  width: min(430px, 100vw) !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  background: #fff !important;
  border-left: 1px solid rgba(13, 38, 63, .12) !important;
  box-shadow: -24px 0 60px rgba(13, 38, 63, .18) !important;
  overflow: hidden !important;
}

#helpPanel .hp-header {
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 20px 22px !important;
  border-bottom: 0 !important;
  background: var(--mg-navy, #0d263f) !important;
  color: #fff !important;
}

#helpPanel .hp-header-icon {
  display: none !important;
}

#helpPanel .hp-header-text,
#helpPanel .sm-static-005 {
  min-width: 0 !important;
}

#helpPanel .hp-header-title,
#helpPanel .sm-static-006 {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  font-size: 1.03rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

#helpPanel .hp-header-sub,
#helpPanel .sm-static-007 {
  margin-top: .25rem !important;
  color: rgba(255, 255, 255, .72) !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

#helpPanel .hp-close {
  width: 38px !important;
  height: 38px !important;
  margin-left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

#helpPanel .hp-close:hover {
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(255, 255, 255, .36) !important;
}

#helpPanel .hp-body,
#hpBody.sm-static-009,
#hpBody {
  flex: 1 1 auto !important;
  padding: 22px !important;
  overflow: auto !important;
  background: #fff !important;
  color: var(--text, var(--mg-navy, #0d263f)) !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  font-size: .9rem !important;
  line-height: 1.62 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 38, 63, .24) transparent;
}

#helpPanel .hp-body h4,
#hpBody h4 {
  margin: 1.2rem 0 .45rem !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  color: var(--mg-navy, #0d263f) !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
}

#helpPanel .hp-body h4:first-child,
#hpBody h4:first-child {
  margin-top: 0 !important;
}

#helpPanel .hp-body p,
#helpPanel .hp-body li,
#hpBody p,
#hpBody li {
  color: var(--text, var(--mg-navy, #0d263f)) !important;
}

#helpPanel .hp-body .hp-tip,
#helpPanel .hp-body .hp-warn,
#hpBody .hp-tip,
#hpBody .hp-warn {
  margin: 1rem 0 !important;
  padding: .82rem .95rem !important;
  border: 1px solid rgba(168, 119, 66, .18) !important;
  border-left: 3px solid var(--mg-gold, #a87742) !important;
  border-radius: 8px !important;
  background: rgba(168, 119, 66, .08) !important;
  color: var(--mg-navy, #0d263f) !important;
  font-size: .84rem !important;
  line-height: 1.5 !important;
}

#helpPanel .hp-divider,
#helpPanel .sm-static-010 {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: .65rem !important;
  padding: 0 22px 12px !important;
  border-top: 0 !important;
  background: #fff !important;
}

#helpPanel .hp-divider::before,
#helpPanel .hp-divider::after,
#helpPanel .sm-static-011 {
  content: '' !important;
  height: 1px !important;
  background: rgba(13, 38, 63, .10) !important;
}

#helpPanel .hp-divider span,
#helpPanel .sm-static-012 {
  color: var(--mg-ink-soft-alt, #5b6577) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

#helpPanel .hp-chat-area,
#helpPanel .sm-static-013 {
  flex: 0 0 auto !important;
  padding: 0 22px 20px !important;
  border-top: 0 !important;
  background: #fff !important;
}

#helpPanel .hp-messages,
#hpMessages.sm-static-014,
#hpMessages {
  max-height: 150px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: .45rem !important;
  margin-bottom: .75rem !important;
  padding: 0 .25rem 0 0 !important;
  overflow: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 38, 63, .22) transparent;
}

#helpPanel .hp-messages:empty,
#hpMessages:empty,
#hpMessages.sm-static-014:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#helpPanel .hp-msg,
.hp-chat-bubble {
  max-width: 88% !important;
  padding: .56rem .72rem !important;
  border-radius: 10px !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  font-size: .8rem !important;
  line-height: 1.48 !important;
}

#helpPanel .hp-msg.bot,
.hp-chat-bubble--bot {
  align-self: flex-start !important;
  background: #f8fafc !important;
  border: 1px solid rgba(13, 38, 63, .10) !important;
  color: var(--mg-navy, #0d263f) !important;
}

#helpPanel .hp-msg.user,
.hp-chat-bubble--user {
  align-self: flex-end !important;
  background: rgba(168, 119, 66, .08) !important;
  border: 1px solid rgba(168, 119, 66, .18) !important;
  color: var(--mg-navy, #0d263f) !important;
}

#helpPanel .hp-suggestions,
#hpSuggestions.sm-static-015 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .45rem !important;
  margin-bottom: .75rem !important;
  padding: 0 !important;
}

#helpPanel .hp-sugg,
.hp-suggestion {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: .35rem .72rem !important;
  border: 1px solid rgba(13, 38, 63, .14) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--mg-navy, #0d263f) !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  font-size: .73rem !important;
  font-weight: 750 !important;
}

#helpPanel .hp-sugg:hover,
.hp-suggestion:hover {
  background: rgba(13, 38, 63, .06) !important;
  border-color: rgba(13, 38, 63, .24) !important;
  color: var(--mg-navy, #0d263f) !important;
}

#helpPanel .hp-input-row,
#helpPanel .sm-static-016 {
  display: flex !important;
  gap: .5rem !important;
  padding: 0 !important;
  border-top: 0 !important;
}

#helpPanel .hp-input-row input,
#helpPanel .sm-static-017 {
  min-height: 38px !important;
  flex: 1 1 auto !important;
  padding: 0 .85rem !important;
  border: 1px solid rgba(13, 38, 63, .16) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--mg-navy, #0d263f) !important;
  font-family: var(--font, 'Inter', sans-serif) !important;
  font-size: .84rem !important;
  outline: none !important;
}

#helpPanel .hp-send,
#helpPanel .sm-static-018 {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 38px !important;
  border: 1px solid var(--mg-navy, #0d263f) !important;
  border-radius: 8px !important;
  background: var(--mg-navy, #0d263f) !important;
  color: #fff !important;
}
#helpPanel .hp-send svg,
#helpPanel .sm-static-018 svg {
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  flex: 0 0 17px !important;
  color: currentColor !important;
  fill: currentColor !important;
}

body[data-theme="dark"] #helpPanel,
body[data-theme="dark"] #helpPanel .hp-body,
body[data-theme="dark"] #hpBody,
body[data-theme="dark"] #helpPanel .hp-divider,
body[data-theme="dark"] #helpPanel .sm-static-010,
body[data-theme="dark"] #helpPanel .hp-chat-area,
body[data-theme="dark"] #helpPanel .sm-static-013 {
  background: var(--mg-dark-surface, #152233) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}

body[data-theme="dark"] #helpPanel .hp-header {
  background: #0d263f !important;
}

body[data-theme="dark"] #helpPanel .hp-body h4,
body[data-theme="dark"] #hpBody h4,
body[data-theme="dark"] #helpPanel .hp-body p,
body[data-theme="dark"] #helpPanel .hp-body li,
body[data-theme="dark"] #hpBody p,
body[data-theme="dark"] #hpBody li,
body[data-theme="dark"] #helpPanel .hp-msg.bot,
body[data-theme="dark"] .hp-chat-bubble--bot,
body[data-theme="dark"] #helpPanel .hp-msg.user,
body[data-theme="dark"] .hp-chat-bubble--user {
  color: var(--mg-dark-ink, #e8eef4) !important;
}

body[data-theme="dark"] #helpPanel .hp-msg.bot,
body[data-theme="dark"] .hp-chat-bubble--bot,
body[data-theme="dark"] #helpPanel .hp-input-row input,
body[data-theme="dark"] #helpPanel .sm-static-017,
body[data-theme="dark"] #helpPanel .hp-sugg,
body[data-theme="dark"] .hp-suggestion {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: var(--mg-dark-ink, #e8eef4) !important;
}

body[data-theme="dark"] #helpPanel .hp-msg.user,
body[data-theme="dark"] .hp-chat-bubble--user,
body[data-theme="dark"] #helpPanel .hp-body .hp-tip,
body[data-theme="dark"] #helpPanel .hp-body .hp-warn,
body[data-theme="dark"] #hpBody .hp-tip,
body[data-theme="dark"] #hpBody .hp-warn {
  background: rgba(201, 154, 95, .10) !important;
  border-color: rgba(201, 154, 95, .24) !important;
}

/* "Nytt objekt"-knapp — flyttad från headern ut till sidorna (hem/text/SoMe) */
.mg-newobj-page{display:inline-flex;align-items:center;gap:6px;font-family:var(--font,Inter,system-ui,sans-serif);font-size:.82rem;font-weight:750;min-height:34px;padding:0 14px;border:none;border-radius:8px;background:#0d263f;color:#fff;cursor:pointer;white-space:nowrap;transition:background .15s}
.mg-newobj-page:hover{background:#1b3a5c}
.mg-newobj-page svg{width:15px;height:15px;flex:0 0 auto}
.mg-newobj-row{margin:0 0 12px}
.text-object-context__actions{display:inline-flex;align-items:center;gap:8px}
body[data-theme="dark"] .mg-newobj-page{background:#3f6ea8}
body[data-theme="dark"] .mg-newobj-page:hover{background:#4d80bd}
