.contacts-views{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:20px}.contacts-views button{display:flex;align-items:center;gap:10px;border:0;border-radius:0;background:transparent;color:var(--muted);padding:12px 14px;border-bottom:2px solid transparent}.contacts-views button[aria-pressed=true]{border-bottom-color:var(--forest);color:var(--forest);font-weight:650}.contacts-views button:hover{background:var(--mint)}.contacts-views .count{font-size:13px;font-variant-numeric:tabular-nums}.contacts-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.contacts-toolbar label{margin:0}.contacts-toolbar select,.contacts-toolbar input{margin:0}.contacts-search{flex:1;min-width:240px;position:relative}.contacts-search>.icon{position:absolute;top:12px;left:13px;color:var(--muted)}.contacts-search input{padding-left:42px;width:100%}.contacts-stage-filter{width:170px}.contacts-sort{width:185px}.contacts-toolbar button{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.contacts-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px;padding:20px;background:#edf1eb;border:1px solid var(--line);border-radius:8px}.contacts-filter-fields[hidden]{display:none}.contacts-filter-fields label{margin:0}.contacts-filter-fields select{margin:6px 0 0;width:100%}.contacts-results-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;min-height:34px;color:var(--muted);font-size:14px}.contacts-results-meta button{border:0;background:transparent;padding:5px 0;min-height:34px;color:var(--forest)}.contacts-register{background:white;border:1px solid var(--line);border-radius:12px;overflow:clip}.contacts-table{table-layout:fixed;width:100%;border-collapse:collapse;min-width:0}.contacts-table th{font-weight:550;color:var(--muted);background:#edf1eb;padding:14px 18px;text-align:left;font-size:13px;border-bottom:1px solid var(--line)}.contacts-table th:nth-child(1){width:20%}.contacts-table th:nth-child(2){width:20%}.contacts-table th:nth-child(3){width:25%}.contacts-table th:nth-child(4){width:17%}.contacts-table th:nth-child(5){width:18%}.contacts-table td{padding:20px 18px;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.contacts-table tbody tr:last-child td{border-bottom:0}.contacts-table tbody tr:hover{background:#f8faf6}.contacts-table .text-button{min-height:0;display:inline-flex;text-align:left;align-items:center;gap:5px;padding:0;border-radius:2px;line-height:1.45}.contacts-table .name{font-size:16px;font-weight:650}.contacts-secondary{display:block;font-size:13px;color:var(--muted);line-height:1.5;margin-top:5px}.contacts-channels a,.contacts-detail-channels a{display:flex;align-items:flex-start;gap:7px;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}.contacts-channels a:hover,.contacts-detail-channels a:hover{text-decoration:underline;text-underline-offset:3px}.contacts-channels a+a{margin-top:9px}.contacts-channels .icon{width:16px;height:18px;margin-top:2px}.contacts-land>div+div{margin-top:12px}.contacts-more{margin-top:8px}.contacts-stage{font-size:13px;display:inline-block;padding:3px 7px;border-radius:4px;background:#edf1eb;line-height:1.4}.contacts-restricted{color:#a33832;font-weight:550}.contacts-missing{font-size:14px;color:var(--muted)}.contacts-set-next{color:var(--forest)}.contacts-set-next .icon{width:16px;height:16px}.contacts-register .pagination{border-top:1px solid var(--line)}.contacts-register .empty{padding:42px 24px}.contacts-register .pagination button{min-height:44px}#detail-dialog.contacts-workspace{width:min(1100px,calc(100% - 40px));padding:0;max-height:94dvh}.contacts-detail-header{padding:30px 64px 24px 28px;border-bottom:1px solid var(--line)}.contacts-detail-title h2{margin:0 0 10px;overflow-wrap:anywhere}.contacts-detail-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:14px;color:var(--muted)}.contacts-detail-channels{display:flex;gap:12px 22px;flex-wrap:wrap;margin-top:20px}.contacts-detail-channels a{min-height:36px;max-width:100%;align-items:center}.contacts-detail-channels a span{min-width:0;overflow-wrap:anywhere}.contacts-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.contacts-detail-actions button{display:inline-flex;align-items:center;gap:8px}.contacts-detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr)}.contacts-detail-main,.contacts-detail-aside{min-width:0;padding:28px}.contacts-detail-main>h3,.contacts-detail-aside h3{margin:0 0 15px;font-size:17px}.contacts-detail-aside{background:#f6f8f3;border-left:1px solid var(--line)}.contacts-next{padding-bottom:24px;margin:0 0 24px;border-bottom:1px solid var(--line)}.contacts-next .task-item{padding:0;flex-wrap:wrap}.contacts-next .task-due{max-width:none;text-align:left}.contacts-property-context .list-link{padding:14px 0;align-items:flex-start}.contacts-property-context .list-link:first-of-type{padding-top:0}.contacts-property-context .text-button{padding:0;min-height:0}.contacts-property-context .icon-button{background:transparent}.contacts-working-note{margin:0 0 28px}.contacts-working-note h3{margin:0 0 12px}.contacts-working-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.65;max-width:70ch}.contacts-disclosure{border-top:1px solid var(--line);margin-top:24px}.contacts-disclosure summary{font-size:14px;font-weight:550;padding:14px 0;min-height:44px;cursor:pointer;color:var(--forest)}.contacts-disclosure summary:hover{color:#1c4833}.contacts-disclosure form{margin:6px 0 20px}.contacts-disclosure[open]>summary{margin-bottom:4px}.contacts-detail-main #contact-history>.contacts-disclosure{margin:0;border:0}.contacts-detail-main #contact-history>.contacts-disclosure summary{padding-top:0}.contacts-detail-main .contact-source{margin-top:20px}.contacts-detail-main .contact-source p{font-size:14px}.contacts-detail-main .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contacts-detail-main .note{padding:18px 0}.contacts-property-context .note-form label{width:100%}
@media(max-width:1180px){.contacts-search{flex-basis:45%}.contacts-sort{margin-left:auto}.contacts-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.contacts-table th,.contacts-table td{padding-left:12px;padding-right:12px}}
@media(max-width:1050px){.contacts-table,.contacts-table tbody{display:block}.contacts-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.contacts-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 28px;padding:22px;border-bottom:1px solid var(--line)}.contacts-table tbody tr:last-child{border-bottom:0}.contacts-table td{display:block;padding:0;border:0;min-width:0}.contacts-table .contacts-identity{grid-column:1/-1}.contacts-table td:not(.contacts-identity)::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:550;margin-bottom:8px}.contacts-table .contacts-land{grid-row:2/4;grid-column:2}.contacts-table .contacts-next-cell{grid-column:1/-1;border-top:1px solid #e7ece4;padding-top:14px;display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap}.contacts-table .contacts-next-cell::before{margin:0}.contacts-table .contacts-next-cell .contacts-secondary{margin:0}.contacts-detail-layout{grid-template-columns:minmax(0,1fr) minmax(260px,.9fr)}}
@media(max-width:740px){.contacts-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.contacts-toolbar{gap:8px}.contacts-search{flex-basis:100%;min-width:0}.contacts-stage-filter{flex:1;min-width:130px}.contacts-sort{flex:1;width:auto;min-width:170px}.contacts-detail-layout{display:flex;flex-direction:column}.contacts-detail-aside{order:-1;border-left:0;border-bottom:1px solid var(--line)}.contacts-detail-main,.contacts-detail-aside{padding:22px}.contacts-detail-header{padding:24px 54px 22px 22px}.contacts-views{gap:0}.contacts-views button{padding:10px;font-size:14px}}
@media(max-width:480px){.contacts-views{display:grid;grid-template-columns:1fr 1fr}.contacts-views button{justify-content:space-between;text-align:left}.contacts-sort{flex-basis:100%}.contacts-table tr{padding:20px 16px;gap:18px 16px;grid-template-columns:minmax(0,1fr)}.contacts-table .contacts-land{grid-row:auto;grid-column:auto}.contacts-table .contacts-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}.contacts-table .contacts-status::before{margin:0}.contacts-table .contacts-status .contacts-secondary{margin:0}.contacts-filter-fields{grid-template-columns:1fr}.contacts-channels a{min-height:32px;align-items:center}.contacts-channels a+a{margin-top:2px}.contacts-register .pagination{flex-wrap:wrap;gap:10px}#detail-dialog.contacts-workspace{width:100%;max-width:100vw;max-height:100dvh;height:100dvh;inset:0;margin:0;border:0;border-radius:0}.contacts-detail-main .form-grid{grid-template-columns:1fr}.contacts-detail-header{padding-left:20px}.contacts-detail-main,.contacts-detail-aside{padding:22px 20px}}

/* Keep frequent contact actions easy to scan and reach. */
.contacts-table .text-button,.contacts-property-context .text-button{min-height:44px;align-items:center}
.contacts-channels a,.contacts-recorded-phone{display:flex;align-items:center;gap:8px;min-height:44px;overflow-wrap:anywhere}
.contacts-channels a+a{margin-top:0}
.contacts-recorded-phone{color:var(--muted)}
.contacts-recorded-phone .icon{flex:none;width:16px;height:18px}
.contacts-recorded-phone>span{min-width:0}
.contacts-results-meta button{min-height:44px}
.contacts-detail-header{padding-top:24px;padding-bottom:20px}
.contacts-detail-channels{margin-top:12px;gap:4px 20px}
.contacts-detail-channels a{min-height:44px}
.contacts-detail-actions{margin-top:8px}
.contacts-next #contact-task{margin-top:12px;display:inline-flex;align-items:center;gap:8px;min-height:44px}
.contacts-next .contacts-secondary{margin-bottom:0}
.contacts-property-context .list-link{gap:12px}
.contacts-property-context .icon-button{flex:none;min-width:44px;min-height:44px}
.contacts-views button:focus-visible,.contacts-disclosure summary:focus-visible,.contacts-table .text-button:focus-visible,.contacts-channels a:focus-visible,.contacts-detail-channels a:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
@media(max-width:740px){.contacts-detail-header{padding-top:20px;padding-bottom:16px}.contacts-detail-main,.contacts-detail-aside{padding-top:20px;padding-bottom:20px}.contacts-next{padding-bottom:20px;margin-bottom:20px}}
@media(max-width:480px){.contacts-table tr{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:12px 16px;padding:16px}.contacts-table .contacts-identity{grid-column:1;grid-row:1}.contacts-table .contacts-status{grid-column:2;grid-row:1;display:block;text-align:right}.contacts-table .contacts-status::before{display:none}.contacts-table .contacts-status .contacts-secondary{margin-top:6px}.contacts-table .contacts-channels,.contacts-table .contacts-land,.contacts-table .contacts-next-cell{grid-column:1/-1}.contacts-table .name{padding:0}.contacts-table td:not(.contacts-identity)::before{margin-bottom:4px}.contacts-land>div+div{margin-top:8px}.contacts-channels a{min-height:44px}.contacts-table .contacts-next-cell{padding-top:10px}.contacts-detail-actions button{flex:1;justify-content:center}}

.contacts-results-meta{align-items:flex-start;flex-wrap:wrap}
.contacts-results-meta>span{padding-top:12px}
.contacts-result-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 16px;margin-left:auto}
#contacts-options>summary{min-height:44px;box-sizing:border-box;padding:10px 0;cursor:pointer;color:var(--forest);font-size:14px}
#contacts-options>summary:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
#contacts-options #export-crm{display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:8px;margin:4px 0 8px}

