/* VeluwePrint – ontwerptool */
@font-face { font-family: "Inter"; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); }
:root { --g9: #0E3B2E; --g8: #103E30; --moss: #638334; --ink: #161B18; --ink2: #3B433E; --muted: #66706A; --paper: #F7F6F2; --paper2: #F0EEE8; --line: #E7E4DE; --line2: #D8D3C9; --focus: 0 0 0 3px rgba(99,131,52,.45); }
* { box-sizing: border-box; }
html, body { height: 100%; }
body.designer { margin: 0; font: 14px/1.5 "Inter", system-ui, sans-serif; color: var(--ink); background: #E9E7E1; display: flex; flex-direction: column; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.d-top { display: flex; align-items: center; gap: 16px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); min-height: 56px; flex-wrap: wrap; }
.d-logo img { display: block; height: 30px; width: auto; }
.d-title { display: flex; flex-direction: column; line-height: 1.25; padding-left: 14px; border-left: 1px solid var(--line); }
.d-title strong, .d-title .d-h1 { font: 700 15px "Manrope", sans-serif; margin: 0; }
.d-title span { font-size: 12px; color: var(--muted); }
.d-pages { display: flex; gap: 4px; background: var(--paper2); border-radius: 9px; padding: 3px; }
.d-pages:empty { display: none; }
.d-tab { border: 0; background: none; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--muted); }
.d-tab.is-on { background: #fff; color: var(--g8); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.d-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.d-save { font-size: 12px; color: var(--muted); min-width: 90px; text-align: right; }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.d-btn:hover { background: var(--paper2); }
.d-btn[disabled] { opacity: .55; pointer-events: none; }
.d-icon { width: 36px; padding: 6px 0; font-size: 18px; }
.d-primary { background: var(--g8); border-color: var(--g8); color: #fff; }
.d-primary:hover { background: #0A2D22; color: #fff; }
.d-danger { color: #A12A1E; border-color: #E8B4AD; }
.d-wide { width: 100%; margin-top: 10px; padding: 12px; font-size: 15px; }
.d-main { flex: 1; display: grid; grid-template-columns: 92px 1fr 300px; min-height: 0; }
.d-tools { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; overflow-y: auto; }
.d-tools button, .d-upload-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink2); }
.d-tools button:hover, .d-upload-btn:hover { background: var(--paper2); color: var(--g8); }
.d-tools button[aria-pressed="false"] { opacity: .5; }
.d-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--paper); font: 700 17px "Manrope", sans-serif; color: var(--g8); }
.d-upload-btn:focus-within { box-shadow: var(--focus); }
.d-stage { position: relative; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.d-stage.is-drop { outline: 3px dashed var(--moss); outline-offset: -12px; }
.d-canvas-wrap { box-shadow: 0 10px 30px rgba(0,0,0,.18); background: #fff; flex: none; }
.d-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; font-size: 12px; color: var(--ink2); }
.d-legend span::before { content: ""; display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 2px dashed; }
.l-trim::before { border-color: #E5007D !important; }
.l-bleed::before { border: 0 !important; height: 10px !important; background: rgba(255,255,255,.75); outline: 1px solid var(--line2); }
.l-safe::before { border-color: #2E9D4A !important; border-top-style: dotted !important; }
.d-zoom { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.d-zoom::before { display: none !important; }
.d-zoom button { border: 1px solid var(--line2); background: #fff; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.d-zoom span { min-width: 44px; text-align: center; }
.d-props { background: #fff; border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; }
.d-props h2 { font: 800 16px "Manrope", sans-serif; margin: 0 0 12px; }
.d-label { display: block; font-weight: 600; font-size: 12.5px; margin: 12px 0 4px; }
.d-props textarea, .d-props select, .d-props input[type=number], .d-modal input:not([type=checkbox]) { width: 100%; border: 1px solid var(--line2); border-radius: 8px; padding: 7px 9px; background: #fff; }
.d-props textarea { resize: vertical; font-size: 14px; }
.d-props input[type=range] { width: 100%; accent-color: var(--g8); }
.d-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.d-row > div { flex: 1; min-width: 0; }
.d-row .d-btn { flex: 1 1 auto; padding: 7px 10px; font-size: 13px; }
.d-row-end { justify-content: flex-end; }
.d-seg { display: flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.d-seg button { flex: 1; border: 0; background: #fff; padding: 7px; cursor: pointer; }
.d-seg button + button { border-left: 1px solid var(--line2); }
.d-seg button[aria-pressed="true"] { background: var(--g8); color: #fff; }
.d-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.d-sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; position: relative; }
.d-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--moss); }
.d-sw-custom { display: grid; place-items: center; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); color: #fff; font-weight: 800; overflow: hidden; }
.d-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.d-hint, .d-muted { font-size: 12.5px; color: var(--muted); }
.d-pos { margin-top: 14px; }
.d-help ul { padding-left: 18px; color: var(--ink2); }
.d-help li { margin-bottom: 6px; }
.d-note { background: #FFF4DB; border: 1px solid #EBCB85; color: #7A4E00; border-radius: 8px; padding: 8px 10px; }
.d-ai { background: #EEF4F8; border: 1px solid #C5D6E3; color: #1E4864; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 13px; }
.d-ai ul { margin: 6px 0 0; padding-left: 18px; }
.d-dpi { border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 6px; }
.d-dpi span { color: inherit; opacity: .75; }
.d-dpi-ok { background: #EAF3E2; color: #2B4A12; }
.d-dpi-warn { background: #FFF1D6; color: #7A4E00; }
.d-dpi-bad { background: #FBECEA; color: #A12A1E; }
.d-modal { position: fixed; inset: 0; background: rgba(14,30,22,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.d-modal[hidden] { display: none; }
.d-modal-box { background: #fff; border-radius: 16px; width: min(880px, 100%); max-height: 90vh; overflow: auto; }
.d-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.d-modal-head h2 { margin: 0; font: 800 19px "Manrope", sans-serif; }
.d-modal-body { padding: 18px 20px 22px; }
.d-modal-body h3 { font: 800 15px "Manrope", sans-serif; margin: 18px 0 8px; }
.d-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.d-choice { text-align: left; border: 1.5px solid var(--line2); border-radius: 12px; background: #fff; padding: 14px; cursor: pointer; }
.d-choice:hover { border-color: var(--moss); background: #FAFCF7; }
.d-choice strong { display: block; font: 700 15px "Manrope", sans-serif; margin-bottom: 4px; color: var(--g8); }
.d-choice span { font-size: 13px; color: var(--ink2); }
.d-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.d-tpl { border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px; cursor: pointer; text-align: left; }
.d-tpl:hover { border-color: var(--moss); }
.d-tpl img, .d-tpl-ph { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 6px; }
.d-tpl span { display: block; font-weight: 600; font-size: 13px; margin-top: 6px; }
.d-finish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.d-finish-preview img { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.d-checks { list-style: none; padding: 0; margin: 0 0 12px; }
.d-checks li { padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.d-checks .lvl-fout { background: #FBECEA; color: #A12A1E; }
.d-checks .lvl-waarschuwing { background: #FFF1D6; color: #7A4E00; }
.d-checks .lvl-ok, .d-checks .lvl-info { background: #EAF3E2; color: #2B4A12; }
.d-ok { background: #EAF3E2; color: #2B4A12; border-radius: 8px; padding: 10px 12px; }
.d-err { color: #A12A1E; font-weight: 600; }
.d-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; cursor: pointer; }
.d-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--g8); flex: none; }
.d-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--g8); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: min(560px, 92vw); }
.d-toast.is-error { background: #A12A1E; }
.d-small-screen { display: none; }
@media (max-width: 1100px) { .d-main { grid-template-columns: 80px 1fr 260px; } }
@media (max-width: 820px) {
  body.designer { overflow: auto; }
  .d-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(420px, 60vh) auto; }
  .d-tools { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .d-props { border-left: 0; border-top: 1px solid var(--line); }
  .d-finish { grid-template-columns: 1fr; }
  .d-small-screen { display: block; position: fixed; left: 0; right: 0; bottom: 0; background: #FFF4DB; color: #7A4E00; padding: 8px 12px; font-size: 13px; z-index: 40; }
  .d-actions { margin-left: 0; width: 100%; justify-content: flex-end; }
}
.d-zoom span::before, .d-zoom button::before { display: none !important; content: none !important; }
/* Lettertypekeuze met voorbeeld in het eigen lettertype */
.d-fontlist { display: flex; flex-direction: column; max-height: 214px; overflow-y: auto; border: 1px solid #D9D6CF; border-radius: 8px; background: #fff; margin-bottom: 14px; scroll-behavior: smooth; }
.d-font { text-align: left; border: 0; border-bottom: 1px solid #F0EEE9; background: none; padding: 7px 12px; font-size: 18px; line-height: 1.25; color: #161B18; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-font:last-child { border-bottom: 0; }
.d-font:hover { background: #F4F2EC; }
.d-font:focus-visible { outline: 2px solid #638334; outline-offset: -2px; }
.d-font.is-on { background: #103E30; color: #fff; }
.d-font { flex: 0 0 auto; min-height: 36px; }
.d-fontlist { position: relative; scroll-behavior: auto; }

.d-proof { margin: 12px 0 4px; padding: 10px 12px; border-radius: 8px; background: #EEF4FF; border: 1px solid #C9DBFB; color: #1F2A44; font-size: 14px; line-height: 1.45; }
.d-proof strong { display: block; margin-bottom: 2px; }
.d-row-end { flex-wrap: wrap; }
.d-btn-ghost { background: transparent; border-color: transparent; color: var(--ink2, #47524D); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
