/* Scoped ITV1C density, typography and explicit themes. No app data or behavior changes. */
html[data-itv-service] { --itv-font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif; }
html[data-itv-service] :where(h1,h2,h3,h4,p,span,a,div,label),html[data-itv-service] body,html[data-itv-service] button,html[data-itv-service] input,html[data-itv-service] textarea,html[data-itv-service] select { font-family:var(--itv-font); }
html[data-itv-service] h1,html[data-itv-service] h2,html[data-itv-service] h3 { text-wrap:balance;letter-spacing:-.025em; }
html[data-itv-service] p { text-wrap:pretty; }
html[data-itv-service] strong,html[data-itv-service] input[type=number] { font-variant-numeric:tabular-nums; }
html[data-itv-service=marki] body { padding:18px 20px 88px;line-height:1.55; }
html[data-itv-service=marki] .container { max-width:1080px; }
html[data-itv-service=marki] header { padding-bottom:18px;margin-bottom:20px;gap:12px; }
html[data-itv-service=marki] .logo { font-size:19px;font-weight:700; }
html[data-itv-service=marki] .hero { padding:24px 8px 20px; }
html[data-itv-service=marki] .tag { font-size:11px;padding:5px 11px;margin-bottom:16px;letter-spacing:.035em; }
html[data-itv-service=marki] h1 { max-width:760px;margin:0 auto 14px;font-size:clamp(27px,3.3vw,40px);line-height:1.14;font-weight:700; }
html[data-itv-service=marki] .subtitle { font-size:16px;line-height:1.6;max-width:640px;margin-bottom:22px; }
html[data-itv-service=marki] .cta-group { gap:10px;margin-bottom:20px; }
html[data-itv-service=marki] .btn { min-height:44px;padding:10px 17px;font-size:14px;font-weight:600;border-radius:9px;transition:transform .22s cubic-bezier(.2,.8,.2,1),background-color .18s,box-shadow .18s; }
html[data-itv-service=marki] .btn-primary { box-shadow:0 4px 12px rgb(2 132 199 / .17); }
html[data-itv-service=marki] .cards-grid { gap:12px;margin-bottom:28px;grid-template-columns:repeat(3,minmax(0,1fr)); }
html[data-itv-service=marki] .card { display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:12px;row-gap:6px;padding:16px;border-radius:10px;align-content:start; }
html[data-itv-service=marki] .card-icon { grid-column:1;grid-row:1/3;font-size:23px;margin:0;line-height:1.3; }
html[data-itv-service=marki] .card-title { grid-column:2;font-size:15px;line-height:1.35;margin:0;font-weight:650; }
html[data-itv-service=marki] .card-desc { grid-column:2;font-size:13px;line-height:1.55; }
html[data-itv-service=marki] footer { padding-top:18px;font-size:12px; }

