/* RVW Digital Cloud — styles for the 3D viewer, the QR viewer page, the digital-product
   webshop, Mijn digitale producten and the Digital Products admin. Builds on the tokens
   in site.css (--ink, --gold, --line, --radius, ...) so everything matches the site. */

/* ---- Shared 3D viewer (rvw-model-viewer.js) --------------------------------------- */
.rvw-viewer{position:relative;overflow:hidden;min-height:260px;border:1px solid var(--line);border-radius:var(--radius);background:radial-gradient(circle at 50% 38%,#ffffff 0%,#f6f3ee 52%,#ebe4d8 100%)}
.rvw-viewer-stage{position:absolute;inset:0}
.rvw-viewer-canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none;outline:none;-webkit-tap-highlight-color:transparent}
.rvw-viewer-canvas:active{cursor:grabbing}
.rvw-viewer-canvas:focus-visible{box-shadow:inset 0 0 0 3px rgba(184,134,82,.5)}
.rvw-viewer-toolbar{position:absolute;top:12px;right:12px;z-index:3;display:flex;gap:8px}
.rvw-viewer-button{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 13px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--ink);font-size:.8rem;font-weight:800;box-shadow:0 6px 18px rgba(68,68,68,.12)}
.rvw-viewer-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.rvw-viewer-button:hover,.rvw-viewer-button:focus-visible{border-color:var(--gold);color:var(--gold-dark)}
.rvw-viewer-status{position:absolute;top:50%;left:50%;z-index:2;transform:translate(-50%,-50%);width:min(320px,calc(100% - 32px));padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:var(--shadow);color:var(--ink);font-size:.86rem;font-weight:700;text-align:center}
.rvw-viewer-status[hidden]{display:none}
.rvw-viewer-status.is-error{color:#b3261e}
.rvw-viewer-progress{display:block;height:5px;margin-top:10px;border-radius:5px;background:var(--line);overflow:hidden}
.rvw-viewer-progress span{display:block;height:100%;background:linear-gradient(90deg,#c99a66,#a5754a);transition:width .15s}
.rvw-viewer-hint{position:absolute;bottom:14px;left:50%;z-index:2;transform:translateX(-50%);max-width:calc(100% - 24px);padding:7px 14px;border-radius:999px;background:rgba(68,68,68,.84);color:#fff;font-size:.76rem;font-weight:700;text-align:center;pointer-events:none;transition:opacity .45s}
.rvw-viewer-hint.is-hidden{opacity:0}
.rvw-viewer.is-pseudo-fullscreen{position:fixed;inset:0;z-index:6000;height:100vh!important;height:100dvh!important;min-height:0;border:0;border-radius:0}
.rvw-viewer:fullscreen{border:0;border-radius:0}
.rvw-viewer:-webkit-full-screen{width:100%;height:100%;border-radius:0}
html.rvw-viewer-lock-scroll,html.rvw-viewer-lock-scroll body{overflow:hidden}
@media(max-width:560px){
  .rvw-viewer-button{width:44px;height:44px;padding:0;justify-content:center}
  .rvw-viewer-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
}

/* ---- QR viewer page (/v/{publicId}) ------------------------------------------------ */
.dcv-body{display:flex;flex-direction:column;min-height:100vh;background:var(--cream)}
.dcv-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.dcv-brand{display:inline-flex;align-items:center;gap:9px;color:var(--ink);font-size:.78rem;font-weight:900;letter-spacing:.14em;text-decoration:none}
.dcv-brand img{width:auto;height:28px}
.dcv-topbar-link{padding:7px 12px;border:1px solid var(--gold);border-radius:10px;color:var(--gold-dark);font-size:.8rem;font-weight:800;text-decoration:none}
.dcv-main{flex:1;display:grid;gap:14px;width:min(1180px,100%);margin:0 auto;padding:16px 16px 28px}
.dcv-main>*{min-width:0}
.dcv-label{display:inline-flex;margin-bottom:4px;color:var(--gold-dark);font-size:.72rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.dcv-header h1{margin:0 0 6px;font-size:clamp(1.55rem,6vw,2.5rem);line-height:1.08;letter-spacing:-.03em}
.dcv-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;color:var(--muted);font-size:.9rem;font-weight:700}
.dcv-revision{color:var(--gold-dark)}
.dcv-part-focus{display:inline-block;margin:10px 0 0;padding:7px 12px;border-radius:10px;background:#fbf3e7;border:1px solid #ecd9bd;font-size:.88rem}
.dcv-notice{padding:12px 14px;border:1px solid #f3c5c0;border-radius:14px;background:#fdecea;color:#8a2a22;font-size:.88rem;font-weight:700}
.dcv-notice-admin{border-color:#dfbd76;background:#fff5df;color:#6e5731}
.dcv-layout{display:grid;gap:14px}
.dcv-layout>*{min-width:0}
.dcv-side{display:grid;gap:14px;align-content:start}
.dcv-viewer{height:62vh;height:min(62svh,600px);min-height:300px}
.dcv-viewer-placeholder{display:grid;place-items:center;gap:12px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--muted);text-align:center}
.dcv-viewer-placeholder img{max-height:70%;border-radius:14px;object-fit:contain}
.dcv-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dcv-info div{padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff}
.dcv-info span{display:block;color:var(--muted);font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.dcv-info strong{display:block;font-size:.98rem;overflow-wrap:anywhere}
.dcv-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dcv-action{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:.88rem;font-weight:800;text-align:center;text-decoration:none}
.dcv-action:hover,.dcv-action[aria-expanded="true"]{border-color:var(--gold);background:#fbf6ef;color:var(--gold-dark)}
.dcv-action-primary{grid-column:1/-1;border-color:transparent;background:linear-gradient(135deg,#c99a66,#a5754a);color:#fff;box-shadow:0 10px 22px rgba(184,134,82,.24)}
.dcv-action-primary:hover{background:linear-gradient(135deg,#d5ab7a,#8f6540);color:#fff}
/* "Favorieten" on the viewer page: a star row that opens a small project form */
.dcv-favorite{border:1px solid var(--line);border-radius:14px;background:#fff}
.dcv-favorite>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 14px;color:var(--ink);font-size:.9rem;font-weight:800;cursor:pointer;list-style:none}
.dcv-favorite>summary::-webkit-details-marker{display:none}
.dcv-favorite>summary:hover,.dcv-favorite>summary:focus-visible,.dcv-favorite[open]>summary{color:var(--gold-dark)}
.dcv-favorite-star{flex:none;color:var(--gold);font-size:1.35rem;line-height:1}
.dcv-favorite-label{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dcv-favorite.is-saved{border-color:#ecd9bd;background:#fbf6ef}
.dcv-favorite-form{display:grid;gap:6px;padding:0 14px 12px}
.dcv-favorite-form label{color:var(--muted);font-size:.78rem;font-weight:800}
.dcv-favorite-row{display:flex;gap:8px}
.dcv-favorite-row input{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;font-size:.92rem}
.dcv-favorite-row input:focus{border-color:var(--gold);outline:2px solid rgba(184,134,82,.25);outline-offset:0}
.dcv-favorite-row .button{flex:none;min-height:44px}
.dcv-favorite-remove-form{padding:0 14px 12px}
.dcv-favorite-remove{padding:0;border:0;background:none;color:var(--muted);font-size:.8rem;font-weight:800;text-decoration:underline;cursor:pointer}
.dcv-favorite-remove:hover,.dcv-favorite-remove:focus-visible{color:#8a2a22}
@media(max-width:420px){.dcv-favorite-row{flex-direction:column}.dcv-favorite-row .button{width:100%}}
.dcv-access{padding:14px 16px;border:1px dashed #c18b34;border-radius:16px;background:#fff7e6;color:#6d4c18;font-size:.9rem}
.dcv-access p{margin:0 0 10px}
.dcv-access-actions{display:flex;flex-wrap:wrap;gap:8px}
.dcv-panel{padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.dcv-panel[hidden]{display:none}
.dcv-panel h2{margin:0 0 10px;font-size:1.1rem}
.dcv-locked{margin:0 0 10px;color:var(--muted);font-size:.88rem}
.dcv-file-list,.dcv-part-list{margin:0 0 12px;padding:0;list-style:none}
.dcv-file-list li,.dcv-part-list li{border-bottom:1px solid var(--line)}
.dcv-file-list li:last-child,.dcv-part-list li:last-child{border-bottom:0}
.dcv-file-list a,.dcv-file-list li>span{display:block;padding:11px 2px;color:var(--ink);text-decoration:none}
.dcv-file-list a:hover strong{color:var(--gold-dark)}
.dcv-file-list strong{display:block;overflow-wrap:anywhere}
.dcv-file-list span span,.dcv-file-list a span,.dcv-part-list span{display:block;color:var(--muted);font-size:.8rem}
.dcv-file-list.is-locked li>span{color:var(--muted)}
.dcv-part-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 2px}
.dcv-part-list li.is-focus{margin:0 -8px;padding:10px;border-radius:12px;background:#fbf3e7}
.dcv-part-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.dcv-chip{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:.78rem;font-weight:800;text-decoration:none;white-space:nowrap}
.dcv-chip[aria-pressed="true"]{border-color:var(--gold);background:var(--gold);color:#fff}
.dcv-chip:disabled{opacity:.6;cursor:default}
.dcv-publicid{margin:0;color:var(--muted);font-size:.76rem;text-align:center}
.dcv-message-card{max-width:560px;margin:8vh auto;padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);text-align:center}
.dcv-message-card h1{margin:0 0 10px;font-size:1.6rem;line-height:1.15}
.dcv-message-card p{color:var(--muted)}
.dcv-footer{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;padding-bottom:max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:.76rem}
.dcv-footer a{color:var(--gold-dark);font-weight:800;text-decoration:none}
@media(min-width:900px){
  .dcv-main{padding:24px 24px 36px}
  .dcv-layout{grid-template-columns:minmax(0,1.45fr) minmax(0,.75fr);align-items:start}
  .dcv-stage-wrap{position:sticky;top:72px}
  .dcv-viewer{height:calc(100vh - 150px);max-height:760px}
  .dcv-publicid{text-align:left}
}
@media(max-width:360px){.dcv-actions{grid-template-columns:1fr}}

/* ---- Admin: Digitale producten ----------------------------------------------------- */
.dc-admin-section-nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff}
.dc-admin-section-nav a{padding:8px 14px;border-radius:10px;color:var(--muted);font-size:.84rem;font-weight:800;text-decoration:none}
.dc-admin-section-nav a:hover{background:var(--cream);color:var(--ink)}
.dc-admin-section-nav a.active{background:linear-gradient(135deg,#c99a66,#a5754a);color:#fff}
.dc-admin-product-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.dc-admin-product-head h2{margin:0 0 6px;font-size:1.3rem}
.dc-admin-product-head p{margin:0}
.dc-admin-product-head .admin-badge{margin:0 6px 0 0}
.dc-admin-tabs{display:flex;gap:2px;margin-bottom:18px;border-bottom:1px solid var(--line);overflow-x:auto}
.dc-admin-tabs a{padding:10px 16px;border-bottom:3px solid transparent;color:var(--muted);font-size:.88rem;font-weight:800;text-decoration:none;white-space:nowrap}
.dc-admin-tabs a:hover{color:var(--ink)}
.dc-admin-tabs a.active{border-bottom-color:var(--gold);color:var(--gold-dark)}
.dc-form-heading{margin:10px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:.95rem}
.admin-form-grid>.dc-form-heading:first-child{margin-top:0;padding-top:0;border-top:0}
.dc-form-hint{margin:0;color:var(--muted);font-size:.8rem;font-weight:500}
.dc-flags{white-space:nowrap}
.dc-flag{display:inline-block;margin-right:3px;padding:2px 6px;border:1px solid var(--line);border-radius:6px;color:#b5b5b5;font-size:.66rem;font-weight:900;text-decoration:line-through}
.dc-flag.on{border-color:#bfe6cf;background:#e8f6ee;color:#1f7a4d;text-decoration:none}
.dc-status-gepubliceerd{border-color:#bfe6cf;background:#e8f6ee;color:#1f7a4d}
.dc-status-gearchiveerd{color:var(--muted)}
.dc-access-actief{border-color:#bfe6cf;background:#e8f6ee;color:#1f7a4d}
.dc-access-wachtopbetaling{border-color:#dfbd76;background:#fff5df;color:#6e5731}
.dc-access-ingetrokken,.dc-access-geannuleerd{border-color:#f3c5c0;background:#fdecea;color:#b3261e}
.dc-alert-info{border:1px solid #dfbd76;background:#fff5df;color:#6e5731;font-weight:600}
.dc-revision-picker{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;font-size:.86rem;font-weight:800}
.dc-revision-picker a:not(.text-link){display:inline-flex;align-items:baseline;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);text-decoration:none}
.dc-revision-picker a.active{border-color:var(--gold);background:#fbf3e7;color:var(--gold-dark)}
.dc-revision-picker small{color:var(--muted);font-weight:700}
.dc-upload-form{margin-bottom:18px}
.dc-upload-form h2,.dc-file-group h2{display:flex;align-items:center;gap:6px}
.dc-file-group{margin-bottom:14px}
.dc-inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.dc-inline-form input{min-width:0;flex:1 1 120px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;font-size:.84rem}
.dc-file-name{flex:1 1 140px;overflow:hidden;color:var(--muted);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}
.dc-row-current td{background:#fbf8f2}
.dc-row-denied td{color:#b3261e}
.dc-cell-input{width:100%;min-width:90px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;font-size:.84rem}
.dc-cell-narrow{min-width:64px;max-width:90px}
.dc-two-col{margin-top:18px}
.dc-two-col .admin-panel:first-child{grid-column:auto}
.dc-qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;margin-top:18px}
.dc-qr-card{display:flex;gap:16px;align-items:flex-start}
.dc-qr-card img{flex:0 0 auto;width:140px;height:140px;border:1px solid var(--line);border-radius:10px;background:#fff;image-rendering:pixelated}
.dc-qr-card h3{margin:2px 0 4px;font-size:1rem}
.dc-qr-card p{margin:0 0 6px;font-size:.84rem}
.dc-qr-card form{margin-top:8px}
.dc-qr-kind{color:var(--gold-dark);font-size:.68rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.dc-qr-label{color:var(--muted);font-style:italic}
.dc-qr-card>div{min-width:0;overflow-wrap:anywhere}
.dc-qr-card .admin-row-actions{flex-wrap:wrap;row-gap:4px}
@media(max-width:600px){.dc-qr-card{flex-direction:column}.dc-qr-grid{grid-template-columns:minmax(0,1fr)}}

/* ---- Webshop: digitale producten ---------------------------------------------------- */
.dc-product-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.dc-product-card{padding:0 0 24px;overflow:hidden}
.dc-product-card>*:not(.dc-card-media){margin-left:24px;margin-right:24px}
.dc-product-card .product-top{margin-top:18px}
.dc-card-media{display:block;aspect-ratio:16/10;margin-bottom:0;background:radial-gradient(circle at 50% 40%,#fff,#efe8dc);border-bottom:1px solid var(--line)}
.dc-card-media img{width:100%;height:100%;object-fit:cover}
.dc-card-placeholder{display:grid;place-items:center;width:100%;height:100%;min-height:160px;color:var(--gold);font-size:2.2rem;font-weight:900;letter-spacing:.08em;background:radial-gradient(circle at 50% 40%,#fff,#efe8dc)}
.dc-content-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.dc-content-badges span{padding:4px 9px;border:1px solid #ecd9bd;border-radius:8px;background:#fbf3e7;color:var(--gold-dark);font-size:.7rem;font-weight:900;letter-spacing:.06em}
.dc-old-price{color:var(--muted);font-weight:600;font-size:.85em}
.dc-vat-note{display:block;color:var(--muted);font-size:.72rem;font-weight:600}
.dc-cta-actions{display:flex;flex-wrap:wrap;gap:10px}
.dc-product-visual{min-width:0}
.dc-product-viewer{height:440px;box-shadow:var(--shadow)}
.dc-preview-note{margin:10px 4px 0;color:var(--muted);font-size:.8rem}
.dc-product-image{width:100%;border-radius:24px;border:1px solid var(--line);box-shadow:var(--shadow);background:#fff}
div.dc-product-image{aspect-ratio:4/3}
.dc-spec-list{margin:0}
.dc-spec-list div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.dc-spec-list div:last-child{border-bottom:0}
.dc-spec-list dt{color:var(--muted)}
.dc-spec-list dd{margin:0;font-weight:800;text-align:right}
.dc-wide-card{grid-column:1/-1}
.dc-rich-text{color:var(--muted)}
.dc-checkout-total{color:var(--gold-dark)!important;font-size:1.3rem;font-weight:900}

/* ---- Mijn RVW: Mijn digitale producten ---------------------------------------------- */
.dc-account-links{display:flex;flex-wrap:wrap;gap:10px;justify-self:end}
.dc-account-alert{margin-bottom:22px}
.dc-owned-list{display:grid;gap:18px}
.dc-owned-card{display:grid;grid-template-columns:220px 1fr;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.dc-owned-media{min-height:160px;background:radial-gradient(circle at 50% 40%,#fff,#efe8dc)}
.dc-owned-media img{width:100%;height:100%;object-fit:cover}
.dc-owned-body{padding:22px 24px}
.dc-owned-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.dc-owned-head h2{margin:0;font-size:1.35rem}
.dc-owned-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 16px;color:var(--muted);font-size:.86rem}
.dc-owned-actions{display:flex;flex-wrap:wrap;gap:10px}
.dc-owned-pending{margin:0;padding:12px 14px;border:1px dashed #dfbd76;border-radius:12px;background:#fff9ee;color:#6e5731;font-size:.9rem}
@media(max-width:980px){.dc-account-links{justify-self:start}.dc-product-viewer{height:380px}}
@media(max-width:720px){
  .dc-owned-card{grid-template-columns:1fr}
  .dc-owned-media{aspect-ratio:16/9;min-height:0}
  .dc-owned-actions .button{width:100%}
  .dc-product-viewer{height:340px}
}

/* ---- Configurator / Product Planner 3D-preview ------------------------------------- */
.cfg-3d-preview{display:grid;gap:8px}
.cfg-3d-viewer{height:420px;box-shadow:var(--shadow)}
.cfg-3d-note{margin:0 4px;color:var(--muted);font-size:.78rem}
@media(max-width:720px){.cfg-3d-viewer{height:340px}}

/* ---- RVW Viewer app: start page (/v/) ---------------------------------------------- */
.dcv-start{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;width:min(640px,100%);margin:4vh auto 0}
.dcv-start-card,.dcv-install{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}
/* Install hints are for the browser only: never inside the installed app, whatever rvw-app.js detects. */
@media (display-mode:standalone),(display-mode:fullscreen),(display-mode:minimal-ui),(display-mode:window-controls-overlay){.dcv-install,.dcv-app-banner{display:none!important}}
.dcv-start-card h1{margin:0 0 8px;font-size:clamp(1.8rem,6vw,2.6rem);line-height:1.08;letter-spacing:-.03em}
.dcv-start-card>p{margin:0 0 18px;color:var(--muted)}
.dcv-code-form label{display:block;margin-bottom:6px;font-size:.86rem;font-weight:800}
.dcv-code-row{display:flex;gap:8px}
.dcv-code-row input{flex:1;min-width:0;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:1.15rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.dcv-code-row input:focus{outline:3px solid rgba(184,134,82,.2);border-color:var(--gold)}
.dcv-code-row .button{min-height:48px}
.dcv-code-error{margin:8px 0 0;color:#b3261e;font-size:.86rem;font-weight:700}
.dcv-code-help{margin:10px 0 0;color:var(--muted);font-size:.82rem}
.dcv-start-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.dcv-install[hidden],.dcv-install [hidden]{display:none}
.dcv-install h2{margin:0 0 6px;font-size:1.1rem}
.dcv-install p{margin:0 0 12px;color:var(--muted);font-size:.9rem}
.dcv-install-ios{margin:0!important;color:var(--ink)!important}
@media(max-width:420px){.dcv-code-row{flex-direction:column}.dcv-code-row .button{width:100%}}

/* ---- Bilingual additions -------------------------------------------------------------- */
.dcv-topbar-actions{display:flex;align-items:center;gap:12px}
.dcv-brand span,.dcv-topbar-link{white-space:nowrap}
@media(max-width:440px){
  .dcv-topbar{padding-left:12px;padding-right:12px;gap:8px}
  .dcv-brand{gap:7px;font-size:.66rem;letter-spacing:.08em}
  .dcv-brand img{height:22px}
  .dcv-topbar-actions{gap:8px}
  .dcv-topbar-actions .language-switch{gap:4px}
  .dcv-topbar-link{padding:6px 9px;font-size:.76rem}
}
/* Smallest phones: the logo alone, so the name never runs under the language flags. */
@media(max-width:360px){
  .dcv-brand span{display:none}
}

/* ---- App download page (/app) ------------------------------------------------------- */
.dcv-install-more{margin:12px 0 0!important;font-size:.86rem!important}
.dc-app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}
/* /app opened inside the installed app: say so, and drop "Open in de browser". */
.dc-app-installed{display:none}
@media (display-mode:standalone),(display-mode:fullscreen),(display-mode:window-controls-overlay){
  .dc-app-installed{display:flex;align-items:center;gap:10px;max-width:560px;margin:18px 0 0;padding:10px 14px;border:1px solid #cfe8d6;border-radius:12px;background:#f1faf3;color:#23633a;font-size:.9rem;font-weight:700}
  .dc-app-installed::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#58c07a;box-shadow:0 0 0 3px rgba(88,192,122,.2)}
  .dc-app-browser-only{display:none}
}
@media(max-width:760px){.dc-app-grid{grid-template-columns:1fr}}
.dc-app-card{display:flex;flex-direction:column}
.dc-app-card.is-device{border-color:var(--gold);box-shadow:0 0 0 2px rgba(184,134,82,.18),var(--shadow)}
.dc-app-card h3{margin:14px 0 8px}
.dc-app-card>p{color:var(--muted)}
.product-card .dc-app-steps{list-style:none;counter-reset:dc-step;margin:0;padding:0;color:var(--muted)}
.product-card .dc-app-steps li{counter-increment:dc-step;padding:5px 0 5px 30px}
.product-card .dc-app-steps li:before{content:counter(dc-step);top:6px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--cream);font-size:.72rem}
.dc-app-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:auto;padding-top:16px}
.dc-app-actions .button{max-width:100%;white-space:normal;text-align:center}
.dc-app-soon{opacity:.65;cursor:default;pointer-events:none}
.dc-app-note{color:var(--muted);font-size:.8rem;line-height:1.45}

/* ---- "Download the app" banner on a scanned product page (/v/{code}) ------------------- */
.dcv-app-banner{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--gold);border-radius:var(--radius);background:linear-gradient(135deg,#fffaf0,#f5e7cc);box-shadow:var(--shadow)}
.dcv-app-banner[hidden]{display:none}
.dcv-app-banner img{flex:none;width:44px;height:44px;border-radius:11px}
.dcv-app-banner-text{flex:1;min-width:0}
.dcv-app-banner-text strong{display:block;color:var(--ink);font-size:.98rem;line-height:1.25}
.dcv-app-banner-text span{display:block;margin-top:2px;color:var(--muted);font-size:.84rem}
.dcv-app-banner .button{flex:none;white-space:nowrap}
.dcv-app-banner-close{flex:none;width:32px;height:32px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer}
.dcv-app-banner-close:hover,.dcv-app-banner-close:focus-visible{background:rgba(184,134,82,.14);color:var(--ink)}
@media(max-width:560px){
  .dcv-app-banner{display:grid;grid-template-columns:44px minmax(0,1fr) 32px;grid-template-areas:"icon text close" "cta cta cta";gap:10px 12px}
  .dcv-app-banner img{grid-area:icon}
  .dcv-app-banner-text{grid-area:text}
  .dcv-app-banner-close{grid-area:close;align-self:start}
  .dcv-app-banner .button{grid-area:cta;justify-content:center;width:100%}
}

/* ---- "Recent bekeken" (viewer start page /v/ and Mijn digitale producten) ------------- */
.dc-recent{padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}
.dc-recent[hidden]{display:none}
.section .dc-recent{margin-bottom:26px}
.dc-recent-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.dc-recent-head h2{margin:0;font-size:1.15rem}
.dc-recent-head p{margin:2px 0 0;color:var(--muted);font-size:.82rem}
.dc-recent-clear{flex:none;padding:6px 10px;white-space:nowrap;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:.78rem;font-weight:800;cursor:pointer}
.dc-recent-clear:hover,.dc-recent-clear:focus-visible{border-color:var(--gold);color:var(--gold-dark)}
.dc-recent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.dc-recent-item{display:flex;align-items:center;gap:4px;min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .15s}
.dc-recent-item:hover,.dc-recent-item:focus-within{border-color:var(--gold)}
.dc-recent-link{display:flex;flex:1;align-items:center;gap:12px;min-width:0;padding:9px 0 9px 9px;color:var(--ink);text-decoration:none}
.dc-recent-thumb{display:grid;flex:none;place-items:center;width:48px;height:48px;overflow:hidden;border-radius:10px;background:var(--cream);color:var(--gold-dark);font-size:.78rem;font-weight:900}
.dc-recent-thumb img{width:100%;height:100%;object-fit:cover}
.dc-recent-text{display:grid;min-width:0}
.dc-recent-text strong,.dc-recent-text span,.dc-recent-text small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dc-recent-text strong{font-size:.92rem}
.dc-recent-text span{color:var(--muted);font-size:.8rem}
.dc-recent-text small{color:var(--gold-dark);font-size:.74rem;font-weight:700}
.dc-recent-item form{flex:none;margin:0}
.dc-recent-remove{width:36px;height:36px;margin-right:4px;border:0;border-radius:9px;background:none;color:var(--muted);font-size:1.3rem;line-height:1;cursor:pointer}
.dc-recent-remove:hover,.dc-recent-remove:focus-visible{background:rgba(184,134,82,.14);color:var(--ink)}
@media(max-width:760px){.dc-recent{padding:16px}.dc-recent-list{grid-template-columns:1fr}}
/* "Favorieten" block: the Recent bekeken look, grouped by project */
.dc-favorites .dc-recent-head{margin-bottom:6px}
.dc-fav-group+.dc-fav-group{margin-top:14px}
.dc-fav-project{display:flex;align-items:baseline;gap:8px;margin:8px 0 8px;font-size:.92rem}
.dc-fav-project span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dc-fav-project small{flex:none;padding:1px 8px;border-radius:999px;background:var(--cream);color:var(--gold-dark);font-size:.72rem;font-weight:900}

/* ---- Temporary test version on /app (setting DigitalCloud:TestAppUrl) ----------------- */
.dc-app-test{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-bottom:23px;padding:18px 20px;border:2px dashed var(--gold);border-radius:var(--radius);background:#fffaf0}
.dc-app-test p{flex:1 1 320px;margin:0;color:var(--muted)}
.dc-app-test .button{flex:none}

/* ---- RAL picker for the configurator colour field (rvw-ral-picker.js) ------------------- */
.ral-field{display:flex;align-items:center;gap:10px;margin-top:8px}
.ral-field-swatch{flex:none;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.ral-field-swatch.is-empty{background:repeating-linear-gradient(45deg,#f4f1ea 0 6px,#e9e3d6 6px 12px)}
.ral-open{min-height:38px;padding:0 14px}
.ral-dialog{width:min(760px,calc(100vw - 24px));max-height:min(86vh,760px);padding:0;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 60px rgba(30,24,16,.28)}
.ral-dialog::backdrop{background:rgba(24,20,14,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.ral-dialog[open]{display:flex;flex-direction:column;animation:ral-in .18s ease-out}
@keyframes ral-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.ral-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 10px}
.ral-dialog-head h2{margin:0;font-size:1.15rem}
.ral-dialog-note{margin:3px 0 0;color:var(--muted);font-size:.8rem}
.ral-dialog-close{flex:none;width:36px;height:36px;border:0;border-radius:10px;background:none;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer}
.ral-dialog-close:hover,.ral-dialog-close:focus-visible{background:var(--cream);color:var(--ink)}
.ral-search{margin:0 20px 10px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:12px;font-size:.95rem}
.ral-search:focus{outline:3px solid rgba(184,134,82,.2);border-color:var(--gold)}
.ral-grid{overflow:auto;padding:0 20px 20px}
.ral-grid h3{margin:14px 0 8px;color:var(--gold-dark);font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.ral-family{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.ral-chip{display:flex;align-items:center;gap:10px;min-width:0;padding:7px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .15s,transform .15s}
.ral-chip:hover,.ral-chip:focus-visible{border-color:var(--gold);transform:translateY(-1px)}
.ral-chip[aria-pressed=true]{border-color:var(--gold);box-shadow:0 0 0 2px rgba(184,134,82,.35)}
.ral-chip-color{flex:none;width:34px;height:34px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.ral-chip strong,.ral-chip small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ral-chip strong{font-size:.8rem}
.ral-chip small{color:var(--muted);font-size:.72rem}
.ral-empty{color:var(--muted)}
@media(max-width:560px){.ral-dialog{width:100%;max-width:100%;max-height:92vh;margin:auto 0 0;border-radius:18px 18px 0 0}.ral-family{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- "STEP openen" in the app (/v/step) and the full 3D viewer inside the app ------------ */
.dcv-step{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-content:start}
.dcv-step-head h1{margin:2px 0 6px;font-size:clamp(1.6rem,5vw,2.2rem);letter-spacing:-.02em}
.dcv-step-head p{margin:0;max-width:640px;color:var(--muted);font-size:.92rem}
.dcv-step-pick{position:relative;display:grid;justify-items:center;gap:6px;padding:34px 20px;border:2px dashed rgba(184,134,82,.55);border-radius:var(--radius);background:radial-gradient(circle at 50% 0%,#fffaf0 0%,#f6efe2 100%);text-align:center;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.dcv-step-pick:hover,.dcv-step-pick:focus-within{border-color:var(--gold);box-shadow:0 10px 28px rgba(120,84,40,.14);transform:translateY(-1px)}
.dcv-step-pick[hidden]{display:none}
.dcv-step-pick input{position:absolute;inset:0;opacity:0;cursor:pointer}
.dcv-step-pick-icon svg{width:46px;height:46px;fill:none;stroke:var(--gold-dark);stroke-width:1.4;stroke-linejoin:round}
.dcv-step-pick strong{font-size:1.05rem}
.dcv-step-pick span{color:var(--muted);font-size:.84rem}
.dcv-step-error{margin:0;padding:12px 14px;border:1px solid #f3c5c0;border-radius:12px;background:#fdecea;color:#8a2a22;font-size:.88rem;font-weight:700}
/* The loaded files: one row per file with its status, a remove button, and "add more". */
.dcv-step-files{padding:10px 14px 8px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.dcv-step-files[hidden]{display:none}
.dcv-step-files-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:4px}
.dcv-step-files-head .button{padding:0 14px;min-height:44px;font-size:.84rem}
.dcv-step-list{display:grid;grid-template-columns:minmax(0,1fr);max-height:min(264px,34vh);margin:0;padding:0;overflow:auto;list-style:none}
.dcv-step-item{display:flex;align-items:center;gap:12px;padding:6px 4px;border-top:1px solid var(--line)}
.dcv-step-item:first-child{border-top:0}
.dcv-step-item[aria-current="true"]{border-radius:10px;background:#fbf5ea;box-shadow:inset 3px 0 0 var(--gold)}
.dcv-step-item>div{flex:1;min-width:0}
.dcv-step-item>div strong,.dcv-step-item>div span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dcv-step-item>div span{color:var(--muted);font-size:.8rem}
.dcv-step-item[data-state="failed"]>div span{color:#8a2a22;font-weight:700}
.dcv-step-file-icon{display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#e8cf9d,#b88652);color:#3a2a16;font-size:.62rem;font-weight:900;letter-spacing:.06em}
.dcv-step-item[data-state="loading"] .dcv-step-file-icon{animation:dcv-step-pulse 1.2s ease-in-out infinite}
.dcv-step-item[data-state="failed"] .dcv-step-file-icon{background:#f3d6d2;color:#8a2a22}
@keyframes dcv-step-pulse{50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){.dcv-step-item[data-state="loading"] .dcv-step-file-icon{animation:none}}
.dcv-step-remove{display:grid;flex:none;place-items:center;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer}
.dcv-step-remove:hover,.dcv-step-remove:focus-visible{background:#f6efe2;color:var(--ink)}
.dcv-full-viewer{position:relative;top:auto;z-index:auto;height:clamp(420px,calc(100dvh - 230px),900px)}
.dcv-full-viewer[hidden]{display:none}
@media(max-width:560px){.dcv-full-viewer{height:calc(100dvh - 200px)}}

/* ---- "Meten & volledige 3D" on the product page ------------------------------------------ */
.dcv-full-toggle{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
.dcv-full-toggle .button{display:inline-flex;align-items:center;gap:8px}
.dcv-full-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.dcv-full-toggle [hidden]{display:none}
.dcv-full-status{color:var(--muted);font-size:.84rem}
.dcv-stage-wrap .dcv-full-viewer{margin-top:10px}
.dcv-stage-wrap > .dcv-viewer[hidden]{display:none}

/* ---- Coating per side (rvw-ral-picker.js) ------------------------------------------------ */
.ral-source{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;border:0!important}
.ral-coating{display:grid;gap:10px;margin-top:6px;padding:12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fffdf8,#faf5ea)}
.ral-coating-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.ral-coating-title{color:var(--gold-dark);font-size:.72rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.ral-all{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 12px;font-size:.84rem}
.ral-all .ral-field-swatch{width:22px;height:22px;border-radius:6px}
.ral-sides{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:6px}
.ral-side{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 8px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .15s}
.ral-side:hover,.ral-side:focus-visible{border-color:var(--gold)}
.ral-side .ral-field-swatch{width:26px;height:26px;border-radius:7px}
.ral-side strong,.ral-side small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ral-side strong{font-size:.78rem}
.ral-side small{color:var(--muted);font-size:.7rem}
.ral-field-swatch.is-blank,.ral-chip-color.is-blank{background:linear-gradient(135deg,#d9dde1,#9aa1a8)!important}
.ral-field-swatch.is-mixed{background:conic-gradient(#d2aa6d 0 25%,#293133 0 50%,#d7d7d7 0 75%,#af2b1e 0)!important}
@media(max-width:560px){.ral-sides{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- App home (/v/): engineering look — graphite header with a gold drawing grid --------- */
.dcv-home{width:min(720px,100%)}
/* Signed in (the app): the home opens with the live 3D viewer — wider, so the model has room. */
.dcv-home-live{width:min(1120px,100%)}
.dcv-home-3d{overflow:hidden;border-radius:var(--radius);background:#1f2225;box-shadow:0 22px 50px rgba(20,22,24,.28)}
.dcv-home-3d-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:14px 18px;background:radial-gradient(120% 160% at 100% 0%,#3d4247 0%,#262a2e 60%,#1f2225 100%);color:#fff}
.dcv-home-3d-head .dcv-label{margin:0;color:#d6a86e}
.dcv-home-3d-head h1{margin:0;color:#fff;font-size:clamp(1.35rem,5vw,1.8rem);line-height:1.1;letter-spacing:-.03em}
.dcv-home-3d-head .dcv-home-user{margin:0!important}
.dcv-home-3d .dcv-full-viewer{height:clamp(340px,60vh,640px);margin:0;border-radius:0}
/* Phones: a bit lower, so the tiles peek out below (the page scrolls) and there is room to swipe outside the model. */
@media(max-width:560px){.dcv-home-3d .dcv-full-viewer{height:clamp(300px,52vh,520px)}}
.dcv-home-3d .pp-viewer-panel{height:100%;border-radius:0}
.dcv-home-3d-hint{margin:0;padding:10px 18px 12px;color:rgba(255,255,255,.72);font-size:.8rem}
/* Public demo (/v/demo). */
.dcv-demo-card h2{margin:0 0 8px;font-size:1.15rem}
.dcv-demo-card p{margin:0 0 14px;color:var(--muted)}
.dcv-demo-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:560px){.dcv-demo-actions .button{flex:1 1 100%}}
.dcv-demo-exit{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid rgba(214,168,110,.75);border-radius:999px;background:rgba(255,255,255,.07);color:#fff;font-size:.92rem;font-weight:800;text-decoration:none;white-space:nowrap;transition:background .2s,border-color .2s}
.dcv-demo-exit:hover,.dcv-demo-exit:focus-visible{background:rgba(214,168,110,.2);border-color:#d6a86e}
/* The way out of the demo: the website in a browser, the app's start screen inside the installed app. */
.dcv-demo-in-app{display:none!important}
@media (display-mode:standalone),(display-mode:fullscreen),(display-mode:minimal-ui),(display-mode:window-controls-overlay){
  .dcv-demo-in-browser{display:none!important}
  .dcv-demo-in-app{display:inline-flex!important}
}
/* Sheet-metal calculator page (/v/afkantlengte): 3D's tool (its own card) below the app header. */
.dcv-bend .dcv-bend-hero h1{font-size:clamp(1.8rem,6vw,2.4rem)}
.dcv-bend-body .pp-bend-tool{margin:0}
.dcv-home-hero{position:relative;overflow:hidden;padding:26px 22px 24px;border-radius:var(--radius);background:radial-gradient(120% 140% at 100% 0%,#3d4247 0%,#262a2e 55%,#1d2023 100%);color:#fff;box-shadow:0 22px 50px rgba(20,22,24,.28)}
.dcv-home-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(184,134,82,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(184,134,82,.16) 1px,transparent 1px);background-size:22px 22px;-webkit-mask-image:linear-gradient(210deg,#000 0%,transparent 62%);mask-image:linear-gradient(210deg,#000 0%,transparent 62%);pointer-events:none}
.dcv-home-hero::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border:1px solid rgba(214,168,110,.35);border-radius:50%;box-shadow:0 0 0 18px rgba(214,168,110,.06),0 0 0 44px rgba(214,168,110,.035);pointer-events:none}
.dcv-home-hero>*{position:relative}
.dcv-home-hero .dcv-label{color:#d6a86e}
.dcv-home-hero h1{margin:4px 0 8px;color:#fff;font-size:clamp(2rem,7vw,2.8rem);line-height:1.02;letter-spacing:-.035em}
.dcv-home-hero p{margin:0;max-width:520px;color:rgba(255,255,255,.74);font-size:.95rem}
.dcv-home-user{margin-top:14px!important;display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid rgba(214,168,110,.35);border-radius:999px;background:rgba(255,255,255,.06);color:#f1dfc2!important;font-size:.8rem!important;font-weight:700}
.dcv-home-user::before{content:"";width:7px;height:7px;border-radius:50%;background:#58c07a;box-shadow:0 0 0 3px rgba(88,192,122,.2)}
.dcv-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dcv-tile{display:grid;gap:4px;align-content:start;justify-items:start;text-align:left;font-weight:400;min-height:118px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 6px 18px rgba(40,34,26,.06);transition:transform .16s,border-color .16s,box-shadow .16s}
a.dcv-tile:hover,a.dcv-tile:focus-visible{transform:translateY(-2px);border-color:var(--gold);box-shadow:0 14px 30px rgba(120,84,40,.14)}
a.dcv-tile:active{transform:scale(.98)}
.dcv-tile strong{margin-top:6px;font-size:.96rem;line-height:1.2}
.dcv-tile span:not(.dcv-tile-icon){color:var(--muted);font-size:.8rem;font-weight:500;line-height:1.35}
.dcv-tile-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#f6ead3,#e7cfa4)}
.dcv-tile-icon svg{width:22px;height:22px;fill:none;stroke:#7a5534;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.dcv-tile-info{background:linear-gradient(180deg,#fffdf8,#faf4e8)}
.dcv-tile-accent{background:linear-gradient(135deg,#2a2e32,#1f2225);border-color:#2a2e32;color:#fff}
.dcv-tile-accent span:not(.dcv-tile-icon){color:rgba(255,255,255,.7)}
.dcv-tile-accent .dcv-tile-icon{background:linear-gradient(135deg,#d6a86e,#b88652)}
.dcv-tile-accent .dcv-tile-icon svg{stroke:#2a1d10}
/* The scan tile is a button: same look and feel as the link tiles. */
button.dcv-tile{width:100%;font:inherit;cursor:pointer}
button.dcv-tile:hover,button.dcv-tile:focus-visible{transform:translateY(-2px);border-color:var(--gold);box-shadow:0 14px 30px rgba(120,84,40,.14)}
button.dcv-tile:active{transform:scale(.98)}
/* "QR-code scannen" (rvw-scan.js): the live camera full screen, a gold frame to aim with. */
.dcv-scan{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:max(14px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));border:0;background:#15171a;color:#fff}
.dcv-scan[open]{display:grid;grid-template-rows:auto 1fr auto auto;gap:14px}
.dcv-scan::backdrop{background:#15171a}
.dcv-scan-head{display:flex;align-items:center;justify-content:space-between}
.dcv-scan-head h2{margin:0;color:#fff;font-size:1.1rem}
.dcv-scan-close{width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
.dcv-scan-view{position:relative;overflow:hidden;min-height:0;border-radius:22px;background:#000}
.dcv-scan-view video{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s}
.dcv-scan.is-live .dcv-scan-view video{opacity:1}
.dcv-scan-frame{position:absolute;left:50%;top:50%;width:min(64vw,300px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:18px;box-shadow:0 0 0 100vmax rgba(0,0,0,.35);background:linear-gradient(#d6a86e,#d6a86e) top left/34px 4px,linear-gradient(#d6a86e,#d6a86e) top left/4px 34px,linear-gradient(#d6a86e,#d6a86e) top right/34px 4px,linear-gradient(#d6a86e,#d6a86e) top right/4px 34px,linear-gradient(#d6a86e,#d6a86e) bottom left/34px 4px,linear-gradient(#d6a86e,#d6a86e) bottom left/4px 34px,linear-gradient(#d6a86e,#d6a86e) bottom right/34px 4px,linear-gradient(#d6a86e,#d6a86e) bottom right/4px 34px;background-repeat:no-repeat}
.dcv-scan-frame span{position:absolute;left:8%;right:8%;top:50%;height:2px;border-radius:2px;background:rgba(214,168,110,.85);box-shadow:0 0 12px rgba(214,168,110,.8);opacity:0}
.dcv-scan.is-live .dcv-scan-frame span{opacity:1}
@media(prefers-reduced-motion:no-preference){.dcv-scan.is-live .dcv-scan-frame span{animation:dcv-scan-line 2.2s ease-in-out infinite}}
@keyframes dcv-scan-line{0%,100%{top:12%}50%{top:88%}}
.dcv-scan.is-found .dcv-scan-frame{box-shadow:0 0 0 100vmax rgba(0,0,0,.35),inset 0 0 0 3px #58c07a}
.dcv-scan.is-unsupported .dcv-scan-view,.dcv-scan.is-error .dcv-scan-view{display:none}
.dcv-scan.is-unsupported,.dcv-scan.is-error{grid-template-rows:auto auto auto 1fr}
.dcv-scan-status{margin:0;color:rgba(255,255,255,.85);font-size:.95rem;text-align:center}
.dcv-scan-code{justify-self:center;background:transparent!important;border-color:rgba(255,255,255,.35)!important;color:#fff!important}
/* Narrow phones (320–360px): tiles may shrink below their longest word instead of widening the page. */
.dcv-home-actions>*{min-width:0}
.dcv-tile{overflow-wrap:anywhere;hyphens:auto}
/* Three tiles (a customer) or four (an admin): never an empty slot next to the last one. */
@media(max-width:719.98px){.dcv-home-actions>:last-child:nth-child(odd){grid-column:1/-1}}
@media(min-width:720px){.dcv-home-actions{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}
/* Calm entrance and page-to-page transitions (skipped when the device asks for less motion). */
@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.2s}
  .dcv-home>*,.dcv-auth>*{animation:dcv-rise .42s cubic-bezier(.2,.7,.2,1) both}
  .dcv-home>*:nth-child(2),.dcv-auth>*:nth-child(2){animation-delay:.05s}
  .dcv-home>*:nth-child(3),.dcv-auth>*:nth-child(3){animation-delay:.1s}
  .dcv-home>*:nth-child(4){animation-delay:.15s}
}
@keyframes dcv-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* Account pages inside the app (Viewer/_AppAuthLayout): app header, the page's form as a card */
.dcv-auth{width:min(480px,100%)}
.dcv-auth-hero{display:flex;align-items:center;gap:16px}
.dcv-auth-hero h1{margin:2px 0 6px;font-size:clamp(1.7rem,6vw,2.2rem)}
.dcv-auth-hero p{font-size:.88rem}
.dcv-auth-mark{flex:none;width:58px;height:58px;border-radius:15px;box-shadow:0 0 0 1px rgba(214,168,110,.45),0 10px 24px rgba(0,0,0,.35)}
.dcv-auth-body .page-hero{display:none}
.dcv-auth-body .section{padding:0}
.dcv-auth-body .container{width:100%;max-width:none}
.dcv-auth-body .contact-form{padding:22px;border-radius:var(--radius)}
.dcv-auth-body .contact-form input:not([type=checkbox]){min-height:48px}
.dcv-auth-body .contact-form .button-full{min-height:50px}
/* The app never keeps a session ("Inloggen bij elke start" on /app): no "Ingelogd blijven" here. */
.dcv-auth-body label.check-row:has(#Input_RememberMe){display:none}
.dcv-auth-foot{display:flex;align-items:center;justify-content:center;gap:7px;margin:0;color:var(--muted);font-size:.76rem;font-weight:700}
.dcv-auth-foot svg{width:15px;height:15px;fill:none;stroke:var(--gold-dark);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:420px){.dcv-auth-hero{align-items:flex-start}.dcv-auth-mark{width:48px;height:48px;border-radius:13px}.dcv-auth-body .contact-form{padding:18px}}
/* The app's opening screen (the login at every start): the live STEP cube on a stage in the
   dark header — glow behind it, a shadow under it — and the title centred below. */
.dcv-auth-hero-cube{padding:0 0 24px;text-align:center}
.dcv-cube-stage{position:relative;display:grid;place-items:center;height:clamp(210px,62vw,270px);margin-bottom:4px}
.dcv-cube-stage::before{content:"";position:absolute;left:50%;top:50%;width:min(300px,82%);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(214,168,110,.26),rgba(214,168,110,0) 64%);pointer-events:none}
.dcv-cube-stage::after{content:"";position:absolute;left:50%;bottom:16px;width:44%;height:18px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.5),rgba(0,0,0,0));pointer-events:none}
.dcv-cube{position:relative;z-index:1;width:min(230px,68%);aspect-ratio:1;touch-action:none}
.dcv-cube-tag{position:absolute;z-index:1;top:14px;right:14px;padding:4px 9px;border:1px solid rgba(214,168,110,.4);border-radius:999px;background:rgba(0,0,0,.28);color:#e9cfa6;font-size:.64rem;font-weight:800;letter-spacing:.08em;opacity:0;transition:opacity .5s}
.dcv-cube[data-state="ready"]~.dcv-cube-tag{opacity:1}
/* While the STEP engine loads (first start) or without WebGL, rvw-logo-cube.js shows the logo
   image; on this stage that becomes the app icon, breathing softly until the cube takes over. */
.dcv-cube>img{inset:21%!important;width:58%!important;height:58%!important;border-radius:24%;box-shadow:0 0 0 1px rgba(214,168,110,.55),0 14px 30px rgba(0,0,0,.45)}
@media(prefers-reduced-motion:no-preference){.dcv-cube[data-state="loading"]>img{animation:dcv-cube-wait 1.8s ease-in-out infinite}}
@keyframes dcv-cube-wait{50%{transform:scale(.94)}}
.dcv-cube[data-state="ready"]>img{display:none}
.dcv-auth-hero-text{padding:0 22px}
.dcv-auth-hero-cube h1{margin:4px 0 6px;color:#fff;font-size:clamp(1.8rem,7vw,2.3rem);line-height:1.05;letter-spacing:-.03em}
.dcv-auth-hero-cube p{max-width:360px;margin:0 auto;font-size:.9rem}
/* Offline page (wwwroot/v/offline.html): the app's hero, a live "waiting" status, two ways on */
.dcv-offline{width:min(560px,100%)}
.dcv-offline-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:14px;border-radius:15px;background:rgba(214,168,110,.14);box-shadow:inset 0 0 0 1px rgba(214,168,110,.4)}
.dcv-offline-icon svg{width:28px;height:28px;fill:none;stroke:#d6a86e;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dcv-offline-hero .dcv-offline-en{margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.14);font-size:.84rem}
.dcv-offline-hero .dcv-offline-en strong{color:#fff}
.dcv-offline-status{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;font-size:.9rem;font-weight:800}
.dcv-offline-status span[lang]{display:block;margin-top:2px;color:var(--muted);font-weight:600}
.dcv-offline-dot{flex:none;width:10px;height:10px;margin-top:6px;border-radius:50%;background:#d6a86e;animation:dcv-pulse 1.6s ease-in-out infinite}
@keyframes dcv-pulse{0%,100%{box-shadow:0 0 0 0 rgba(214,168,110,.55)}50%{box-shadow:0 0 0 8px rgba(214,168,110,0)}}
.dcv-offline-actions{display:flex;flex-wrap:wrap;gap:8px}
.dcv-offline-actions .button{flex:1 1 180px;min-height:48px}
@media(prefers-reduced-motion:reduce){.dcv-offline-dot{animation:none}}
.dcv-full-quote{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid var(--gold);border-radius:14px;background:#fffaf0}
.dcv-full-quote[hidden]{display:none}
.dcv-full-quote span{min-width:0;overflow:hidden;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