/* Comments keep the existing history form and its contextual save path. */
.contacts-comments{padding:24px 28px;border-bottom:1px solid var(--line);background:var(--surface,#fff)}
.contacts-comments>h3{display:flex;align-items:baseline;gap:10px;margin:0 0 12px;font-size:17px}
.contacts-comments .empty{padding:0;margin:0;max-width:68ch;line-height:1.55;color:var(--muted);text-align:left}
.contacts-comment-composer[hidden]{display:none}
#contact-comment-composer:not([hidden])+#contact-comment-items>.empty{display:none}
.contacts-comment-composer .note-form{margin:16px 0 24px;gap:12px;max-width:760px}
.contacts-comment-composer textarea{min-height:108px;resize:vertical}
.contacts-comment-composer .note-form>button{min-height:44px}
.contacts-comment-options.contacts-disclosure{margin:0;border:0}
.contacts-comment-options.contacts-disclosure summary{padding:10px 0;font-weight:500;min-height:44px;display:list-item}
.contacts-comment-options .form-grid{margin:0 0 8px}
.contacts-comment{padding:16px 0;border-top:1px solid var(--line);max-width:82ch}
.contacts-comment:first-child{border-top:0;padding-top:4px}
.contacts-comment:last-child{padding-bottom:0}
.contacts-comment-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.contacts-comment-meta strong{font-weight:600;color:var(--ink)}
.contacts-comment-meta time{font-variant-numeric:tabular-nums}
.contacts-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0;line-height:1.6;max-width:70ch}
.contacts-comment>.text-button{margin-top:8px;min-height:44px;display:inline-flex;align-items:center;text-align:left}
.contacts-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.contacts-history-heading h3{font-size:17px;margin:0}
.contacts-history-heading button{min-height:44px}
@media(max-width:740px){.contacts-comments{padding:22px}}
@media(max-width:480px){.contacts-comments{padding:22px 20px}.contacts-comment-options .form-grid{grid-template-columns:1fr}}

/* Contact-first detail; original forms and actions remain in their guarded flow. */
#detail-dialog.contacts-workspace .contacts-detail-header{padding:28px 64px 24px 28px}
#detail-dialog.contacts-workspace .contacts-return{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:0 0 16px;color:var(--muted);font-size:13px}
#detail-dialog.contacts-workspace .contacts-return>span{min-width:0;overflow-wrap:anywhere}
#detail-dialog.contacts-workspace .contacts-return button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--forest)}
#detail-dialog.contacts-workspace .contacts-return .icon{width:17px;height:17px;transform:rotate(180deg)}
#detail-dialog.contacts-workspace .contacts-property-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid var(--line)}
#detail-dialog.contacts-workspace .contacts-property-tabs button{min-height:44px;padding:8px 10px;border:0;background:transparent;color:var(--forest);font-size:14px;font-weight:500}
#detail-dialog.contacts-workspace .contacts-detail-title h2{font-size:32px;line-height:1.18;font-weight:650;letter-spacing:-.025em;margin:0 0 8px;overflow-wrap:anywhere}
#detail-dialog.contacts-workspace .contacts-profile-role{font-size:16px;line-height:1.5;color:var(--ink);margin:0 0 12px}
#detail-dialog.contacts-workspace .contacts-detail-meta{font-size:13px;gap:6px 14px}
#detail-dialog.contacts-workspace .contacts-profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0 16px;padding:20px 0 0;border-top:1px solid var(--line)}
#detail-dialog.contacts-workspace .contacts-profile-facts>div{min-width:0}
#detail-dialog.contacts-workspace .contacts-profile-facts dt{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 6px;font-weight:500}
#detail-dialog.contacts-workspace .contacts-profile-facts dt .icon{width:16px;height:16px}
#detail-dialog.contacts-workspace .contacts-profile-facts dd{margin:0;text-align:left;overflow-wrap:anywhere;font-size:17px;line-height:1.5;font-weight:550;color:var(--ink)}
#detail-dialog.contacts-workspace .contacts-profile-facts dd>a,#detail-dialog.contacts-workspace .contacts-profile-facts dd>span{display:block;min-height:0}
#detail-dialog.contacts-workspace .contacts-profile-facts dd>a{padding:7px 0;min-height:44px;box-sizing:border-box}
#detail-dialog.contacts-workspace .contacts-profile-missing{color:var(--muted);font-weight:400;font-size:15px}
#detail-dialog.contacts-workspace .contacts-profile-birth{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:12px 0 20px;font-size:13px;color:var(--muted)}
#detail-dialog.contacts-workspace .contacts-profile-birth time{font-weight:550;font-variant-numeric:tabular-nums;color:var(--ink)}
#detail-dialog.contacts-workspace .contacts-profile-birth small{font-size:12px}
#detail-dialog.contacts-workspace .contacts-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:20px}
#detail-dialog.contacts-workspace .contacts-detail-actions button{flex:none;min-height:44px;padding:10px 14px}
#detail-dialog.contacts-workspace .contacts-detail-actions button[hidden],#detail-dialog.contacts-workspace #contact-back[hidden]{display:none!important}
#detail-dialog.contacts-workspace .contacts-detail-actions #contact-compose{margin-left:auto}
#detail-dialog.contacts-workspace .contacts-detail-layout{grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr)}
#detail-dialog.contacts-workspace .contacts-detail-main>.contacts-disclosure:first-child{border:0;margin:0 0 20px}
#detail-dialog.contacts-workspace .contacts-detail-main>.contacts-disclosure:first-child:not([open]){display:none}
#detail-dialog.contacts-workspace .contacts-comments{padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
#detail-dialog.contacts-workspace .contacts-detail-aside{background:#f6f8f3}
#detail-dialog.contacts-workspace .contact-source[hidden]{display:none!important}
#detail-dialog.contacts-workspace .contacts-crm-links{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap}
#detail-dialog.contacts-workspace #contact-edit-open:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.contacts-person-row{gap:16px;align-items:flex-start}
.contacts-person-row>div:first-child{min-width:0}
.contacts-people-channels{display:flex;gap:8px 24px;flex-wrap:wrap;margin-top:10px;font-size:14px;line-height:1.5}
.contacts-people-channels>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;overflow-wrap:anywhere}
.contacts-people-label{font-size:12px;color:var(--muted)}
.contacts-people-channels a{color:var(--forest);display:inline-flex;align-items:center;min-height:44px;max-width:100%;overflow-wrap:anywhere}
.contacts-people-channels .contacts-profile-missing{color:var(--muted)}
@media(max-width:740px){
 #detail-dialog.contacts-workspace .contacts-detail-header{padding:24px 54px 22px 22px}
 #detail-dialog.contacts-workspace .contacts-detail-title h2{font-size:28px}
 #detail-dialog.contacts-workspace .contacts-profile-facts{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:20px}
 #detail-dialog.contacts-workspace .contacts-detail-aside{order:0;border:0;border-top:1px solid var(--line)}
 #detail-dialog.contacts-workspace .contacts-detail-actions #contact-compose{margin-left:0}
 #detail-dialog.contacts-workspace #contact-form :is(input,select,textarea){font-size:16px}
}
@media(max-width:480px){
 #detail-dialog.contacts-workspace .contacts-detail-header{padding:24px 52px 22px 20px}
 #detail-dialog.contacts-workspace .contacts-detail-actions{margin-right:-32px}
 #detail-dialog.contacts-workspace .contacts-detail-actions button{flex:1 1 auto;justify-content:center}
 .contacts-person-row{flex-wrap:wrap}
 .contacts-people-channels{flex-direction:column;gap:8px}
}


