.s2 details > summary {padding:9px 0;cursor:pointer;font-weight:700;color:var(--ui-ink);}
.s2 form {display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:12px 0;}
.s2 label {display:flex;flex-direction:column;gap:3px;font-size:13px;max-width:100%;}
.s2 input,.s2 select,.s2 output {max-width:100%;min-width:0;}
.s2 td input {width:100%;text-align:right;}
.s2-rate-fieldset {width:100%;min-width:0;border:0;margin:0;padding:0;}
.s2 [hidden] {display:none;}
.s2-matches {flex:1 0 100%;padding:12px;border:1px solid #b7cbe5;border-radius:8px;background:#e1efff;}
.s2-matches label {margin:8px 0;}
.s2 table {table-layout:fixed;}
.s2 .s2-status:not(:empty){color:var(--ui-ink);background:#e1efff;padding:8px;border-radius:6px;}
.s2 > details > details {padding:4px 10px;border-top:1px solid #e3e8f2;}
.s2-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;}
.s2-menu {display:grid;margin-top:12px;padding:0 16px;}
.s2-menu .work-link {min-height:52px;}
.s2-menu .work-link:last-child {border-bottom:0;}
.s2-task {min-width:0;padding:14px 16px;}
.s2-task h1 {outline-offset:3px;}
.s2-task h2,.s2-task legend {font-size:16px;font-weight:700;color:var(--ui-ink);}
.s2-task > p {margin:10px 0;}
.s2-task .s2-status:empty,.s2-task [data-reg-hint]:empty {display:none;}
.s2-task fieldset {border:0;min-width:0;padding:0;margin:0;}
.s2-task legend {width:100%;padding-bottom:6px;margin-bottom:12px;border-bottom:1px solid var(--ui-border);}
.s2-task .s2-stack {display:grid;justify-items:start;gap:20px;}
.s2-task .s2-stack > fieldset,.s2-task .s2-stack > .s2-fields {width:100%;}
.s2-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px 16px;}
.s2-search {display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-bottom:10px;}
.s2-search label {flex:1;min-width:min(170px,100%);}
.s2-search output {align-self:center;font-weight:700;}
.s2-task input:not([type=hidden]),.s2-task select {min-height:42px;width:100%;font-size:16px;}
.s2-task [data-pair],.s2-history {border-top:1px solid var(--ui-border);padding:2px 0;}
.s2-task [data-pair] > summary {overflow-wrap:anywhere;}
.s2-receipt-filter {display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:14px 0;}
.s2-related {border-top:1px solid var(--ui-border);padding-top:12px;line-height:2;}
.s2 a {color:var(--ui-blue);}
.s2 a.btn {text-decoration:none;}
.s2 .s2-add-contact {padding:4px 12px;border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:6px;margin-top:12px;}
.s2-task .btns .btn {text-align:left;}
.s2-task [data-report-preview] h2,.s2-task [data-report-preview] h3 {overflow-wrap:anywhere;}
@media(max-width:500px){
  .s2-task .s2-stack>.btn,.s2-task [data-form="receipt"]>.btn,.s2-task [data-form="contact"]>.btn,
  .s2-task [data-form="prices"]>.btn,.s2-task [data-report] {width:100%;}
  .s2-task form label {min-width:0;}
  .s2-task .s2-fields {grid-template-columns:minmax(0,1fr);}
}
.s2-preview,.s2-report-actions {padding:12px 0;}
.s2-line,.s2-label,.s2-card {padding:10px;border:1px solid var(--ui-border);break-inside:avoid;}
.s2-line p,.s2-card p,.s2-label p {margin:4px 0;}
.s2-line {border-width:0 0 1px;}
.s2-print-only {display:none;}
.reg-page {min-width:0;container:registration / inline-size;}
.reg-page .box {padding:14px 16px;}
.reg-page .s2-status:empty {display:none;}
.reg-kind {display:flex;padding:4px;gap:4px;background:var(--ui-surface);border-radius:9px;margin:6px 0 20px;}
.reg-kind .btn {flex:1;min-width:0;border-color:transparent;background:transparent;color:var(--ui-body);font-weight:600;}
.reg-kind .btn[aria-pressed="true"] {background:var(--ui-blue);color:white;border-color:var(--ui-blue);font-weight:700;}
.s2 .reg-form {display:grid;gap:20px;align-items:stretch;margin:8px 0;}
.s2 .reg-form[hidden] {display:none;}
.reg-form fieldset {min-width:0;margin:0;padding:0;border:0;}
.reg-form fieldset+fieldset {padding-top:8px;}
.reg-form legend {width:100%;font-size:16px;color:var(--ui-ink);font-weight:700;border-bottom:1px solid var(--ui-border);padding:0 0 7px;margin-bottom:13px;}
.reg-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:14px 18px;max-inline-size:calc(56rem + 18px);}
.reg-names {grid-column:1/-1;min-width:0;}
.reg-name-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;}
.reg-names .reg-single {display:inline-flex;flex-direction:row;align-items:center;gap:7px;min-height:40px;margin-top:4px;font-size:13px;}
.reg-single input {width:16px;height:16px;accent-color:#1769e2;}
.reg-form .reg-field,.reg-relation {max-inline-size:28rem;}
.reg-form .reg-field {min-width:0;align-self:start;font-size:14px;font-weight:600;gap:5px;}
.reg-field select,.reg-field input,.reg-filter input {width:100%;height:44px;font-size:16px;font-weight:400;}
.reg-field small {margin-left:3px;font-weight:500;font-size:11px;}
.reg-required {color:#8a5300;}
.reg-optional {color:var(--ui-muted);}
.reg-relation {min-width:0;}
.reg-relation .reg-filter {margin:5px 0 4px;}
.s2 .reg-filter summary {padding:2px 0;font-size:13px;color:var(--ui-body);font-weight:500;}
.reg-relation .link {font-size:13px;min-height:30px;}
.reg-preview {display:grid;gap:2px;padding:10px 14px;margin-top:15px;background:var(--ui-surface);border-left:3px solid var(--ui-blue);border-radius:4px;}
.reg-preview span {color:var(--ui-muted);font-size:12px;}
.reg-preview output {font-size:15px;font-weight:700;color:var(--ui-ink);}
.reg-form .reg-submit {justify-self:start;min-height:44px;padding:8px 24px;}
.reg-entry {display:grid;gap:20px;min-width:0;}
.reg-form [data-reg-screen] {min-width:0;}
.reg-form h2,.work-confirm h2 {margin:0 0 16px;font-size:18px;color:var(--ui-ink);}
.reg-steps {list-style:none;display:flex;align-items:center;gap:8px;margin:0 0 2px;padding:0;color:var(--ui-muted);}
.reg-steps li {display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;}
.reg-steps li+li::before {content:"";width:clamp(12px,3vw,32px);height:1px;background:#c3cfdc;margin-right:3px;}
.reg-steps span {display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--ui-surface);font-weight:700;}
.reg-steps [aria-current] {color:var(--ui-blue);font-weight:700;}
.reg-steps [aria-current] span {background:var(--ui-blue);color:#fff;}
.reg-return {justify-self:start;}
.reg-summary {display:grid;grid-template-columns:minmax(7em,min(34%,16rem)) minmax(0,1fr);align-items:stretch;gap:0;margin:0 0 18px;border-top:1px solid var(--ui-border);}
.reg-summary dt,.reg-summary dd {margin:0;padding:10px 6px;border-bottom:1px solid var(--ui-border);min-width:0;overflow-wrap:anywhere;white-space:pre-line;}
.reg-summary dt {color:var(--ui-body);font-size:13px;font-weight:500;}
.reg-summary dd {font-weight:600;color:var(--ui-ink);}
.reg-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.reg-actions .btn {min-height:44px;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;white-space:normal;text-align:center;}
.s2 .reg-form [hidden] {display:none;}
.reg-form .s2-matches {margin:14px 0;}
.reg-error {margin:8px 0;padding:10px 12px;color:#943524;background:#fff2ee;border-left:3px solid #c45438;}
.work-confirm {box-sizing:border-box;width:min(480px,calc(100% - 24px));max-height:85dvh;color:var(--ui-ink);border:1px solid var(--ui-border);border-radius:8px;box-shadow:0 16px 48px #182e483d;padding:clamp(16px,3vw,26px);overscroll-behavior:contain;}
.work-confirm::backdrop {background:#14293d66;}
.work-confirm .reg-actions {justify-content:flex-end;}
.s2 .s2-status a {display:inline-block;margin-left:4px;color:var(--ui-blue);font-weight:700;}
@container registration (min-width:64rem) {
  .reg-entry:has(fieldset+fieldset) {grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(20px,2cqi,36px);}
  .reg-entry fieldset+fieldset {padding-top:0;}
  .reg-entry .reg-submit {grid-column:1/-1;}
}
@media(max-width:600px){.reg-form .reg-submit {width:100%;}.reg-fields {grid-template-columns:minmax(0,1fr);}}
@media print {
  body.printing-reception>* {display:none !important;}
  body.printing-reception>.s2-print-only {display:block !important;font-size:10pt;}
  .s2-print-only h3,.s2-print-only h4 {break-after:avoid;}
  .s2-print-only .s2-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
