  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  button { font-family: inherit; cursor: pointer; }
  input { font-family: inherit; outline: none; }
  .num { font-feature-settings: "tnum" 1, "lnum" 1; }
  .mono { font-family: var(--font-mono); }

  /* ── top bar ── */
  .topbar {
    height: 64px;
    background: rgba(247,244,239,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 50;
  }
  .topbar img { height: 30px; display: block; }
  .product-tag {
    font-family: var(--font-display);
    font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--fg-muted);
    padding-left: 14px; border-left: 1px solid var(--border-strong);
  }
  .topbar-spacer { flex: 1; }
  .topbar-meta {
    font-family: var(--font-mono); font-size: 11.5px;
    color: var(--fg-subtle); display: flex; align-items: center; gap: 8px;
  }
  .topbar-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--inv-success); }

  /* ── page scaffold ── */
  .page { max-width: 1180px; margin: 0 auto; padding: 36px 24px 80px; }
  .page-head { margin-bottom: 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
  .eyebrow {
    font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
    letter-spacing: 0.13em; text-transform: uppercase; color: var(--inv-teal-600);
    margin: 0 0 8px;
  }
  .page-head h1 {
    font-family: var(--font-display); font-weight: 600; font-size: 34px;
    letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--fg);
  }
  .page-head p { font-size: 15px; color: var(--fg-muted); margin: 8px 0 0; max-width: 560px; line-height: 1.5; }

  /* settings (override) button */
  .btn-settings {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px;
    background: var(--bg-elevated); border: 1px solid var(--border-strong);
    border-radius: var(--r-md); padding: 10px 15px; margin-top: 4px;
    font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; color: var(--fg);
    transition: var(--transition); position: relative;
  }
  .btn-settings:hover { background: var(--bg-sunken); border-color: var(--inv-teal-300); color: var(--inv-teal-700); }
  .btn-settings .bs-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--inv-sun-400);
    box-shadow: 0 0 0 2px var(--bg-elevated);
  }

  /* ── modal (price overrides) ── */
  .scrim {
    position: fixed; inset: 0; background: rgba(26,25,23,0.45); z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    animation: fade 160ms ease;
  }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .modal {
    background: var(--bg-elevated); border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
    width: 480px; max-width: 100%; max-height: 88vh; overflow: auto; border: 1px solid var(--border);
  }
  .modal-head {
    padding: 22px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .modal-head .mh-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0; color: var(--fg); }
  .modal-head .mh-sub { font-size: 12.5px; color: var(--fg-muted); margin: 4px 0 0; line-height: 1.45; }
  .modal-close {
    width: 32px; height: 32px; border-radius: var(--r-sm); border: 0; background: transparent;
    color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .modal-close:hover { background: var(--inv-stone-100); color: var(--fg); }
  .modal-body { padding: 6px 24px; }
  .price-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--border); }
  .price-field:first-child { border-top: 0; }
  .price-field .pf-label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg); }
  .price-field .pf-help { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
  .price-input {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong);
    border-radius: var(--r-sm); background: var(--bg-elevated); padding: 0 12px; transition: var(--transition);
  }
  .price-input:focus-within { border-color: var(--accent); box-shadow: var(--shadow-focus); }
  .price-input .pi-affix { font-family: var(--font-mono); font-size: 13px; color: var(--fg-subtle); }
  .price-input input {
    width: 78px; border: 0; background: transparent; text-align: right; padding: 9px 0;
    font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--fg);
    -moz-appearance: textfield;
  }
  .price-input input::-webkit-outer-spin-button, .price-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .modal-foot { padding: 16px 24px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); margin-top: 6px; }

  /* ── discount card ── */
  .disc-field { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 2px; }
  .disc-input {
    display: inline-flex; align-items: center; border: 1px solid var(--border-strong);
    border-radius: var(--r-md); background: var(--bg-elevated); overflow: hidden; transition: var(--transition);
  }
  .disc-input:focus-within { border-color: var(--accent); box-shadow: var(--shadow-focus); }
  .disc-input input {
    width: 62px; border: 0; background: transparent; text-align: right; padding: 10px 4px 10px 12px;
    font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--fg);
    -moz-appearance: textfield;
  }
  .disc-input input::-webkit-outer-spin-button, .disc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .disc-input .di-pct { padding: 0 12px 0 2px; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--fg-muted); }

  .layout { display: grid; grid-template-columns: 1fr 412px; gap: 24px; align-items: start; }

  /* ── cards ── */
  .card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    padding: 22px 24px;
  }
  .config { display: flex; flex-direction: column; gap: 18px; }
  .card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
  .card-mark {
    width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--inv-teal-700);
  }
  .card-mark.sun { background: var(--inv-sun-50); color: var(--inv-sun-600); }
  .card-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0; color: var(--fg); }
  .card-sub { font-size: 13px; color: var(--fg-muted); margin: 3px 0 0; }
  .card-sub b { font-family: var(--font-mono); font-weight: 500; color: var(--fg); }

  .field { display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 14px 0; border-top: 1px solid var(--border); }
  .field:first-of-type { border-top: 0; padding-top: 4px; }
  .field-label { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg); }
  .field-help { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
  .field-help .mono { color: var(--fg); }

  /* base line (read-only included) */
  .included {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-sunken); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 12px 14px; gap: 12px;
  }
  .included .il-left { display: flex; align-items: center; gap: 10px; }
  .included .il-tag {
    font-family: var(--font-display); font-weight: 600; font-size: 10px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--inv-teal-700); background: var(--inv-teal-100);
    padding: 3px 7px; border-radius: var(--r-xs);
  }
  .included .il-txt { font-size: 13px; color: var(--fg-muted); }
  .included .il-price { font-family: var(--font-mono); font-weight: 500; font-size: 13.5px; color: var(--fg); }

  /* stepper */
  .stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong);
    border-radius: var(--r-md); background: var(--bg-elevated); overflow: hidden; }
  .stepper button {
    width: 38px; height: 40px; border: 0; background: transparent; color: var(--fg-muted);
    display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
  }
  .stepper button:hover:not(:disabled) { background: var(--accent-soft); color: var(--inv-teal-700); }
  .stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
  .stepper input {
    width: 56px; height: 40px; border: 0; text-align: center; background: transparent;
    font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--fg);
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    -moz-appearance: textfield;
  }
  .stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

  /* big number input (systems) */
  .num-input {
    display: flex; align-items: center; gap: 10px; margin-top: 14px;
    border: 1px solid var(--border-strong); border-radius: var(--r-md);
    padding: 4px 14px 4px 16px; background: var(--bg-elevated); transition: var(--transition);
  }
  .num-input:focus-within { border-color: var(--accent); box-shadow: var(--shadow-focus); }
  .num-input .ni-prefix { color: var(--fg-subtle); display: flex; }
  .num-input input {
    flex: 1; border: 0; background: transparent; padding: 12px 0;
    font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--fg);
    -moz-appearance: textfield;
  }
  .num-input input::-webkit-outer-spin-button, .num-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .num-input .ni-unit { font-size: 13px; color: var(--fg-muted); font-weight: 500; white-space: nowrap; }

  .presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .preset {
    border: 1px solid var(--border-strong); background: var(--bg-elevated);
    border-radius: var(--r-pill); padding: 6px 14px;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--fg-muted);
    transition: var(--transition);
  }
  .preset:hover { background: var(--accent-soft); color: var(--inv-teal-700); border-color: var(--inv-teal-200); }
  .preset.active { background: var(--accent); color: #fff; border-color: var(--accent); }

  /* unlimited notice */
  .notice {
    display: flex; gap: 12px; align-items: flex-start; margin-top: 16px;
    background: var(--inv-sun-50); border: 1px solid var(--inv-sun-200);
    border-radius: var(--r-md); padding: 14px 16px;
  }
  .notice .n-icon { color: var(--inv-sun-600); flex-shrink: 0; margin-top: 1px; }
  .notice .n-title { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--inv-sun-600); }
  .notice .n-body { font-size: 12.5px; color: var(--inv-stone-700); margin-top: 2px; line-height: 1.45; }

  /* billing segmented */
  .segmented { display: inline-flex; background: var(--inv-stone-100); border-radius: var(--r-md); padding: 4px; gap: 3px; width: 100%; }
  .segmented button {
    flex: 1; border: 0; background: transparent; border-radius: var(--r-sm);
    font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--fg-muted);
    padding: 10px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
  }
  .segmented button.active { background: var(--bg-elevated); color: var(--fg); box-shadow: var(--shadow-sm); }
  .seg-save {
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
    background: var(--inv-success-bg); color: var(--inv-success);
    padding: 2px 6px; border-radius: var(--r-xs);
  }

  /* ── summary ── */
  .summary { position: sticky; top: 88px; }
  .summary .card { padding: 0; overflow: hidden; }
  .sum-head { padding: 20px 24px 0; }
  .sum-head .eyebrow { color: var(--fg-muted); }

  .totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 24px 22px; }
  .total-block {
    border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px;
    transition: var(--transition); position: relative;
  }
  .total-block.active { border-color: var(--accent); background: var(--accent-soft); }
  .total-block .tb-label {
    font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--fg-muted); display: flex; align-items: center; gap: 6px;
  }
  .total-block .tb-value {
    font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -0.02em;
    color: var(--fg); margin-top: 8px; line-height: 1;
  }
  .total-block .tb-value .cur { font-size: 16px; font-weight: 600; color: var(--fg-muted); margin-right: 2px; }
  .total-block .tb-value .cents { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
  .total-block .tb-unit { font-size: 12px; color: var(--fg-muted); margin-top: 6px; }
  .total-block .tb-badge {
    position: absolute; top: -9px; right: 12px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    background: var(--inv-success); color: #fff; padding: 2px 7px; border-radius: var(--r-pill);
  }

  /* breakdown */
  .breakdown { border-top: 1px solid var(--border); padding: 18px 24px 4px; }
  .bd-cols {
    display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: 10.5px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fg-subtle); padding-bottom: 8px;
  }
  .bd-cols .r { text-align: right; }
  .bd-cols .r.hi { color: var(--inv-teal-700); }
  .bd-row {
    display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px; align-items: baseline;
    padding: 9px 0; border-top: 1px solid var(--border);
  }
  .bd-cols.single { grid-template-columns: 1fr 100px; }
  .bd-row.single { grid-template-columns: 1fr 100px; }
  .bd-row .bd-label { font-size: 13px; color: var(--fg); font-weight: 500; }
  .bd-row .bd-meta { font-size: 11px; color: var(--fg-subtle); font-family: var(--font-mono); margin-top: 2px; }
  .bd-row .v { text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg); }
  .bd-row .v.muted { color: var(--fg-subtle); }
  .bd-row .v.hi { color: var(--inv-teal-700); font-weight: 600; }
  .bd-row.discount .bd-label { color: var(--inv-success); }
  .bd-row.discount .v { color: var(--inv-success); }
  .bd-row.subtotal { border-top: 1px solid var(--border-strong); }
  .bd-row.subtotal .bd-label, .bd-row.subtotal .v { font-weight: 600; }
  .bd-row.grand { border-top: 2px solid var(--inv-stone-300); margin-top: 2px; padding-top: 12px; padding-bottom: 14px; }
  .bd-row.grand .bd-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
  .bd-row.grand .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg); }
  .bd-row.grand .v.hi { color: var(--inv-teal-700); }
  .bd-onrequest { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; color: var(--inv-sun-600); text-align: right; }

  /* actions */
  .sum-actions { display: flex; gap: 10px; padding: 16px 24px 22px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 16px; border-radius: var(--r-md); border: 1px solid transparent;
    font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; line-height: 1;
    transition: var(--transition);
  }
  .btn-primary { background: var(--accent); color: #fff; flex: 1; }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:active { background: var(--accent-press); }
  .btn-primary.ok { background: var(--inv-success); }
  .btn-secondary { background: var(--inv-teal-900); color: #fff; flex: 1; }
  .btn-secondary:hover { background: var(--inv-teal-800); }
  .btn-ghost { background: var(--bg-elevated); color: var(--fg-muted); border-color: var(--border-strong); }
  .btn-ghost:hover { background: var(--bg-sunken); color: var(--fg); }

  /* contact card (op aanvraag) */
  .contact {
    margin: 0 24px 22px; border-radius: var(--r-lg);
    background: var(--inv-teal-900); color: var(--inv-stone-50);
    padding: 18px 20px; position: relative; overflow: hidden;
  }
  .contact .c-arc {
    position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; opacity: 0.18;
    border: 10px solid var(--inv-teal-300); border-radius: 50%; border-right-color: transparent; border-bottom-color: transparent;
    transform: rotate(25deg);
  }
  .contact .c-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; position: relative; }
  .contact .c-body { font-size: 12.5px; color: var(--inv-teal-100); margin: 6px 0 14px; line-height: 1.5; position: relative; max-width: 280px; }
  .contact .btn-contact {
    display: inline-flex; align-items: center; gap: 8px; position: relative;
    background: var(--inv-sun-300); color: var(--inv-stone-900);
    padding: 10px 16px; border-radius: var(--r-md); font-weight: 600; font-size: 13px; text-decoration: none;
  }
  .contact .btn-contact:hover { background: var(--inv-sun-200); }

  .foot-note { font-size: 11.5px; color: var(--fg-subtle); margin: 16px 4px 0; line-height: 1.5; }

  /* toggle switch */
  .toggle {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--fg-muted);
    margin-left: auto; flex-shrink: 0;
  }
  .toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
  .toggle-track {
    width: 44px; height: 24px; border-radius: 12px;
    background: var(--border-strong); position: relative; transition: var(--transition);
  }
  .toggle input:checked + .toggle-track { background: var(--inv-teal-500); }
  .toggle-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 180ms ease;
  }
  .toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }

  /* monitoring off state */
  .monitoring-off {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-sunken); border: 1px dashed var(--border-strong);
    border-radius: var(--r-md); padding: 16px 18px; margin-top: 4px;
  }
  .monitoring-off .mo-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--inv-stone-100); color: var(--fg-muted);
    display: flex; align-items: center; justify-content: center;
  }
  .monitoring-off .mo-text {
    font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--fg-muted);
  }

  @media (max-width: 920px) {
    .layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .page-head { flex-direction: column; }
  }

  /* Snelkeuze pakketten */
  .pkg-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  }
  .pkg-card {
    display: flex; flex-direction: column; gap: 4px; text-align: left;
    background: var(--bg-sunken); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 14px 16px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .05s ease;
    font-family: inherit;
    position: relative;
  }
  .pkg-card:hover { border-color: var(--border-strong); background: var(--bg-canvas); }
  .pkg-card:active { transform: translateY(1px); }
  .pkg-card.active {
    border-color: var(--inv-teal-600, #0f766e);
    background: var(--inv-teal-50, #f0fdfa);
  }
  .pkg-card .pkg-name {
    font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--fg);
  }
  .pkg-card .pkg-tag { font-size: 12px; color: var(--fg-muted); font-weight: 600; }
  .pkg-card .pkg-detail { font-size: 12px; color: var(--fg-subtle); margin-top: 4px; }
  .pkg-card .pkg-from-badge {
    position: absolute; top: -1px; right: -1px;
    font-family: var(--font-display); font-weight: 600; font-size: 10.5px;
    background: var(--accent); color: #fff;
    padding: 4px 10px; border-radius: 0 var(--r-md) 0 var(--r-md);
    letter-spacing: 0.02em;
    line-height: 1.3; text-align: right;
  }
  .pkg-card .pkg-from-badge .pfb-sub {
    font-size: 9px; font-weight: 500; opacity: 0.92; display: block;
  }
  .pkg-card.active .pkg-from-badge { background: var(--inv-teal-700); }
  @media (max-width: 520px) {
    .pkg-grid { grid-template-columns: 1fr; }
  }