/* Compact contact hierarchy; controls, content and guarded handlers are unchanged. */
#detail-dialog.contacts-workspace .contacts-detail-header{padding:20px 60px 18px 24px}
#detail-dialog.contacts-workspace .contacts-return{margin-bottom:8px}
#detail-dialog.contacts-workspace .contacts-return button{min-height:32px;padding:4px 0}
#detail-dialog.contacts-workspace .contacts-property-tabs{margin-bottom:14px;padding-bottom:8px}
#detail-dialog.contacts-workspace .contacts-property-tabs button{min-height:32px;padding:4px 8px;font-size:13px;line-height:1.35;box-sizing:border-box}
#detail-dialog.contacts-workspace .contacts-detail-title h2{font-size:26px;margin-bottom:6px}
#detail-dialog.contacts-workspace .contacts-profile-role{font-size:14px;margin-bottom:8px}
#detail-dialog.contacts-workspace .contacts-detail-meta{gap:4px 10px;font-size:12px;line-height:1.5}
#detail-dialog.contacts-workspace .contacts-profile-facts{gap:20px;margin:16px 0 10px;padding-top:14px}
#detail-dialog.contacts-workspace .contacts-profile-facts dt{font-size:12px;margin-bottom:4px}
#detail-dialog.contacts-workspace .contacts-profile-facts dt .icon{width:14px;height:14px}
#detail-dialog.contacts-workspace .contacts-profile-facts dd{font-size:16px;line-height:1.4}
#detail-dialog.contacts-workspace .contacts-profile-facts dd>a{min-height:32px;padding:4px 0}
#detail-dialog.contacts-workspace .contacts-profile-missing{font-size:14px}
#detail-dialog.contacts-workspace .contacts-profile-birth{margin:8px 0 12px;font-size:12px}
#detail-dialog.contacts-workspace .contacts-detail-actions{margin-top:12px}
@media(pointer:coarse){
 #detail-dialog.contacts-workspace .contacts-return button,#detail-dialog.contacts-workspace .contacts-property-tabs button{min-height:44px}
 #detail-dialog.contacts-workspace .contacts-profile-facts dd>a{min-height:44px;padding:7px 0}
}
@media(max-width:740px){
 #detail-dialog.contacts-workspace .contacts-detail-header{padding:16px 20px 18px}
 #detail-dialog.contacts-workspace .contacts-return{padding-right:44px;margin-bottom:8px;gap:4px 12px}
 #detail-dialog.contacts-workspace .contacts-return button{min-height:44px;padding:6px 0}
 #detail-dialog.contacts-workspace .contacts-property-tabs{max-width:100%;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin-bottom:12px;padding-bottom:6px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--forest) var(--line)}
 #detail-dialog.contacts-workspace .contacts-property-tabs button{flex:0 0 auto;min-height:44px;padding:8px 10px;white-space:nowrap}
 #detail-dialog.contacts-workspace .contacts-property-tabs button:focus-visible{outline:2px solid var(--forest);outline-offset:-3px}
 #detail-dialog.contacts-workspace .contacts-property-tabs::-webkit-scrollbar{height:4px}
 #detail-dialog.contacts-workspace .contacts-property-tabs::-webkit-scrollbar-track{background:var(--line)}
 #detail-dialog.contacts-workspace .contacts-property-tabs::-webkit-scrollbar-thumb{background:var(--forest);border-radius:2px}
 #detail-dialog.contacts-workspace .contacts-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:14px 0 10px;padding-top:12px}
 #detail-dialog.contacts-workspace .contacts-profile-facts [data-contact-fact=address]{grid-column:1/-1}
 #detail-dialog.contacts-workspace .contacts-profile-facts dd{font-size:15px}
 #detail-dialog.contacts-workspace .contacts-profile-facts dd>a{min-height:44px;padding:7px 0}
 #detail-dialog.contacts-workspace .contacts-profile-birth{margin-bottom:10px}
 #detail-dialog.contacts-workspace .contacts-detail-actions{margin-right:0}
 #detail-dialog.contacts-workspace .contacts-detail-actions button{min-height:44px}
 #detail-dialog.contacts-workspace #contact-form :is(input,select,textarea){font-size:16px}
}