/* KP: consistent sans-serif, smaller equipment tiles and an actual mobile grid. */
html[data-itv-service=kp] .main-layout { grid-template-columns:minmax(0,1fr) 310px;gap:16px;padding-inline:20px;margin-block:18px; }
html[data-itv-service=kp] .main-layout>* { min-width:0; }
html[data-itv-service=kp] .card-section { padding:16px;margin-bottom:14px; }
html[data-itv-service=kp] .visual-products-grid { grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px; }
html[data-itv-service=kp] .vpc-thumb-wrap { height:104px; }
html[data-itv-service=kp] .vpc-body { padding:9px; }
html[data-itv-service=kp] .visual-product-card { transition:transform .25s cubic-bezier(.2,.8,.2,1),border-color .18s,box-shadow .18s; }
html[data-itv-service=kp] .form-group input,html[data-itv-service=kp] .form-group select { min-width:0;width:100%; }
html[data-itv-service=kp][data-itv-theme=dark] { color-scheme:dark;--bg-main:#101923;--bg-card:#182431;--text-main:#e8f0f8;--text-muted:#aab9c9;--border:#354555;--primary:#77b3ff;--primary-light:#21354b;--primary-hover:#a7ceff; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.navbar,.visual-product-card,.history-card,.summary-card,.form-group input,.form-group select,.catalog-item,.kitchen-ui-card,.option-item,.toggle-group-header) { background:var(--bg-card);color:var(--text-main);border-color:var(--border); }
html[data-itv-service=kp][data-itv-theme=dark] .visual-product-card.selected { background:#203751; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.software-sync-hint,.select-highlight,.unified-toggle-switch,.kitchen-card-toggle,.toggle-checkbox-pill) { background:#21354b;color:#d8e9ff;border-color:#405c7a; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.vpc-thumb-wrap,.card-img-wrap) { background:#f3f6fa; }
html[data-itv-service=kp][data-itv-theme=dark] :is(input,select,textarea) { background:#101d2b;color:#edf4fc;border-color:#405368; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.toggle-group-box,.toggle-group-accent,.checkbox-row,.radio-row,.radio-label,.qty-stepper,.btn-outline,.btn-outline-sm,.pill,.cat-item-card,.pkg-result-item,.cpb-item,.modal-dialog,.btn-preset) { background:#182431;color:#e8f0f8;border-color:#354555; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.toggle-group-header,.toggle-group-accent .toggle-group-header) { background:none;color:#d0e4ff;-webkit-text-fill-color:currentColor;border-color:#354555; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.field-label input,.field-label select,.elegant-select) { background-color:#101d2b!important;color:#edf4fc;border-color:#405368!important; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.btn-primary,.btn-generate) { background:#2563eb;color:#fff; }

/* Shop: less picture height, more products per desktop row, keep names/prices readable. */
html[data-itv-service=shop] .products-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
html[data-itv-service=shop] .product-card { border-radius:12px;box-shadow:0 3px 12px rgb(0 0 0 / .1); }
html[data-itv-service=shop] .product-card__media { aspect-ratio:4/3;max-height:168px; }
html[data-itv-service=shop] .product-card__body { padding:9px;gap:5px; }
html[data-itv-service=shop] .product-card__title { font-size:13px;line-height:1.35;font-weight:600; }
html[data-itv-service=shop] .product-card__price strong { font-size:16px;font-weight:700; }
html[data-itv-service=shop] .product-card__actions { grid-template-columns:1fr 44px; }
html[data-itv-service=shop] :is(.action-button--cart,.action-button--favorite) { min-height:44px;height:44px; }
html[data-itv-service=shop] .action-button--favorite { width:44px; }
html[data-itv-service=shop] :is(.topbar__title,.product-modal__title) { font-size:24px; }
html[data-itv-service=shop] :is(.section-heading h2,.products-toolbar h2) { font-size:21px; }
html[data-itv-service=shop][data-itv-theme=light] { color-scheme:light;--bg:#f5f7fb;--surface:#fff;--surface-strong:#f2f5fa;--line:#d9e0ea;--line-strong:#b9c8dc;--text-soft:#4d5f78;--accent:#6942a3;color:#1d2a40; }
html[data-itv-service=shop][data-itv-theme=light] body { background:#f5f7fb;color:#1d2a40; }
html[data-itv-service=shop][data-itv-theme=light] :is(.product-card,.sheet,.search-field,.search-box,.category-pill,.sort-button,.checkout-form input,.checkout-form textarea) { background:#fff;color:#1d2a40;border-color:#d9e0ea; }
html[data-itv-service=shop][data-itv-theme=light] :is(.product-card__title,.product-card__price strong,.sheet__total strong,.product-modal__title,.product-modal__price strong) { color:#1d2a40; }
html[data-itv-service=shop][data-itv-theme=light] :is(.product-card__info,.product-card__condition,.price-old) { color:#586b82; }
html[data-itv-service=shop][data-itv-theme=light] .product-card__media { background:#edf1f6; }
html[data-itv-service=shop][data-itv-theme=light] :is(.topbar__title,.sheet__header h2,.sheet__header h3,.cart-item__content h3,.product-modal__description) { color:#1d2a40; }
html[data-itv-service=shop][data-itv-theme=light] :is(.topbar__subtitle,.products-toolbar span,.section-heading span,.sort-panel__label,.cart-item__availability,.empty-state) { color:#52647c; }
html[data-itv-service=shop][data-itv-theme=light] :is(.search-input,.category-chip,.sort-chip,.icon-button,.action-button--favorite,.text-button,.cart-item) { background:#fff;color:#33455e;border-color:#c8d3e0; }
html[data-itv-service=shop][data-itv-theme=light] .search-input { box-shadow:0 2px 8px rgb(20 40 70 / .06); }
html[data-itv-service=shop][data-itv-theme=light] .search-input input { color:#1d2a40; }
html[data-itv-service=shop][data-itv-theme=light] .search-input input::placeholder { color:#61748a; }
html[data-itv-service=shop][data-itv-theme=light] :is(.category-chip--active,.sort-chip--active) { color:#fff;background:#7144af;border-color:#7144af;box-shadow:none; }
html[data-itv-service=shop][data-itv-theme=light] .action-button--favorite-active { color:#b62e69;background:#fcecf3; }
html[data-itv-service=shop][data-itv-theme=light] :is(.sheet,.sheet__footer,.sheet__header) { background:#fff;color:#1d2a40; }
html[data-itv-service=km][data-itv-theme=light] body { background:#f5f8fc;color:#172b42; }
html[data-itv-service=km][data-itv-theme=dark] body { background:#0f172a;color:#f1f5f9; }

@media(min-width:760px) { html[data-itv-service=shop] .products-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(min-width:1100px) { html[data-itv-service=shop] .products-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:900px) { html[data-itv-service=kp] .main-layout { grid-template-columns:minmax(0,1fr); } html[data-itv-service=kp] .sticky-sidebar { position:static; } }
@media(max-width:600px) {
 html[data-itv-service=marki] body { padding:16px 16px 90px; }
 html[data-itv-service=marki] header { gap:12px;margin-bottom:12px; }
 html[data-itv-service=marki] .header-actions { margin:0;gap:8px; }
 html[data-itv-service=marki] .hero { padding:18px 0 12px; }
 html[data-itv-service=marki] .tag { font-size:10px; }
 html[data-itv-service=marki] .subtitle { font-size:14px;line-height:1.6; }
 html[data-itv-service=marki] .cta-group { margin-bottom:12px; }
 html[data-itv-service=marki] .cta-group .btn { width:100%;justify-content:center; }
 html[data-itv-service=marki] .cards-grid { grid-template-columns:minmax(0,1fr);gap:8px; }
 html[data-itv-service=marki] .card { padding:13px;column-gap:10px; }
 html[data-itv-service=kp] .main-layout { padding-inline:12px; }
 html[data-itv-service=kp] .nav-container { padding:10px 12px;flex-wrap:wrap;gap:8px; }
 html[data-itv-service=kp] .nav-brand { min-width:0;flex:1; }
 html[data-itv-service=kp] .nav-brand { flex-basis:100%; }
 html[data-itv-service=kp] .nav-brand>div { min-width:0; }
 html[data-itv-service=kp] .nav-actions { width:100%;justify-content:space-between;gap:8px; }
 html[data-itv-service=kp] .brand-name { font-size:13px; }
 html[data-itv-service=kp] .brand-sub { font-size:11px; }
 html[data-itv-service=kp] .card-section { padding:12px; }
 html[data-itv-service=kp] .form-grid { grid-template-columns:minmax(0,1fr); }
 html[data-itv-service=kp] .fiscal-toggles-grid:not(:has(.toggle-group-wide)),html[data-itv-service=kp] .fiscal-toggles-grid { grid-template-columns:minmax(0,1fr); }
 html[data-itv-service=kp] .col-span-2 { grid-column:auto; }
 html[data-itv-service=kp] .visual-products-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
 html[data-itv-service=kp] .vpc-thumb-wrap { height:90px; }
 html[data-itv-service=kp] .section-header { flex-wrap:wrap; }
 html[data-itv-service=kp] .card-section .section-title { font-size:15px; }
}
@media(prefers-reduced-motion:reduce) { html[data-itv-service] *,html[data-itv-service] *::before,html[data-itv-service] *::after { animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important; } }

/* One family across every service, derived from the existing shop palette. */
html[data-itv-service][data-itv-theme=dark] {
 --bg-main:#130b1b;--bg-card:#21162e;--text-main:#f4effb;--text-muted:#c2b3d3;--border:#493656;--primary:#c3a0f2;--primary-light:#342344;--primary-hover:#d4b7f9;
 --dark:#130b1b;--surface:#21162e;--heading:#f4effb;--tag-text:#cdb1f7;--secondary-hover:#362348;
 --bg:#130b1b;--text:#f4effb;--muted:#c2b3d3;--line:#493656;--accent:#c9a9f4;--soft:#342344;
}
html[data-itv-service][data-itv-theme=light] {
 --bg-main:#f6f2fa;--bg-card:#fff;--text-main:#2b1d3b;--text-muted:#655573;--border:#d9cfe3;--primary:#7847ac;--primary-light:#eee4f7;--primary-hover:#62338e;
 --dark:#f6f2fa;--surface:#fff;--heading:#2b1d3b;--tag-text:#70409d;--secondary-hover:#eee5f7;
 --bg:#f6f2fa;--text:#2b1d3b;--muted:#655573;--line:#d9cfe3;--accent:#70409d;--soft:#eee4f7;
}
html[data-itv-service][data-itv-theme=dark] body {
 background:radial-gradient(ellipse at 100% 0%,rgb(168 85 247 / .23),transparent 45%),radial-gradient(ellipse at 0% 30%,rgb(99 70 170 / .15),transparent 42%),linear-gradient(160deg,#1b1027 0%,#130b1b 55%,#100914 100%);
 color:var(--text-main);min-height:100vh;
}
html[data-itv-service][data-itv-theme=light] body {
 background:radial-gradient(ellipse at 100% 0%,rgb(167 125 222 / .16),transparent 50%),radial-gradient(ellipse at 0% 45%,rgb(201 177 236 / .13),transparent 46%),linear-gradient(150deg,#fbf9fd,#f3edf8);
 color:var(--text-main);min-height:100vh;
}
html[data-itv-service=shop][data-itv-theme] :is(#root,.app-shell) { background:transparent; }
html[data-itv-service=marki] :is(.btn-primary,.logo-badge),html[data-itv-service=kp] :is(.btn-primary,.btn-generate),html[data-itv-service=km] .button.primary {
 background:linear-gradient(135deg,#8955c2,#643a93);color:#fff;border-color:#9369ba;box-shadow:0 4px 14px rgb(80 35 120 / .18);
}
html[data-itv-service=marki] .tag { background:rgb(153 105 204 / .12);border-color:rgb(163 116 216 / .3); }
html[data-itv-service=marki] h1 span { background:linear-gradient(120deg,#d1b1fb,#a98cde);-webkit-background-clip:text; }
html[data-itv-service=marki][data-itv-theme=light] h1 span { background:linear-gradient(120deg,#74409e,#8c51b9);-webkit-background-clip:text; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.navbar,.card-section,.visual-product-card,.history-card,.summary-card,.toggle-group-box,.toggle-group-accent,.checkbox-row,.radio-label,.qty-stepper,.btn-outline,.btn-outline-sm,.pill,.cat-item-card,.pkg-result-item,.cpb-item,.modal-dialog,.btn-preset) { background:#21162e;color:#f4effb;border-color:#493656; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.field-label input,.field-label select,.elegant-select,.form-group input,.form-group select) { background-color:#170f22!important;color:#f4effb;border-color:#554063!important; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.software-sync-hint,.select-highlight,.unified-toggle-switch,.kitchen-card-toggle,.toggle-checkbox-pill,.visual-product-card.selected) { background:#342344;color:#e5d4fb;border-color:#71508c; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.toggle-group-header,.toggle-group-accent .toggle-group-header) { color:#ddc6fa; }
html[data-itv-service=shop][data-itv-theme=light] :is(.category-chip--active,.sort-chip--active) { background:linear-gradient(135deg,#8955c2,#643a93); }
html[data-itv-service=kp] .floating-action-bar { background:linear-gradient(135deg,rgb(37 23 51 / .97),rgb(24 15 36 / .97));border-color:#614875; }
html[data-itv-service=kp] .floating-action-bar .btn-primary { background:linear-gradient(135deg,#8955c2,#643a93);color:#fff; }
html[data-itv-service=kp] .floating-action-bar .btn-secondary { background:#f1eafa;color:#332040;border-color:#c8b5df; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.client-pitch-box,.summary-vat-note,.edo-price-table,.edo-price-table th) { background:#2b1d3b;color:#e3d4f2;border-color:#4e3a60; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.cpb-item strong,.cr-val,.cpb-title) { color:#e3d0fa; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.cr-label,.summary-subtitle) { color:#c2b3d3; }
html[data-itv-service=kp][data-itv-theme=dark] .grand-total-row { background:#19362d;border-color:#3e6956; }
html[data-itv-service=kp][data-itv-theme=dark] :is(.gtr-title,.gtr-vat,.grand-sum) { color:#a7e5bb!important; }
