/* =====================================================================
   SG TRYK – styles
   ===================================================================== */

:root {
  --ink:      #16181d;
  --ink-2:    #23262e;
  --paper:    #ffffff;
  --muted:    #6b7280;
  --line:     #e7e9ee;
  --bg:       #f6f7f9;
  --accent:   #e8472b;   /* SG Tryk signaturfarve */
  --accent-d: #c5371e;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(20,24,34,.08);
  --maxw:     1160px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
p  { margin: 0 0 1em; }
a  { color: inherit; }

.container {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.section  { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--accent); margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  font-size: 1rem; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(232,71,43,.28); }
.btn--primary:hover { background: var(--accent-d); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn.js-add-logo { color: var(--ink); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 1.18rem; }
.brand__mark { width: 36px; height: 36px; display: block; flex: none; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.nav__links a:hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 78px; padding-bottom: 84px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.tag { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art {
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  border-radius: 22px; padding: 30px; color: #fff; box-shadow: var(--shadow);
}
.hero__art svg { width: 100%; height: auto; display: block; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #fdece8; color: var(--accent); margin-bottom: 14px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---- Steps ---- */
.steps { counter-reset: step; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}

/* ---- Garment chips ---- */
.gtypes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.gtype {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; min-width: 120px;
}
.gtype svg { width: 54px; height: 54px; color: var(--ink-2); }
.gtype span { font-weight: 600; font-size: .92rem; }

/* ---- Pricing ---- */
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row b { font-weight: 600; }
.price-row span { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---- About / split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__panel { background: var(--ink); color: #fff; border-radius: 22px; padding: 38px; }
.about__panel h2 { color: #fff; }
.about__panel .lead { color: #c8ccd6; }
.stat-row { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.9rem; color: var(--accent); }
.stat span { color: #aeb3bf; font-size: .9rem; }

/* ---- Contact ---- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.ok  { color: #1f8a4c; }
.form-status.err { color: var(--accent); }
.muted { color: var(--muted); font-weight: 400; }

/* Forespørgsels-kort: centreret på tablet/desktop, fuld bredde på mobil */
.request-card {
  max-width: 700px; margin: 0 auto; padding: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.request-card:hover { transform: none; box-shadow: none; }
@media (max-width: 560px) { .request-card { max-width: none; } }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* unified request: order lines (3 rækker + preview-vindue) */
.req-line { display: flex; gap: 12px; align-items: stretch; padding: 14px 0; border-bottom: 1px solid var(--line); }
.req-line:first-child { padding-top: 4px; }
.req-line:last-child { border-bottom: 0; padding-bottom: 4px; }

.req-line__controls { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.req-line__row { display: flex; gap: 6px; align-items: center; }
.req-line__row > * { flex: 1 1 0; min-width: 0; }
.req-line__row input, .req-line__row select {
  height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .9rem; background: #fff; width: 100%;
}
.req-line__row .rl-qty { text-align: center; }
.req-line__row .rl-size {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  text-align: center; text-align-last: center; background-image: none;
}
.req-line__row .cdrop,
.req-line__row .rl-place.cdrop,
.req-line__row .rl-logo-btn { flex: 1 1 0; }
.req-line__row .cdrop { position: relative; }
.req-line__row .rl-logo-btn { width: auto; height: 38px; }
.req-line__row .cdrop__btn, .req-line__row .rl-place .cdrop__btn { width: 100%; height: 38px; }

/* row 2 buttons carry a text label: icon + text, left aligned */
.rl-btn-txt {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: .85rem; text-align: left;
}
.req-line__row .rl-logo-btn,
.req-line__row .rl-place .cdrop__btn {
  justify-content: flex-start; gap: 8px; padding: 0 10px; overflow: hidden;
}
.req-line__row .rl-logo-btn svg,
.req-line__row .rl-place .cdrop__btn svg { flex: none; }
.req-line__row .rl-place .cdrop__btn .place-thumb {
  width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--line);
  object-fit: cover; flex: none;
}

.req-line__foot { display: flex; gap: 8px; margin-top: 1px; }
.rl-foot-btn { flex: 1 1 0; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink-2); }
.rl-foot-btn:hover { border-color: var(--ink); }
.rl-foot-remove { color: var(--muted); }
.rl-foot-remove:hover { border-color: var(--accent); color: var(--accent); }

.req-line__preview {
  position: relative; flex: none; width: 104px; align-self: stretch; min-height: 104px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.req-line__preview:hover { border-color: var(--accent); color: var(--accent); }
.req-line__preview .rlp-garment { width: 100%; height: 100%; display: block; }
.req-line__preview .rlp-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 3px 0; font-size: .72rem; line-height: 1; color: #fff;
  background: rgba(20,20,20,.62);
}
.req-line__preview .rlp-hint svg { width: 13px; height: 13px; }
.req-line__preview .rlp-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; gap: 1px; }

/* fuldskærms-designværktøj der folder sig ud fra preview-feltet */
.designer-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15,15,15,0);
  transition: background .34s ease;
}
.designer-overlay.open { background: rgba(15,15,15,.55); }
.designer-box {
  position: fixed; overflow: hidden; background: #fff; border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.4); opacity: .4;
  transition: left .34s cubic-bezier(.4,0,.2,1), top .34s cubic-bezier(.4,0,.2,1),
              width .34s cubic-bezier(.4,0,.2,1), height .34s cubic-bezier(.4,0,.2,1),
              border-radius .34s ease, opacity .26s ease;
}
.designer-overlay.open .designer-box { opacity: 1; border-radius: 14px; }
.designer-frame { width: 100%; height: 100%; border: 0; display: block; }
.designer-close {
  position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: rgba(20,20,20,.82); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.designer-close:hover { background: var(--accent); }
.req-line__preview.has-design { background: #fff; }
.req-line__preview.has-design .rlp-hint { background: rgba(31,138,76,.85); }

/* indlejret mockup-værktøj: handlingsbjælke nederst */
/* gør plads til modal-luk-knappen (×) så den ikke dækker teksten øverst */
body.embed .tool-disclaimer { padding-right: 46px; }
/* lærredet fylder hele området mellem topteksten og "Brug dette design" */
body.embed { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
/* lås tool-tilstanden til skærmhøjden, så lærredet tvinges til at passe */
body.embed { height: 100vh; height: 100dvh; overflow: hidden; box-sizing: border-box; }
body.embed > main { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
body.embed > main > section.section { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; padding: 0 !important; }
body.embed > main > section.section > .container { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; padding-left: 0; padding-right: 0; }
body.embed .studio--full { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; }
body.embed .studio--full .stage { flex: 1 1 auto; min-height: 0; min-width: 0; width: 100%; }
.embed-bar {
  flex: none; z-index: 50;
  display: flex; justify-content: center; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.embed-bar .btn { min-width: 240px; max-width: 420px; justify-content: center; }

/* lille custom dropdown: knappen viser kun ikon/farve-prik, menuen viser navne */
.cdrop { position: relative; flex: none; }
.cdrop__btn {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 38px;
  padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}
.cdrop__btn svg { width: 24px; height: 24px; display: block; color: var(--ink-2); }
.cdrop__menu {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; min-width: 190px; max-height: 264px;
  overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 6px; display: none;
}
.cdrop.open .cdrop__menu { display: block; }
.cdrop__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none;
  cursor: pointer; border-radius: 8px; font: inherit; font-size: .92rem; text-align: left; color: var(--ink);
}
.cdrop__opt:hover { background: var(--bg); }
.cdrop__group { padding: 8px 10px 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cdrop__group:first-child { padding-top: 2px; }
.cdrop__opt svg { width: 24px; height: 24px; flex: none; color: var(--ink-2); }
.cdot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; display: inline-block; }
.req-line__main .rl-remove:hover { border-color: var(--accent); color: var(--accent); }
.rl-place.cdrop { flex: none; }
.rl-place .cdrop__btn { width: 46px; height: 38px; padding: 0; overflow: hidden; }
.rl-place .cdrop__btn .place-thumb { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; }
.rl-place .cdrop__btn svg { width: 22px; height: 22px; color: var(--ink-2); }
.rl-place .cdrop__menu { left: auto; right: 0; min-width: 212px; }
.rl-place .cdrop__opt { gap: 12px; }
.place-thumb { border-radius: 6px; border: 1px solid var(--line); flex: none; display: block; }
.rl-place .cdrop__opt .place-thumb { width: 46px; height: 46px; }
.rl-logo-btn {
  flex: none; width: 46px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--muted); background: #fff;
}
.rl-logo-btn svg { width: 20px; height: 20px; display: block; }
.rl-logo-btn.has { border-style: solid; border-color: #1f8a4c; color: #1f8a4c; }
.rl-logo-btn input { display: none; }
.rl-logo-btn.drag { border-color: var(--accent); background: #fdece8; color: var(--accent-d); border-style: dashed; }
.rl-clear-btn {
  flex: 1 1 0; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; color: var(--accent-d);
  background: #fdece8; border-color: #f3c7bd;
}
.rl-clear-btn:hover { border-color: var(--accent); background: #fbded5; }
.rl-clear-btn[hidden] { display: none; }
.rl-logo-btn.pulse { animation: rlLogoPulse 1.1s ease-in-out 0s 2; }
@keyframes rlLogoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,71,43,0); border-color: var(--line); }
  50% { box-shadow: 0 0 0 4px rgba(232,71,43,.25); border-color: var(--accent); color: var(--accent); }
}

.contact-row {
  list-style: none; padding: 26px 0 0; margin: 44px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  justify-content: center; color: var(--muted); font-size: .95rem;
}
.contact-row li { display: inline-flex; align-items: center; gap: 8px; }
.contact-row svg { width: 18px; height: 18px; color: var(--accent); }
.contact-row a { color: var(--ink-2); text-decoration: none; }
.contact-row a:hover { color: var(--accent); }

.contact-info li { margin-bottom: 14px; list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.contact-info ul { padding: 0; margin: 0; }
.contact-info svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c8ccd6; padding: 46px 0 30px; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-grid .brand { color: #fff; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* =====================================================================
   MOCKUP TOOL
   ===================================================================== */
.tool { display: grid; grid-template-columns: 320px 1fr 320px; gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.panel + .panel { margin-top: 18px; }

.stage-wrap { position: sticky; top: 86px; }
.stage {
  background: transparent; border: 0; border-radius: 0; position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; gap: 0; min-height: 360px;
}
/* lærredet fylder hele scenen; vælger og dock svæver oven på det */
.stage__view { flex: 1 1 auto; min-height: 0; min-width: 0; position: relative; overflow: hidden; background: #d8d7d8; }
/* lærredet er full-bleed og fylder hele scenen; selve trykket centreres via
   Fabric-viewporten, så motivet kan zoomes ind under dock og vælger. */
.stage__view .canvas-container {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  touch-action: none;
}
.stage__view .canvas-container canvas { width: 100% !important; height: 100% !important; touch-action: none; }

/* visnings-vælger: pile + prikker øverst, navn centreret under – svæver oven på lærredet */
.views {
  position: absolute; top: 6px; left: 0; right: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none;
}
.views__nav, .view-name { pointer-events: auto; }
.views__nav { display: flex; align-items: center; gap: 14px; }
.view-arrow {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-2);
}
.view-arrow:hover { color: var(--accent); }
.view-arrow svg { width: 22px; height: 22px; }
.view-dots { display: flex; align-items: center; gap: 9px; }
.view-dot {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; padding: 0; cursor: pointer; position: relative;
}
.view-dot:hover { border-color: var(--ink-2); }
.view-dot.is-active { border-color: var(--accent); }
.view-dot.is-active::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.view-name { font-size: .82rem; font-weight: 600; color: var(--ink-2); }

/* ---- Bemærkning / disclaimer ---- */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 12px 14px;
}
.notice svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.notice p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* ---- Studio: alt samlet i ét vindue ---- */
.studio { max-width: 560px; margin: 0 auto; }
.studio--wide { max-width: 720px; }
.studio--full { max-width: none; margin: 0; }   /* bruger sidens margener direkte */

/* ---- Disclaimer som ren tekst øverst (ikke en boks) ---- */
.tool-disclaimer { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }

/* ---- Metode-valg (hurtig vs. tilpas selv) ---- */
.modes { display: flex; gap: 8px; }
.mode-btn {
  flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 13px 10px; cursor: pointer; font: inherit; font-size: .98rem; font-weight: 600;
  color: var(--ink-2); transition: all .12s ease;
}
.mode-btn:hover { border-color: var(--ink); }
.mode-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---- Hurtig-tilstand ---- */
#simpleControls { margin-top: 12px; }
.simple-field { margin-bottom: 14px; }
.simple-field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.simple-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff;
}
.simple-field select:focus { outline: none; border-color: var(--accent); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.toolbar button {
  flex: 1 1 0; min-width: 88px; max-width: 130px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600;
  color: var(--ink-2); transition: all .12s ease;
}
.toolbar button svg { width: 22px; height: 22px; }
.toolbar button:hover { border-color: var(--ink); }
.toolbar button[aria-expanded="true"] { border-color: var(--accent); background: #fdece8; color: var(--accent-d); }

/* ---- Værktøjs-dock i bunden af visningen (tekst-knapper) ---- */
.tool-dock {
  position: absolute; bottom: 6px; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  pointer-events: none;
}
.tool-dock[hidden] { display: none; }
/* sekundær "Tilføj"-dock svæver lige over hoved-dock'en */
.tool-dock--add { bottom: 60px; z-index: 7; }
.tool-dock button {
  pointer-events: auto;
  flex: 0 1 auto; min-width: 0; height: 44px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 1px 5px rgba(0,0,0,.12); transition: all .12s ease;
}
.tool-dock button:hover { border-color: var(--ink); }
.tool-dock button[aria-expanded="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.tool-dock #addBtn[data-mode="vinyl"] { border-color: var(--accent); color: var(--accent-d); background: #fdece8; }
.tool-dock button svg { width: 18px; height: 18px; flex: none; }

/* ---- Overlay-paneler: åbner lige over dock'en, kun så høje som indholdet ---- */
.tool-panel { display: none; }
.tool-panel.open {
  display: block; position: absolute; left: 8px; right: 8px; bottom: 60px; z-index: 7;
  max-height: calc(100% - 72px);
  background: rgba(255,255,255,.98); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; overflow: auto; box-shadow: var(--shadow);
}
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.place-opt {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line);
  background: #fff; border-radius: 10px; padding: 6px; cursor: pointer; font: inherit;
  font-size: .84rem; text-align: left; color: var(--ink);
}
.place-opt:hover { border-color: var(--accent); }
.place-opt img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.range-row #zoomVal { font-size: .85rem; color: var(--muted); width: 44px; text-align: right; flex: none; }
.tool-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: .95rem; margin-bottom: 10px;
}
.tool-panel__close {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  width: 28px; height: 28px; font-size: 22px; line-height: 1;
}
.tool-panel__close:hover { color: var(--accent); }
.tool-panel > input[type="text"], .tool-panel > select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; margin-bottom: 10px;
}
.tool-panel > input[type="text"]:focus, .tool-panel > select:focus { outline: none; border-color: var(--accent); }

.panel-sub { margin: 4px 0 8px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.panel-sub + .swatches { margin-bottom: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line);
  cursor: pointer; position: relative; padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch.metallic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.7), transparent 45%, rgba(0,0,0,.2)); }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-group { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 2px 0; }
.opt-group:first-child { padding-top: 0; }
.opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px;
  cursor: pointer; font: inherit; font-size: .9rem; text-align: center; transition: all .12s ease;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: #fdece8; color: var(--accent-d); font-weight: 600; }
.opt svg { width: 30px; height: 30px; display: block; margin: 0 auto 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px;
  cursor: pointer; font: inherit; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center;
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: #fdece8; color: var(--accent-d); }
.chip svg { width: 16px; height: 16px; }

.range-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.range-row label { font-size: .85rem; color: var(--muted); width: 64px; flex: none; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }

#panel-logo.drag { outline: 2px dashed var(--accent); outline-offset: -6px; }
.mini-actions { display: flex; gap: 8px; margin-top: 10px; }
.mini-btn { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; cursor: pointer; font: inherit; font-size: .85rem; }
.mini-btn:hover { border-color: var(--ink); }

.order-line { display: flex; gap: 8px; margin-bottom: 8px; }
.order-line select, .order-line input {
  padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.order-line select { flex: 1; min-width: 0; width: auto; }
.order-line input { width: 84px; flex: none; }
.order-line select:focus, .order-line input:focus { outline: none; border-color: var(--accent); }
.order-line .ol-remove {
  flex: none; width: 42px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--muted);
}
.order-line .ol-remove:hover { border-color: var(--accent); color: var(--accent); }

.tool-step { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .05em; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .hero__grid, .split, .contact-wrap { grid-template-columns: 1fr; }
  .hero__grid { padding-top: 12px; padding-bottom: 36px; gap: 20px; }
  .hero__art { order: -1; padding: 16px; }
  .contact-row { flex-direction: column; align-items: center; gap: 14px; }
  .tool { grid-template-columns: 1fr; }
  .stage-wrap { position: static; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; border-bottom: 1px solid var(--line); display: none; padding: 8px 0;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 22px; width: 100%; }
  .nav__links .btn { margin: 8px 22px; width: calc(100% - 44px); justify-content: center; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