/* Property People: one discreet action, one progressive form, existing contact semantics. */
.property-people-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.property-people-heading h3{margin:0;font-size:1rem;line-height:1.4}
.property-people-heading [data-person-add]{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:32px;padding:5px 0;font-size:14px;font-weight:500;color:var(--forest);background:transparent;border:0}
.property-people-heading [data-person-add] .icon{width:15px;height:15px}
.property-person-panel{padding:16px 0;margin:0 0 20px;border-block:1px solid var(--line)}
.property-person-panel[hidden],.property-people-heading [hidden],.property-person-panel [hidden]{display:none!important}
.property-person-choices{display:flex;gap:8px;flex-wrap:wrap}
.property-person-choices button{min-height:32px;padding:7px 10px;font-size:14px;color:var(--forest);background:transparent;border:1px solid var(--line);border-radius:6px}
.property-person-choices button[aria-pressed=true]{border-color:var(--forest);background:var(--mint);font-weight:600}
.property-person-panel>.source-note{margin:10px 0 16px}
.property-person-form{display:grid;gap:12px;max-width:760px;margin:0}
.property-person-form label{min-width:0;font-size:14px}
.property-person-form .form-grid{gap:12px 20px;margin:0}
.property-person-form :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%;font:inherit;font-size:14px}
.property-person-form>button{justify-self:start;min-height:32px;padding:8px 12px}
.property-person-form .source-note{margin:0;font-size:12px}
.property-person-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:14px}
.property-person-footer p{margin:0;max-width:65ch;overflow-wrap:anywhere}
.property-person-footer button{min-height:32px;flex:none}
.property-person-panel :is(input,select,textarea,button):focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.property-person-panel button:disabled{opacity:.6;cursor:default}
@media(max-width:740px),(pointer:coarse){.property-people-heading [data-person-add],.property-person-panel button{min-height:44px}.property-person-form :is(input,select,textarea){font-size:16px;min-height:44px}}
@media(max-width:480px){.property-people-heading{gap:8px;align-items:baseline}.property-people-heading h3{font-size:14px}.property-people-heading [data-person-add]{font-size:12px;gap:4px}.property-person-choices{display:grid;grid-template-columns:1fr}.property-person-choices button{text-align:left}.property-person-form .form-grid{grid-template-columns:minmax(0,1fr)}.property-person-form .form-grid>.full{grid-column:1}.property-person-footer{align-items:flex-start}.property-person-form>button{width:100%;justify-self:stretch}}


