.crm-loading {min-height: 100dvh; display: grid; place-items: center; padding: 24px; color: var(--muted);}
.crm-login {min-height: 100dvh; display: grid; place-items: center; padding: 28px 18px;}
.crm-login .card {width: min(100%, 430px); padding: clamp(24px, 5vw, 40px);}
.crm-login .brand {padding: 0 0 26px; color: var(--ink);}
.crm-login .brand-mark {background: var(--navy);}
.crm-login h1 {margin-bottom: 22px;}
.crm-public {width: min(100%, 780px); margin: auto; padding: clamp(22px, 5vw, 48px) 18px;}
.crm-public .brand {padding: 0 0 22px;}
.crm-public .brand-mark {background: var(--navy);}
.crm-public article, .crm-notice-text {white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65;}
.crm-public .crm-form {margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px;}
.crm-privacy-links .crm-item {align-items: flex-start; flex-wrap: wrap;}
.crm-privacy-link-actions {margin-top: 6px;}
.crm-privacy-link-actions .ghost {background: #f5f6fa;}
.crm-privacy-versions details {padding: 16px 20px; border-top: 1px solid var(--line);}
.crm-privacy-versions summary {cursor: pointer;}
.crm-privacy-copy input {font-family: monospace;}
a.primary, a.secondary, a.ghost, a.text-btn, a.request-row, a.clienti-row, a.inbox-item, a.nav-item, a.bottom-item, a.property-tile {text-decoration: none;}
.crm-import-row {padding: 11px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere;}
.crm-import-row summary {cursor: pointer; line-height: 1.7;}
.crm-import-row summary .pill {margin-inline-start: 8px;}
.crm-form {display: grid; gap: 15px; min-width: 0;}
.crm-field {display: grid; gap: 5px; min-width: 0;}
.crm-form label {display: grid; gap: 5px; min-width: 0; font-size: 14px; font-weight: 650;}
.crm-form [hidden] {display: none !important;}
.crm-fieldset {display: grid; gap: 10px; min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px;}
.crm-fieldset legend {padding: 0 4px; font-weight: 650; font-size: 14px;}
.crm-form input:not([type="checkbox"]), .crm-form textarea, .crm-form select {width: 100%; min-width: 0; min-height: 44px; border: 1px solid #c5cbd7; border-radius: 8px; background: white; padding: 8px 11px; color: var(--ink); font-size: 16px; font-weight: 400; margin: 0;}
.crm-form textarea {min-height: 112px; resize: vertical;}
.crm-form label.crm-check {display: flex; align-items: center; min-height: 44px;}
.crm-check input {width: 18px; height: 18px; margin: 0 5px 0 0; accent-color: var(--green);}
.crm-inline {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px;}
.crm-inline > *, .crm-grid-fields > * {min-width: 0;}
.crm-grid-fields {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;}
.crm-error {color: #842627; padding: 11px 13px; border: 1px solid #efd0cf; background: #fff5f4; border-radius: 8px; font-size: 14px; margin-block: 10px; overflow-wrap: anywhere;}
.crm-error:empty {display: none;}
dialog.dialog {padding: 0; border: none; position: fixed; color: var(--ink);}
dialog.dialog::backdrop {background: #15172d65; backdrop-filter: blur(3px);}
.crm-search .search-field {margin: 0;}
.crm-search .search-field input {min-width: 0;}
.crm-search-mobile {display: none;}
.crm-account, .crm-search-btn {min-width: 44px; min-height: 44px;}
.crm-profile-name {overflow-wrap: anywhere;}
.crm-empty-block {padding: 22px 24px; color: var(--muted); font-size: 14px;}
.crm-quote {overflow-wrap: anywhere; white-space: pre-wrap;}
.crm-detail-list {display: grid; gap: 12px; margin: 0;}
.crm-detail-list dt {font-size: 12px; color: var(--muted);}
.crm-detail-list dd {margin: 2px 0 0; overflow-wrap: anywhere;}
.crm-props .tile-info {display: block; padding: 16px; text-align: left;}
.crm-props .property-tile {display: block; height: 100%;}
.crm-props .property-tile:hover, .crm-item:hover {background: #f8f9fc;}
.crm-props .property-tile h3 {overflow-wrap: anywhere;}
.crm-item {display: flex; padding: 13px 18px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none;}
.crm-item:last-child {border-bottom: 0;}
.crm-record-text {overflow-wrap: anywhere;}
.crm-visit-title {min-width: 0; overflow-wrap: anywhere;}
.crm-visit-steps {margin: 0;}
.crm-timeline {padding: 17px 24px; border-bottom: 1px solid var(--line);}
.crm-timeline:last-child {border-bottom: 0;}
.crm-timeline .note {white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0;}
.crm-agenda-fallback {margin-top: 20px;}
.crm-agenda-fallback summary {padding: 12px 16px; cursor: pointer;}
.crm-agenda-fallback .crm-item .pill {flex-shrink: 0;}
.crm-unavailable {padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted);}
.crm-form-actions {display: flex; gap: 9px; justify-content: flex-end; flex-wrap: wrap; margin-top: 5px;}
.crm-form-actions .primary, .crm-form-actions .secondary, .crm-form-actions .ghost {min-width: fit-content;}
.crm-hint {color: var(--muted); font-size: 13px;}
.page-head > .primary, .page-head > .secondary {flex-shrink: 0;}
.crm-mobile-heading {display: none;}
.are-agenda .fc-event:focus-visible {outline: 3px solid #b47b09; outline-offset: 2px;}
@media (max-width: 1150px) {
  .crm-search {display: none;}
  .crm-search-mobile {display: grid;}
}
@media (max-width: 920px) {
  .clienti-column-labels, .clienti-row {grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 18px;}
  .clienti-column-labels > :nth-child(3), .clienti-row > :nth-child(3) {display: none;}
}
@media (max-width: 767px) {
  .page-head > a.primary, .page-head > button.primary, .page-head > a.secondary, .page-head > button.secondary {width: auto; max-width: 150px; height: auto; min-height: 44px; padding: 9px 12px; font-size: 13px; flex-shrink: 0;}
  .page-head > a svg, .page-head > button svg {width: 18px; height: 18px;}
  .crm-grid-fields {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .crm-visit-title {font-size: 14px;}
  .crm-timeline {padding: 14px 17px;}
}
@media (max-width: 480px) {
  .clienti-column-labels, .clienti-row {grid-template-columns: minmax(0, 1fr) 18px; gap: 7px; padding-inline: 15px;}
  .clienti-column-labels > :nth-child(2), .clienti-row > :nth-child(2) {display: none;}
  .crm-inline {grid-template-columns: minmax(0, 1fr);}
}
