
.cp-tool, .cp-print-host {
	--cp-ink: #141E36; --cp-acc: #F0A51C; --cp-link: #2D3F7A; --cp-muted: #3F4859; --cp-t2: #3E4860;
	--cp-ctrl: #7B849A; --cp-border: #D3D8E3; --cp-err: #B42318; --cp-dash: #B8BFCF;
	--cp-mono: 'Atkinson Hyperlegible Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--cp-in-h: 48px;
}
.cp-print-host { color: var(--cp-ink); box-sizing: border-box; }
.cp-print-host * { box-sizing: border-box; }
.cp-tool {
	display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start;
	color: var(--cp-ink); font-size: 17px; line-height: 1.5;
}
.cp-tool *, .cp-tool *::before, .cp-tool *::after { box-sizing: border-box; }
.cp-tool button, .cp-tool input, .cp-tool select { font-family: inherit; }
.cp-tool :focus-visible { outline: 3px solid var(--cp-link); outline-offset: 2px; }
.cp-tool [hidden] { display: none !important; }
.cp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-only-desktop { display: none !important; }
.cp-card { background: #FFFFFF; border: 1px solid var(--cp-border); border-top: 3px solid var(--cp-ink); }
.cp-form { flex: 1 1 460px; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cp-result-col { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; border: 0; padding: 0; }
.cp-label { font-size: 17px; font-weight: 600; line-height: 1.35; padding: 0; }
.cp-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-hint, .cp-echo { font-size: 17px; color: var(--cp-muted); }
.cp-error { font-size: 17px; color: var(--cp-err); font-weight: 600; }
.cp-error::before { content: "! "; }
.cp-input {
	height: var(--cp-in-h); width: 100%; border: 2px solid var(--cp-ctrl); border-radius: 4px; padding: 0 14px;
	font-size: 18px; color: var(--cp-ink); background: #FFFFFF; margin: 0; box-shadow: none; appearance: none;
}
.cp-input::placeholder { color: #6B7385; font-weight: 400; }
.cp-input--mono { font-family: var(--cp-mono); font-weight: 700; letter-spacing: 0.01em; }
.cp-input--center { text-align: center; }
.cp-input[aria-invalid="true"] { border-color: var(--cp-err); }
.cp-money { position: relative; }
.cp-money-sign { position: absolute; left: 14px; top: 0; height: var(--cp-in-h); display: flex; align-items: center; font-size: 18px; color: var(--cp-muted); font-weight: 600; pointer-events: none; }
.cp-money .cp-input { padding-left: 38px; }
.cp-pct { position: relative; width: 140px; }
.cp-pct .cp-input { padding-right: 36px; }
.cp-pct > span { position: absolute; right: 14px; top: 0; height: var(--cp-in-h); display: flex; align-items: center; font-size: 18px; color: var(--cp-muted); }
.cp-chips { display: grid; grid-template-columns: repeat(var(--cp-n, 2), minmax(0, 1fr)); gap: 10px; }
.cp-chips--compact { gap: 8px; }
.cp-chips--stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cp-chip {
	min-height: var(--cp-in-h); padding: 6px 10px; border: 2px solid var(--cp-ctrl); border-radius: 4px; background: #FFFFFF;
	color: var(--cp-ink); font-size: 17px; font-weight: 500; line-height: 1.25; display: flex; align-items: center; justify-content: center;
	gap: 8px; text-align: center; cursor: pointer; margin: 0;
}
.cp-chips--compact .cp-chip { padding: 6px 4px; gap: 6px; white-space: nowrap; }
.cp-chip .cp-chip-tick { display: none; color: var(--cp-acc); stroke-width: 3.2; }
.cp-chip[aria-pressed="true"] { background: var(--cp-ink); border-color: var(--cp-ink); color: #FFFFFF; font-weight: 700; }
.cp-chip[aria-pressed="true"] .cp-chip-tick { display: block; }
.cp-chips--stack .cp-chip { justify-content: flex-start; text-align: left; padding-left: 12px; }
.cp-chips--stack .cp-chip .cp-chip-tick { display: block; visibility: hidden; }
.cp-chips--stack .cp-chip[aria-pressed="true"] .cp-chip-tick { visibility: visible; }
.cp-chip:hover { border-color: var(--cp-ink); }
.cp-check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 17px; cursor: pointer; position: relative; }
.cp-check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.cp-check-box { width: 24px; height: 24px; flex: none; border-radius: 4px; border: 2px solid var(--cp-ctrl); background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.cp-check-box .cp-ic { display: none; color: var(--cp-acc); stroke-width: 3.4; }
.cp-check input:checked + .cp-check-box { background: var(--cp-ink); border-color: var(--cp-ink); }
.cp-check input:checked + .cp-check-box .cp-ic { display: block; }
.cp-check input:focus-visible + .cp-check-box { outline: 3px solid var(--cp-link); outline-offset: 2px; }
.cp-row { border: 2px solid var(--cp-ctrl); border-radius: 4px; background: #FFFFFF; }
.cp-row[open] { border-color: var(--cp-ink); }
.cp-row > summary { list-style: none; min-height: 52px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cp-row > summary::-webkit-details-marker { display: none; }
.cp-row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-row-title { font-size: 17px; font-weight: 600; }
.cp-row-summary { font-size: 17px; color: var(--cp-muted); line-height: 1.35; }
.cp-row[open] .cp-row-summary { display: none; }
.cp-row-chev { transition: transform 0.15s; flex: none; }
.cp-row[open] .cp-row-chev { transform: rotate(180deg); }
.cp-row-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.cp-btn { border: 0; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; margin: 0; }
.cp-btn--primary { height: 56px; width: 100%; background: var(--cp-acc); color: var(--cp-ink); font-size: 19px; font-weight: 700; }
.cp-btn--primary:hover { background: #E59A10; }
.cp-btn--ink { height: 46px; padding: 0 18px; background: var(--cp-ink); color: #FFFFFF; font-size: 17px; font-weight: 600; }
.cp-btn--ink:hover { background: #24304F; color: #FFFFFF; }
.cp-btn--outline { height: 52px; padding: 0 20px; background: #FFFFFF; color: var(--cp-ink); border: 2px solid var(--cp-ink); font-size: 18px; font-weight: 600; }
.cp-btn--block { width: 100%; height: 52px; font-size: 18px; }
.cp-linkbtn {
	border: 0; background: transparent; padding: 0 2px; min-height: 48px; color: var(--cp-link); font-size: 17px; font-weight: 600;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin: 0;
}
.cp-linkbtn--icon { text-decoration: none; }
.cp-rate-other { align-self: flex-start; margin-top: -6px; min-height: 32px; }
.cp-privacy { margin: -4px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 17px; color: var(--cp-muted); line-height: 1.45; }
.cp-privacy .cp-ic { margin-top: 4px; flex: none; }
.cp-result { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cp-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-result-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; font-family: inherit; color: var(--cp-ink); }
.cp-result-title:focus { outline: none; }
.cp-empty { margin: 0; padding: 16px 18px; border: 1px solid #C9CFDB; background: #EEF0F6; color: #2A3550; font-size: 17px; line-height: 1.5; }
.cp-fig { background: var(--cp-ink); color: #FFFFFF; border-bottom: 4px solid var(--cp-acc); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.cp-fig-label { font-size: 17px; color: #E6E9F1; }
.cp-fig-value { font-family: var(--cp-mono); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.cp-fig-sub { font-size: 17px; color: #D5DAE5; line-height: 1.35; }
.cp-receipt { width: 100%; border-collapse: collapse; font-size: 17px; margin: 0; }
.cp-receipt caption { text-align: left; font-weight: 700; font-size: 17px; padding-bottom: 4px; caption-side: top; }
.cp-receipt tbody { border-top: 2px solid var(--cp-ink); }
.cp-receipt tr { border-bottom: 1px dashed var(--cp-dash); }
.cp-receipt th { text-align: left; padding: 8px 10px 8px 0; font-weight: 400; line-height: 1.35; vertical-align: middle; }
.cp-receipt td.cp-num { padding: 8px 0; text-align: right; white-space: nowrap; font-family: var(--cp-mono); font-size: 17px; font-weight: 700; vertical-align: middle; }
.cp-receipt .cp-r-total, .cp-receipt .cp-r-net { border-top: 2px solid var(--cp-ink); }
.cp-receipt .cp-r-total th, .cp-receipt .cp-r-net th { font-weight: 700; }
.cp-receipt td.cp-r-copy { padding: 2px 0 2px 10px; width: 1%; }
.cp-receipt td.cp-r-copy .cp-linkbtn { padding: 0 2px; }
.cp-how { margin: 0; font-size: 17px; line-height: 1.5; padding: 12px 14px; background: #FFFFFF; border: 1px solid var(--cp-border); }
.cp-note { margin: 0; font-size: 17px; color: var(--cp-t2); line-height: 1.5; }
.cp-warn { margin: 0; font-size: 17px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.cp-warn svg { color: #7A4A06; margin-top: 3px; flex: none; }
.cp-warn a, .cp-note a, .cp-empty a { color: var(--cp-link); font-weight: 600; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 17px; }
.cp-disclaimer { margin: 0; font-size: 17px; color: var(--cp-t2); line-height: 1.5; }
.cp-phone-links { margin-top: 6px; padding-top: 14px; border-top: 1px solid #C9CFDB; }
.cp-phone-links p { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.cp-phone-links .cp-phone-links-list { margin: 0; font-weight: 400; line-height: 1.7; display: flex; gap: 0 20px; flex-wrap: wrap; }
.cp-phone-links a { color: var(--cp-link); font-weight: 600; }
@media (min-width: 768px) {
	.cp-tool { gap: 44px; --cp-in-h: 50px; }
	.cp-form { padding: 24px; gap: 16px; }
	.cp-fig-value { font-size: 40px; }
	.cp-only-phone { display: none !important; }
	.cp-only-desktop { display: inline-flex !important; }
}
.cp-segctl .cp-chips { display: inline-flex; gap: 0; border: 2px solid var(--cp-ink); border-radius: 4px; overflow: hidden; }
.cp-segctl .cp-chip { border: 0; border-radius: 0; min-height: 48px; padding: 0 12px; }
.cp-segctl .cp-chip .cp-chip-tick { display: none !important; }
.cp-segctl .cp-chip[aria-pressed="true"] .cp-chip-tick { display: block !important; }
.cp-tool:not([data-cp-type="fattura"]) .cp-show-fattura,
.cp-tool:not([data-cp-type="forfettario"]) .cp-show-forfettario,
.cp-tool[data-cp-type="fattura"] .cp-hide-fattura,
.cp-tool[data-cp-type="forfettario"] .cp-hide-forfettario { display: none !important; }
.cp-date-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; }
.cp-date-cell { display: flex; flex-direction: column; gap: 3px; font-size: 17px; color: var(--cp-muted); min-width: 0; }
.cp-date legend { margin-bottom: 4px; }
.cp-inline { flex-direction: row; align-items: center; gap: 14px; }
.cp-inline > .cp-label { flex: none; }
.cp-inline > .cp-chips { flex: 1; }
.cp-tool:not([data-cp-mode="between"]) .cp-show-between,
.cp-tool:not([data-cp-mode="add"]) .cp-show-add { display: none !important; }
.cp-fig-value--date { font-size: 30px; }
.cp-list-title { margin: 0 0 4px; font-weight: 700; }
.cp-list ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--cp-ink); font-size: 17px; }
.cp-list li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--cp-dash); }
.cp-list-date { font-family: var(--cp-mono); font-weight: 700; min-width: 100px; flex: none; }
.cp-tag { display: inline-block; font-size: 15px; color: var(--cp-t2); }
.cp-exams { display: flex; flex-direction: column; gap: 8px; }
.cp-exam-grid { display: grid; grid-template-columns: 24px minmax(0, 1fr) 56px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.cp-exam-head { font-size: 17px; font-weight: 600; text-align: center; }
.cp-exam-n { font-size: 15px; color: var(--cp-muted); text-align: right; }
.cp-exam .cp-error { display: block; padding-left: 32px; }
.cp-check--center { justify-content: center; min-height: 48px; }
.cp-check input:disabled + .cp-check-box { background: #E3E6EE; border-color: #C9CFDB; }
.cp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cp-tool:not([data-cp-mode="exams"]) .cp-show-exams, .cp-tool:not([data-cp-mode="avg"]) .cp-show-avg { display: none !important; }
.cp-show-avg { display: flex; flex-direction: column; gap: 12px; }
.cp-need { background: #FFFFFF; border: 1px solid var(--cp-border); border-top: 3px solid var(--cp-ink); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.cp-need-title { margin: 0; font-weight: 700; }
.cp-need-row { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--cp-t2); }
.cp-need-value { font-family: var(--cp-mono); font-weight: 700; font-size: 28px; color: var(--cp-ink); }
.cp-group-label { margin: 6px 0 -4px; font-size: 17px; font-weight: 700; }
.cp-textarea { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.45; resize: vertical; }
.cp-downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-btn--dl { flex: 1 1 100%; height: 52px; font-size: 18px; }
.cp-doc { background: #FFFFFF; border: 1px solid var(--cp-border); border-top: 3px solid var(--cp-ink); padding: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.45; color: var(--cp-ink); }
.cp-doc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.cp-doc-top > span:last-child { color: var(--cp-t2); }
.cp-doc-title { font-weight: 700; font-size: 19px; }
.cp-doc-parties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 24px; }
.cp-doc-party, .cp-doc-desc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-doc-party span, .cp-doc-desc span { overflow-wrap: anywhere; }
.cp-doc-party > span:not(.cp-doc-role):not(.cp-doc-name) { color: var(--cp-t2); }
.cp-doc-role { font-size: 15px; color: var(--cp-muted); font-weight: 600; }
.cp-doc-name { font-weight: 700; }
.cp-doc-amounts { width: 100%; border-collapse: collapse; }
.cp-doc-amounts tbody { border-top: 2px solid var(--cp-ink); }
.cp-doc-amounts tr { border-bottom: 1px dashed var(--cp-dash); }
.cp-doc-amounts th { text-align: left; padding: 7px 10px 7px 0; font-weight: 400; line-height: 1.35; }
.cp-doc-amounts td { padding: 7px 0; text-align: right; white-space: nowrap; font-family: var(--cp-mono); font-size: 17px; font-weight: 700; }
.cp-doc-amounts .cp-r-net { border-top: 2px solid var(--cp-ink); }
.cp-doc-amounts .cp-r-net th { font-weight: 700; }
.cp-doc-note, .cp-doc-small { margin: 0; font-size: 17px; color: var(--cp-t2); line-height: 1.45; }
.cp-doc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cp-doc-bollo { display: flex; gap: 12px; align-items: center; font-size: 17px; color: var(--cp-t2); line-height: 1.4; }
.cp-doc-bollo > span:first-child { width: 54px; height: 64px; flex: none; border: 2px dashed var(--cp-ctrl); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--cp-muted); }
.cp-doc-sign { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.cp-doc-sign span:first-child { border-bottom: 1px solid var(--cp-ink); height: 30px; }
.cp-doc-sign span:last-child { font-size: 15px; color: var(--cp-muted); }
@media (min-width: 768px) {
	.cp-doc { padding: 24px; }
	.cp-doc-parties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cp-btn--dl { flex: 0 0 auto; }
}
.cp-print-host { display: none; }
@media print {
	html.cp-printing body > *:not(.cp-print-host) { display: none !important; }
	html.cp-printing .cp-print-host { display: block; }
	html.cp-printing .cp-doc--print { border: 0; padding: 0; font-size: 12pt; gap: 12pt; }
	html.cp-printing .cp-doc--print .cp-doc-parties { grid-template-columns: 1fr 1fr; }
	html.cp-printing .cp-doc--print .cp-doc-amounts td { font-size: 12pt; }
	@page { margin: 2cm; }
}
.cp-tool[data-cp-tool="contratto"]:not([data-cp-mode="contratto"]) .cp-show-contratto,
.cp-tool[data-cp-tool="contratto"]:not([data-cp-client="azienda"]) .cp-show-azienda,
.cp-tool[data-cp-tool="contratto"]:not([data-cp-foro="1"]) .cp-show-foro { display: none !important; }
.cp-doc-set { display: flex; flex-direction: column; gap: 16px; }
.cp-doc--contract { gap: 12px; }
.cp-doc--contract .cp-doc-head { margin: 0; text-align: center; line-height: 1.4; }
.cp-doc--contract .cp-doc-head strong { font-size: 18px; }
.cp-doc-art { margin: 0; overflow-wrap: break-word; }
.cp-doc-signs { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 4px; }
.cp-doc-bollo--top { justify-content: flex-end; text-align: right; }
@media print {
	html.cp-printing .cp-doc-set .cp-doc--print + .cp-doc--print { break-before: page; }
	html.cp-printing .cp-doc--contract.cp-doc--print { gap: 8pt; line-height: 1.35; }
	html.cp-printing .cp-doc--contract .cp-doc-head strong { font-size: 13pt; }
	html.cp-printing .cp-doc-sign { break-inside: avoid; }
}
@media (min-width: 768px) {
	.cp-chips--row-desktop .cp-chips { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
	.cp-chips--row-desktop .cp-chip { justify-content: center; padding-left: 0; }
	.cp-chips--row-desktop .cp-chip:not([aria-pressed="true"]) .cp-chip-tick { display: none; }
}
.cp-two--desk { grid-template-columns: minmax(0, 1fr); }
.cp-label-note { font-weight: 400; color: var(--cp-muted); }
.cp-hint--block { margin: -4px 0 0; }
.cp-hint--warn { color: #7A4A06; }
.cp-input--code { font-family: var(--cp-mono); font-weight: 700; letter-spacing: 0.08em; font-size: 19px; text-transform: uppercase; }
.cp-input--code::placeholder { text-transform: none; letter-spacing: 0; }
.cp-place { position: relative; }
.cp-place-box { position: relative; }
.cp-place-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cp-muted); pointer-events: none; }
.cp-input--place { padding-left: 44px; padding-right: 44px; }
.cp-input--place[aria-expanded="true"] { border: 3px solid var(--cp-ink); box-shadow: 0 0 0 3px #B9C6E8; }
.cp-place-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--cp-muted); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.cp-place-list { max-height: 400px; overflow-y: auto; border: 2px solid var(--cp-ink); border-radius: 4px; background: #FFFFFF; box-shadow: 0 10px 24px rgba(20, 30, 54, 0.18); margin-top: 2px; }
.cp-place-list[hidden] { display: none; }
.cp-list-note { margin: 0; padding: 9px 14px; border-bottom: 2px solid var(--cp-border); font-size: 15px; color: var(--cp-t2); line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; }
.cp-list-note svg { flex: none; margin-top: 2px; }
.cp-list-note--maybe { border-bottom: 0; padding-bottom: 2px; font-weight: 600; }
.cp-nomatch { padding: 12px 14px 10px; border-bottom: 1px solid var(--cp-border); }
.cp-nomatch p { margin: 4px 0 0; font-size: 17px; color: var(--cp-t2); line-height: 1.4; }
.cp-nomatch .cp-nomatch-title { margin: 0; font-weight: 600; color: var(--cp-ink); }
.cp-nomatch strong { color: var(--cp-ink); }
.cp-opt { min-height: 56px; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; gap: 1px; border-bottom: 1px solid #E3E6EE; cursor: pointer; }
.cp-opt:last-child { border-bottom: 0; }
.cp-opt.is-active { background: #E6E9F2; }
.cp-opt-name { font-size: 18px; line-height: 1.3; }
.cp-opt-name strong { font-weight: 700; }
.cp-opt-sub { font-size: 15px; color: var(--cp-muted); line-height: 1.3; }
.cp-opt-sub.is-warn { color: #7A4A06; }
.cp-recap { margin: -6px 0 0; color: var(--cp-t2); font-size: 17px; }
.cp-tiles { display: flex; flex-direction: column; gap: 10px; }
.cp-tiles-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.cp-tiles-group { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cp-tiles-boxes { display: flex; gap: 3px; }
.cp-tile { width: 36px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--cp-ink); color: #FFFFFF; border-bottom: 4px solid var(--cp-acc); font-family: var(--cp-mono); font-weight: 700; font-size: 25px; line-height: 1; }
.cp-tile.is-marked { background: #D5DAE5; color: var(--cp-ink); }
.cp-tiles--small .cp-tile { width: 23px; height: 34px; font-size: 19px; }
.cp-tiles-cap { font-size: 15px; white-space: nowrap; line-height: 1.2; }
.cp-plain { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cp-plain > span:first-child { font-size: 17px; color: var(--cp-muted); }
.cp-plain-code { font-family: var(--cp-mono); font-weight: 700; font-size: 21px; letter-spacing: 0.06em; user-select: all; overflow-wrap: anywhere; }
.cp-code { font-family: var(--cp-mono); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.cp-meaning { width: 100%; border-collapse: collapse; font-size: 17px; }
.cp-meaning caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
.cp-meaning tbody { border-top: 2px solid var(--cp-ink); }
.cp-meaning tr { border-bottom: 1px dashed var(--cp-dash); }
.cp-meaning th { text-align: left; padding: 7px 12px 7px 0; font-family: var(--cp-mono); font-weight: 700; white-space: nowrap; width: 1%; vertical-align: top; }
.cp-meaning td { padding: 7px 0; color: #2A3550; line-height: 1.4; }
.cp-facts { background: #FFFFFF; border: 1px solid var(--cp-border); border-top: 3px solid var(--cp-ink); padding: 4px 16px 6px; }
.cp-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cp-border); }
.cp-facts > div:last-child { border-bottom: 0; }
.cp-facts span { color: var(--cp-muted); flex: none; }
.cp-facts strong { text-align: right; overflow-wrap: anywhere; }
.cp-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.cp-verdict svg { flex: none; margin-top: 2px; }
.cp-verdict-text { display: flex; flex-direction: column; gap: 4px; }
.cp-verdict-sub { font-size: 17px; line-height: 1.4; }
.cp-verdict.is-ok { background: var(--cp-ink); color: #FFFFFF; border-bottom: 4px solid var(--cp-acc); padding-bottom: 12px; }
.cp-verdict.is-ok .cp-verdict-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.cp-verdict.is-ok .cp-verdict-sub { color: #D5DAE5; }
.cp-verdict.is-bad { background: #FBEDEC; border: 1px solid #C9CFDB; border-left: 4px solid var(--cp-err); }
.cp-verdict.is-bad svg { color: var(--cp-err); }
.cp-verdict.is-bad .cp-verdict-title { font-size: 20px; font-weight: 700; color: var(--cp-err); line-height: 1.3; }
.cp-verdict.is-bad .cp-verdict-sub { color: #2A3550; }
.cp-checks-title { margin: 0 0 4px; font-weight: 700; }
.cp-checks ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--cp-ink); }
.cp-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--cp-dash); line-height: 1.45; }
.cp-checks li svg { flex: none; margin-top: 1px; }
.cp-checks li strong { font-weight: 600; }
.cp-checks li > span > span { color: var(--cp-t2); }
.cp-checks li.is-bad svg, .cp-checks li.is-bad strong { color: var(--cp-err); }
.cp-infobox { background: #FFFFFF; border: 1px solid var(--cp-border); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.cp-infobox svg { flex: none; margin-top: 2px; }
.cp-infobox p { margin: 0; font-size: 17px; line-height: 1.5; }
.cp-infobox a, .cp-checks a, .cp-note a { color: var(--cp-link); font-weight: 600; }
.cp-ext { display: inline-block; margin-left: 4px; vertical-align: -1px; }
.cp-empty--error { border-left: 4px solid var(--cp-err); background: #FBEDEC; }
@media (min-width: 768px) {
	.cp-two--desk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cp-tile { width: 44px; height: 54px; font-size: 30px; }
	.cp-tiles--small .cp-tile { width: 30px; height: 42px; font-size: 24px; }
	.cp-plain-code { font-size: 22px; }
}
.cp-sheet { color: #141E36; font-family: 'Lexend', system-ui, sans-serif; font-size: 11pt; line-height: 1.5; display: flex; flex-direction: column; gap: 20pt; }
.cp-sheet header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #141E36; padding-bottom: 8pt; }
.cp-sheet-logo { font-family: 'Bodoni Moda', Georgia, serif; font-weight: 700; font-size: 20pt; line-height: 1; }
.cp-sheet h1 { margin: 0 0 4pt; font-size: 17pt; line-height: 1.2; font-family: inherit; }
.cp-sheet-recap { margin: 0; font-size: 12pt; }
.cps-code { display: flex; gap: 7pt; flex-wrap: nowrap; margin-bottom: 8pt; }
.cps-group { display: flex; flex-direction: column; align-items: center; gap: 4pt; font-size: 9pt; }
.cps-boxes { display: flex; gap: 2pt; }
.cps-boxes span { width: 24pt; height: 33pt; display: flex; align-items: center; justify-content: center; border: 1.5pt solid #141E36; font-family: 'Atkinson Hyperlegible Mono', monospace; font-weight: 700; font-size: 17pt; }
.cps-plain { font-family: 'Atkinson Hyperlegible Mono', monospace; font-size: 16pt; letter-spacing: 0.06em; }
.cp-sheet table { width: 100%; border-collapse: collapse; }
.cp-sheet caption { text-align: left; font-weight: 700; padding-bottom: 4pt; }
.cp-sheet tbody { border-top: 2px solid #141E36; }
.cp-sheet tr { border-bottom: 1px solid #C9CFDB; }
.cp-sheet th { text-align: left; padding: 5pt 10pt 5pt 0; font-family: 'Atkinson Hyperlegible Mono', monospace; white-space: nowrap; width: 1%; }
.cp-sheet td { padding: 5pt 0; }
.cp-sheet-note { border: 1px solid #C9CFDB; padding: 10pt 12pt; font-size: 10pt; }
.cp-sheet-note p { margin: 0 0 4pt; }
.cp-sheet footer { border-top: 1px solid #C9CFDB; padding-top: 6pt; font-size: 9pt; color: #3E4860; }
.cp-tiles-cap { width: 0; display: flex; justify-content: center; align-self: center; }
.cp-unit { position: relative; }
.cp-unit .cp-input { padding-right: 52px; }
.cp-unit > span { position: absolute; right: 14px; top: 0; height: var(--cp-in-h); display: flex; align-items: center; font-size: 18px; color: var(--cp-muted); font-weight: 600; pointer-events: none; }
.cp-ytable-wrap { overflow-x: auto; }
.cp-ytable { width: 100%; border-collapse: collapse; font-size: 17px; }
.cp-ytable caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
.cp-ytable thead th { text-align: right; font-size: 15px; font-weight: 600; color: var(--cp-t2); padding: 6px 0 6px 10px; border-bottom: 2px solid var(--cp-ink); white-space: nowrap; }
.cp-ytable thead th:first-child, .cp-ytable tbody th { text-align: left; padding-left: 0; }
.cp-ytable tbody th { font-weight: 400; padding: 7px 10px 7px 0; white-space: nowrap; }
.cp-ytable td { text-align: right; font-family: var(--cp-mono); font-weight: 700; padding: 7px 0 7px 10px; white-space: nowrap; }
.cp-ytable tbody tr { border-bottom: 1px dashed var(--cp-dash); }
.cp-more { border: 1px solid var(--cp-border); background: #FFFFFF; }
.cp-more > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 17px; min-height: 48px; display: flex; align-items: center; }
.cp-more > div { padding: 0 14px 12px; }
.cp-rooms { display: flex; flex-direction: column; gap: 8px; }
.cp-room-grid { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.cp-room-head { font-size: 17px; font-weight: 600; text-align: center; }
.cp-room-x { text-align: center; color: var(--cp-muted); font-weight: 700; }
.cp-room-n { font-size: 15px; color: var(--cp-muted); text-align: right; }
.cp-room .cp-error { display: block; padding-left: 32px; }
.cp-tool:not([data-cp-mode="piu"]) .cp-show-piu,
.cp-tool:not([data-cp-mode="prezzo"]) .cp-show-prezzo,
.cp-tool:not([data-cp-mode="perc"]) .cp-show-perc,
.cp-tool:not([data-cp-mode="inv"]) .cp-show-inv { display: none !important; }
.cp-receipt--words th { white-space: nowrap; width: 1%; padding-right: 16px; }
.cp-receipt--words td.cp-num { white-space: normal; text-align: right; font-family: inherit; font-weight: 600; }
@media (max-width: 767px) { .cp-ytable th:nth-child(2), .cp-ytable td:nth-child(2), .cp-ytable .cp-cents { display: none; } }
@media (min-width: 768px) {
	.cp-chips--even-desktop .cp-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cp-select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23141E36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; font-weight: 600; }
.cp-tool:not([data-cp-mode="altra"]) .cp-show-altra { display: none !important; }
.cp-label-row { flex-wrap: wrap; row-gap: 6px; }
.cp-tool:not([data-cp-mode="ok"]) .cp-show-ok,
.cp-tool:not([data-cp-mode="busta"]) .cp-show-busta { display: none !important; }
.cp-ytable .cp-r-mark th, .cp-ytable .cp-r-mark td { border-top: 2px solid var(--cp-acc); }
.cp-tool:not([data-cp-mode="elettrica"]) .cp-show-elettrica,
.cp-tool[data-cp-mode="elettrica"] .cp-hide-elettrica { display: none !important; }
.cp-chips[style*="repeat(3"] .cp-chip:last-child { grid-column: span 3; }
.cp-kid-grid { display: grid; grid-template-columns: 24px minmax(0, 0.8fr) minmax(0, 1.6fr) 56px; gap: 8px; align-items: center; }
.cp-kid .cp-error { display: block; padding-left: 32px; }
.cp-kid-grid .cp-select { font-size: 17px; padding-left: 10px; }
.cp-inc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.cp-inc-grid .cp-select { font-size: 17px; padding-left: 10px; }
.cp-tool:not([data-cp-mode="prop"]) .cp-show-prop,
.cp-tool:not([data-cp-mode="affitto"]) .cp-show-affitto { display: none !important; }
.cp-two--end { align-items: end; }
@media (max-width: 767px) {
	.cp-inc-grid { grid-template-columns: minmax(0, 1fr) 56px; }
	.cp-inc-grid .cp-select { grid-column: 1 / -1; }
}
[data-cp-incs] .cp-kid + .cp-kid { padding-top: 10px; border-top: 1px dashed var(--cp-dash); }
sup { font-size: max(.9em, 15px); line-height: 0; }
.cp-today { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 48px; font: inherit; font-size: 17px; font-weight: 600; color: var(--cp-link, #2D3F7A); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cp-room-in { position: relative; display: block; min-width: 0; }
.cp-room-in .cp-input { padding-right: 34px; }
.cp-room-u { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--cp-muted); pointer-events: none; }
.cp-tool[data-cp-tool="pensione-importo"]:not([data-cp-job="pubblico"]) .cp-show-pub,
.cp-tool[data-cp-tool="pensione-importo"]:not([data-cp-job="gs"]) .cp-show-gs,
.cp-tool[data-cp-tool="pensione-importo"]:not([data-cp-sex="F"]) .cp-show-f,
.cp-tool[data-cp-tool="pensione"]:not([data-cp-mode="contr"]) .cp-show-contr,
.cp-tool[data-cp-tool="pensione"]:not([data-cp-sex="F"]) .cp-show-f,
.cp-tool[data-cp-tool="tredicesima"]:not([data-cp-per="anno"]) .cp-show-anno { display: none !important; }
.cp-tool[data-cp-tool="riscatto"]:not([data-cp-tipo="ordinario"]) .cp-show-ord { display: none !important; }
.cp-tool[data-cp-tool="riscatto"][data-cp-payer="familiare"] .cp-show-io { display: none !important; }
.cp-pe-scen + .cp-pe-scen { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cp-border); }
.cp-pe-scen-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.cp-pe-scen .cp-note { margin-top: 12px; }
.cp-pe-routes th { white-space: normal; width: 48%; }
.cp-pe-routes td.cp-num { white-space: normal; overflow-wrap: break-word; }
.cp-pe-cond { display: block; font-weight: 400; }