/* Contacts main page: compact register within the current FOREST workspace. */
@media screen{
 #content:has(>.contacts-views)>.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
 #content:has(>.contacts-views)>.page-heading h1{font-size:var(--type-page,1.375rem);line-height:1.25;margin:0}
 #content:has(>.contacts-views)>.page-heading .actions{display:flex;align-items:center;gap:8px;margin:0}
 #content:has(>.contacts-views)>.page-heading button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 10px;font-size:14px;line-height:1.4;border-radius:6px}
 #content:has(>.contacts-views)>.page-heading button .icon{width:16px;height:16px}
 #content #contacts-call-lists{background:transparent;border-color:transparent;color:var(--forest)}
 #content #contacts-call-lists:hover{background:var(--mint);border-color:var(--mint)}
 #content>.contacts-views{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0 0 14px;border-bottom:1px solid var(--line)}
 #content>.contacts-views button{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:5px 0 6px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:13px;line-height:1.4;font-weight:500;text-align:left}
 #content>.contacts-views button[aria-pressed=true]{color:var(--forest);font-weight:650;border-bottom-color:var(--forest)}
 #content>.contacts-views button:hover{color:var(--forest);background:transparent}
 #content>.contacts-views .count{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:inherit}
 #content #contacts-filters{margin:0}
 #content .contacts-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 160px auto 182px;gap:8px;align-items:center}
 #content .contacts-toolbar>label{min-width:0;width:auto;margin:0;flex:none}
 #content .contacts-search{position:relative}
 #content .contacts-search>.icon{position:absolute;top:50%;left:11px;width:16px;height:16px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
 #app #content #contacts-filters :is(input,select){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:32px;margin:0;padding:5px 10px;font-size:14px;line-height:1.4;border-radius:6px}
 #app #content #contacts-filters #contact-search{padding-left:34px;padding-right:10px}
 #content .contacts-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 10px;font-size:14px;line-height:1.4;border-radius:6px;white-space:nowrap}
 #content .contacts-toolbar button .icon{width:16px;height:16px}
 #content #contacts-filter-toggle[aria-expanded=true]{color:var(--forest);background:var(--mint);border-color:var(--forest)}
 #content .contacts-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;margin:14px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
 #content .contacts-filter-fields[hidden]{display:none}
 #content .contacts-filter-fields label{min-width:0;margin:0;font-size:12px;line-height:1.4;font-weight:500;color:var(--muted)}
 #app #content #contacts-filters .contacts-filter-fields select{margin-top:5px}
 #content>.contacts-results-meta{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;min-height:32px;margin:12px 0 8px;font-size:12px;line-height:1.4}
 #content .contacts-results-meta>span{padding:0;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
 #content .contacts-result-actions{display:flex;align-items:center;gap:8px 16px;margin-left:auto}
 #content .contacts-result-actions button,#content #contacts-options>summary{box-sizing:border-box;min-height:32px;margin:0;padding:6px 0;font-size:12px;line-height:1.5;font-weight:500;color:var(--forest)}
 #content #contacts-options{position:relative}
 #content #contacts-options>summary{display:list-item;list-style-position:inside;cursor:pointer}
 #content #contacts-options #export-crm{display:flex;align-items:center;gap:7px;min-height:32px;padding:6px 10px;margin:4px 0 0;border-radius:6px;background:var(--surface,#fff);white-space:nowrap}
 #content .contacts-register{border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);box-shadow:none;overflow:clip}
 #content .contacts-table{display:table;width:100%;table-layout:fixed;min-width:0;font-size:13px;line-height:1.45}
 #content .contacts-table thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
 #content .contacts-table tbody{display:table-row-group}
 #content .contacts-table tr{display:table-row;padding:0;border:0}
 #content .contacts-table th{padding:10px 14px;font-size:12px;line-height:1.4;font-weight:500;color:var(--muted);background:#f3f5f0;border-bottom:1px solid var(--line)}
 #content .contacts-table th:nth-child(1){width:22%}
 #content .contacts-table th:nth-child(2){width:20%}
 #content .contacts-table th:nth-child(3){width:24%}
 #content .contacts-table th:nth-child(4){width:16%}
 #content .contacts-table th:nth-child(5){width:18%}
 #content .contacts-table td{display:table-cell;padding:8px 14px;vertical-align:top;min-width:0;overflow-wrap:anywhere;border-bottom:1px solid var(--line);text-align:left}
 #content .contacts-table td::before{display:none}
 #content .contacts-table tbody tr:last-child td{border-bottom:0}
 #content .contacts-table tbody tr:hover{background:#f5f8f2}
 #content .contacts-table tbody tr:focus-within{background:#f1f6ee}
 #content .contacts-table .text-button{display:inline-flex;align-items:center;min-height:32px;max-width:100%;padding:4px 0;gap:5px;font-size:13px;line-height:1.4;font-weight:550;text-align:left;border-radius:2px}
 #content .contacts-table .name{font-size:14px;line-height:1.4;font-weight:650;color:var(--ink)}
 #content .contacts-table .contacts-secondary{display:block;font-size:12px;line-height:1.45;color:var(--muted);margin:2px 0 0}
 #content .contacts-table .contacts-identity>.contacts-secondary{margin-top:1px}
 #content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone){display:flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0;font-size:13px;line-height:1.4}
 #content .contacts-table .contacts-channels .icon{flex:none;width:14px;height:16px;margin:0}
 #content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone)>span{min-width:0;overflow-wrap:anywhere}
 #content .contacts-table .contacts-missing{font-size:12px;line-height:1.45;color:var(--muted)}
 #content .contacts-table .contacts-land>div+div{margin-top:6px}
 #content .contacts-table .contacts-land .contacts-secondary{font-variant-numeric:tabular-nums}
 #content .contacts-table .contacts-more{min-height:28px;margin-top:4px;padding:3px 0;font-size:12px;font-weight:500}
 #content .contacts-table .contacts-stage{display:inline-block;margin:5px 0 2px;padding:0;border-radius:0;background:transparent;color:var(--ink);font-size:13px;line-height:1.4;font-weight:600}
 #content .contacts-table .contacts-restricted{color:#a33832;font-weight:550}
 #content .contacts-table .contacts-next-cell{border-top:0;padding-top:8px}
 #content .contacts-table .contacts-set-next{font-weight:500}
 #content .contacts-table .contacts-set-next .icon{width:14px;height:14px}
 #content .contacts-register .pagination{padding:10px 14px;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums}
 #content .contacts-register .pagination button{min-height:32px;padding:5px 10px;font-size:13px;line-height:1.4;border-radius:6px}
 #content .contacts-register .empty{padding:32px 18px;font-size:14px;line-height:1.55}
 #content .contacts-register .empty>.icon{width:24px;height:24px}
 #content :is(.contacts-views,.contacts-register,.contacts-toolbar,.contacts-result-actions) :is(button,a,summary):focus-visible,#content #contacts-filters :is(input,select):focus-visible,#content #contact-count:focus-visible,#content:has(>.contacts-views)>.page-heading button:focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
 #content :is(.contacts-views,.contacts-register,.contacts-toolbar,.contacts-result-actions) button:disabled{opacity:.52;cursor:not-allowed}
 #content .contacts-register[aria-busy=true]{cursor:progress}
 #content .contacts-register[aria-busy=true] :is(button,a){cursor:progress}
}
@media screen and (max-width:1100px){
 #content .contacts-toolbar{grid-template-columns:minmax(0,1fr) 150px auto 170px}
 #content .contacts-table :is(th,td){padding-left:10px;padding-right:10px}
}
@media screen and (max-width:1000px){
 #content .contacts-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
 #content .contacts-search{grid-column:1/-1}
 #content .contacts-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media screen and (min-width:701px) and (max-width:1000px){
 #content .contacts-register{min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden}
 #content .contacts-table{min-width:720px}
}
@media screen and (max-width:700px){
 #content .contacts-table,#content .contacts-table tbody{display:block}
 #content .contacts-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #content .contacts-table tr{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px 24px;padding:16px;border-bottom:1px solid var(--line)}
 #content .contacts-table tbody tr:last-child{border-bottom:0}
 #content .contacts-table td{display:block;padding:0;border:0;min-width:0}
 #content .contacts-table .contacts-identity{grid-column:1;grid-row:1}
 #content .contacts-table .contacts-status{grid-column:2;grid-row:1;text-align:right}
 #content .contacts-table .contacts-status::before{display:none}
 #content .contacts-table .contacts-stage{margin-top:5px}
 #content .contacts-table .contacts-channels{grid-column:1;grid-row:2}
 #content .contacts-table .contacts-land{grid-column:2;grid-row:2}
 #content .contacts-table td:is(.contacts-channels,.contacts-land)::before{content:attr(data-label);display:block;margin:0 0 3px;color:var(--muted);font-size:12px;line-height:1.4;font-weight:500}
 #content .contacts-table .contacts-next-cell{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;padding-top:8px;border-top:1px solid var(--line)}
 #content .contacts-table .contacts-next-cell::before{content:attr(data-label);display:inline;color:var(--muted);font-size:12px;line-height:1.4;font-weight:500}
 #content .contacts-table .contacts-next-cell .contacts-secondary{margin:0}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #content:has(>.contacts-views)>.page-heading button,#content>.contacts-views button,#content .contacts-toolbar button,#content .contacts-result-actions button,#content #contacts-options>summary,#content .contacts-register .pagination button{min-height:44px}
 #content:has(>.contacts-views)>.page-heading button,#content .contacts-toolbar button,#content .contacts-register .pagination button{padding:9px 11px}
 #content #contacts-options>summary,#content .contacts-result-actions button{padding-block:12px}
 #app #content #contacts-filters :is(input,select){min-height:44px;padding-block:9px;font-size:16px;line-height:1.4}
 #content .contacts-table :is(.text-button,.contacts-more),#content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone){min-height:44px}
 #content .contacts-table .contacts-stage{margin-top:11px}
}
@media screen and (max-width:600px){
 #content:has(>.contacts-views)>.page-heading{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
 #content:has(>.contacts-views)>.page-heading h1{font-size:20px}
 #content:has(>.contacts-views)>.page-heading .actions{gap:4px}
 #content:has(>.contacts-views)>.page-heading button{padding-inline:8px;font-size:13px}
 #content>.contacts-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-bottom:12px}
 #content>.contacts-views button{justify-content:space-between;gap:8px;padding:9px 0;font-size:13px;white-space:normal;min-width:0}
 #content>.contacts-views button>span:first-child{min-width:0;overflow-wrap:anywhere}
 #content>.contacts-views .count{flex:none}
 #content .contacts-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 #content .contacts-search{grid-column:1/-1}
 #content .contacts-sort{grid-column:1/-1}
 #content .contacts-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #content>.contacts-results-meta{gap:4px 12px;margin-top:8px;margin-bottom:6px}
 #content .contacts-result-actions{gap:8px 12px}
 #content #contacts-options>summary{font-size:12px}
 #content .contacts-table tr{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:8px 12px;padding:14px}
 #content .contacts-table .contacts-status{font-size:12px}
 #content .contacts-table .contacts-status .contacts-secondary{font-size:12px;line-height:1.5}
 #content .contacts-table .contacts-stage{font-size:12px}
 #content .contacts-table .contacts-channels{grid-column:1/-1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:0 16px}
 #content .contacts-table .contacts-channels::before{flex-basis:100%;margin-bottom:0}
 #content .contacts-table .contacts-channels :is(a,.contacts-recorded-phone){min-width:0;max-width:100%}
 #content .contacts-table .contacts-land{grid-column:1/-1;grid-row:3}
 #content .contacts-table .contacts-land>div+div{margin-top:4px}
 #content .contacts-table .contacts-next-cell{grid-row:4;gap:0 10px;padding-top:6px}
 #content .contacts-register .pagination{flex-wrap:wrap;gap:8px;padding:10px 14px}
 #content .contacts-register .pagination .actions{gap:6px}
}
@media screen and (max-width:360px){
 #content:has(>.contacts-views)>.page-heading>div:first-child{flex-basis:100%}
 #content:has(>.contacts-views)>.page-heading .actions{width:100%;justify-content:space-between}
 #content .contacts-filter-fields{grid-template-columns:minmax(0,1fr)}
 #content .contacts-table tr{grid-template-columns:minmax(0,1fr)}
 #content .contacts-table .contacts-status{grid-column:1;grid-row:2;text-align:left}
 #content .contacts-table .contacts-stage{margin-top:0}
 #content .contacts-table .contacts-channels{grid-row:3}
 #content .contacts-table .contacts-land{grid-row:4}
 #content .contacts-table .contacts-next-cell{grid-row:5}
}


