.contacts-page{max-width:1120px;margin:0 auto;border:2px solid var(--ink);background:#fff;box-shadow:5px 5px 0 var(--ink)}
.main:has(.contacts-page) .pagehead{max-width:1120px;margin-left:auto;margin-right:auto}
.contacts-page-content{padding:24px}
.contacts-page-feedback{min-height:22px;margin:0;padding:0 24px 18px;font-size:12px;line-height:1.6}
.contacts-page-feedback.error{color:#ba2f2f}
.contacts-page .contact-toolbar{margin-bottom:18px;gap:10px}
.contacts-page .contact-toolbar .hint{font-size:12px}
.contacts-page .contact-search{margin-bottom:24px}
.contacts-page .contact-search input{min-width:0;width:100%;min-height:43px}
.contacts-page .contact-search button{min-height:43px}
.contacts-page .contact-list{max-height:none;overflow:visible}
.contacts-page .contact-row{padding:20px 0;gap:20px}
.contacts-page .contact-main{gap:7px}
.contacts-page .contact-main strong{font-size:17px;line-height:1.4}
.contacts-page .contact-main span{font-size:12px}
.contact-methods{display:flex;gap:6px 18px;flex-wrap:wrap}
.contact-methods a{font-size:12px;color:var(--ink);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.contacts-page .contact-note{line-height:1.6}
.contacts-page .contact-actions{flex-wrap:wrap;justify-content:flex-end}
.contacts-page .contact-write{background:var(--yellow)}
.contacts-page .contact-write:hover{background:#fff19a}
.contact-vcard{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid var(--ink);font-size:11px;font-weight:700;text-decoration:none;color:var(--ink);background:#fffde9}
.contact-vcard:hover{background:var(--yellow)}
.contacts-page .stack{display:flex;flex-direction:column;gap:18px;max-width:720px}
.contacts-page .label{display:flex;flex-direction:column;gap:8px;font-size:12px}
.contacts-page .label input,.contacts-page .label textarea{min-height:42px}
.contacts-page .label textarea{min-height:100px;resize:vertical}
.contacts-page .two-cols{gap:18px}
.contacts-page .actions{margin-top:8px}
.contacts-page .contact-preview{max-height:420px;overflow:auto}
.contacts-page .contact-more{display:block;width:100%;margin:18px 0 0;min-height:44px;background:#fffde9;font-size:12px}
.contacts-page details{font-size:12px;line-height:1.6}
.contacts-page details summary{cursor:pointer;padding:8px 0}
@media(max-width:650px){
  .contacts-page-content{padding:16px}
  .contacts-page-feedback{padding:0 16px 16px}
  .contacts-page .contact-toolbar{align-items:stretch}
  .contacts-page .contact-toolbar .hint{flex-basis:100%;margin:0}
  .contacts-page .contact-toolbar button{flex:1}
  .contacts-page .contact-search{flex-wrap:nowrap}
  .contacts-page .contact-search input{min-width:0}
  .contacts-page .contact-row{gap:12px;padding:17px 0}
  .contacts-page .contact-main{flex-basis:100%}
  .contacts-page .contact-actions{width:100%;justify-content:flex-start}
  .contacts-page .contact-actions button,.contacts-page .contact-vcard{min-height:38px}
  .contacts-page .two-cols{grid-template-columns:1fr;gap:18px}
  .mobile-nav button{min-width:0}
  .mobile-nav button .icon{width:18px;height:18px}
}

.task-contact-field{position:relative;flex:1;min-width:0}
.task-contact-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:25;max-height:260px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink)}
.contact-form .task-contact-options button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid var(--line);text-align:left;min-height:52px;overflow-wrap:anywhere;white-space:normal}
.contact-form .task-contact-options button:last-child{border-bottom:0}
.contact-form .task-contact-options button:hover,.contact-form .task-contact-options button[aria-selected="true"]{background:var(--yellow)}
.task-contact-options strong{font-size:13px;line-height:1.4}
.task-contact-options span,.task-contact-options small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.4}
.task-contact-options p{padding:12px;font-size:12px;line-height:1.6;margin:0}