/* Contacts-owned creation and call-list forms; existing profile and People styles stay intact. */
@media screen{
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form){width:min(720px,calc(100% - 32px));max-height:92dvh;padding:24px;border-radius:12px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>#detail-body>h2{margin:0 0 18px;padding-right:40px;font-size:20px;line-height:1.3;font-weight:650;letter-spacing:-.02em}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog{display:inline-flex;align-items:center;justify-content:center;top:16px;right:16px;width:32px;height:32px;min-width:32px;min-height:32px;padding:7px;border:0;border-radius:6px;background:transparent;color:var(--forest);font-size:14px;line-height:1}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog:hover{background:var(--mint)}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog .icon{width:16px;height:16px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form{margin:0}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form label{min-width:0;margin:0;font-size:13px;line-height:1.4;font-weight:500}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:32px;margin:6px 0 0;padding:5px 10px;border-radius:6px;font-size:14px;line-height:1.4}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form textarea{min-height:88px;padding-block:8px;line-height:1.5;resize:vertical}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form>.actions{gap:8px;margin-top:16px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form button{min-height:32px;padding:5px 10px;border-radius:6px;font-size:14px;line-height:1.4}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form) :is(button,input,select,textarea):focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
 #content:has(>.call-workspace)>.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
 #content:has(>.call-workspace)>.page-heading h1{margin:0;font-size:var(--type-page,1.375rem);line-height:1.25}
 #content:has(>.call-workspace)>.page-heading .actions{gap:8px;margin:0}
 #content:has(>.call-workspace)>.page-heading :is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 10px;border-radius:6px;font-size:14px;line-height:1.4}
 #content:has(>.call-workspace)>.page-heading a{padding-inline:0}
 #content .call-workspace{gap:14px}
 #content .call-workspace button{min-height:32px;padding:5px 10px;border-radius:6px;font-size:14px;line-height:1.4}
 #content .call-workspace .text-button{padding-inline:0;border-radius:2px}
 #content .call-workspace label{min-width:0;margin:0;font-size:13px;line-height:1.4;font-weight:500}
 #app #content .call-workspace :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%;min-height:32px;margin:6px 0 0;padding:5px 10px;border-radius:6px;font-size:14px;line-height:1.4}
 #app #content .call-workspace textarea{min-height:88px;padding-block:8px;line-height:1.5;resize:vertical}
 #content .call-list-toolbar{gap:12px}
 #content .call-list-toolbar>label:first-child{max-width:480px}
 #content :is(.call-name-form,.call-log){padding:18px;border-radius:8px;border-color:var(--line);box-shadow:none}
 #content .call-name-form{gap:12px;align-items:flex-end}
 #content .call-name-form .actions{gap:8px;padding-bottom:0}
 #content .call-log h2{margin:0 0 14px;font-size:16px;line-height:1.4;font-weight:650}
 #content .call-log .form-grid{gap:12px 20px;margin-bottom:12px}
 #content .call-log .muted{margin:10px 0 14px;font-size:12px;line-height:1.5}
 #content .call-management-body{gap:12px;padding:4px 0 16px}
 #content .call-workspace :is(.call-management>summary,.call-add>summary,.call-context>summary){box-sizing:border-box;min-height:32px;padding:6px 0;font-size:13px;line-height:1.5}
 #content .call-view-toolbar{gap:8px 12px}
 #content .call-view-toolbar>label:first-child{max-width:480px}
 #content .call-view-toolbar #call-list-count{font-size:12px}
 #content .call-workspace :is(.call-person h3 .text-button,.call-history>.text-button,.call-phone a){min-height:32px}
 #content .call-workspace button:disabled{opacity:.52;cursor:not-allowed}
 #content .call-workspace :is(button,a,input,select,textarea,summary):focus-visible,#content:has(>.call-workspace)>.page-heading :is(button,a):focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog{width:44px;height:44px;min-width:44px;min-height:44px;padding:12px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog .icon{width:18px;height:18px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form :is(input,select,textarea){min-height:44px;padding-block:9px;font-size:16px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form button{min-height:44px;padding:9px 12px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>#detail-body>h2{padding-right:48px}
 #content .call-workspace button,#content:has(>.call-workspace)>.page-heading :is(button,a){min-height:44px;padding-block:9px}
 #app #content .call-workspace :is(input,select,textarea){min-height:44px;padding-block:9px;font-size:16px}
 #content .call-workspace :is(.call-management>summary,.call-add>summary,.call-context>summary){min-height:44px;padding-block:12px}
 #content .call-workspace :is(.call-person h3 .text-button,.call-history>.text-button,.call-phone a){min-height:44px}
}
@media screen and (max-width:600px){
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form){width:calc(100% - 24px);max-height:94dvh;padding:20px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>#detail-body>h2{font-size:18px;margin-bottom:16px}
 #detail-dialog:not(.contacts-workspace):has(>#detail-body>#contact-form)>.close-dialog{top:10px;right:10px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 #detail-dialog:not(.contacts-workspace) #detail-body>#contact-form .form-grid>.full{grid-column:1}
 #content:has(>.call-workspace)>.page-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
 #content:has(>.call-workspace)>.page-heading h1{font-size:20px}
 #content:has(>.call-workspace)>.page-heading .actions{flex-wrap:wrap;gap:8px 14px}
 #content :is(.call-name-form,.call-log){padding:16px}
 #content .call-name-form{display:grid;gap:12px}
 #content .call-list-toolbar>label:first-child,#content .call-view-toolbar>label:first-child{max-width:none}
}
