.ce-identity,.ce-choice,.ce-status>div,.ce-tabs,.ce-image-add,.ce-image-add form,.ce-images li>div{display:flex;align-items:center;gap:12px}
.ce-identity{flex-wrap:wrap;border-bottom:1px solid #dee7e3;padding-bottom:14px;margin-bottom:14px}
.ce-identity>b{font-size:16px}
.ce-identity>span,.ce-help,.ce-choice small,.ce-field small,.ce-compare small{font-size:12px;color:#52706b}
.ce-notice,.ce-status,.ce-message{background:#f0f6f3;border-radius:8px;padding:12px 14px;overflow-wrap:anywhere}
.ce-notice{color:#215d50}
.ce-choices,.ce-content,.ce-field,.ce-choice>span{display:grid;gap:8px}
.ce-choice{justify-content:space-between;padding:12px 0;border-bottom:1px solid #e4ebe8}
.ce-status{margin-bottom:14px}
.ce-status>div{justify-content:space-between}
.ce-status p{display:flex;gap:12px;flex-wrap:wrap;margin:5px 0}
.ce-tabs{gap:6px;border-bottom:1px solid #dce6e0;margin-bottom:15px}
.ce-tabs [aria-pressed=true]{color:#0a675d;border-bottom:2px solid #167668;border-radius:0}
.ce-content{gap:14px}
.ce-field>span,.ce-compare h3{font-size:14px;font-weight:650;color:#213e38}
.ce-field input,.ce-field textarea,.ce-image-add input[type=url]{border:1px solid #c8d7d1;border-radius:7px;width:100%;box-sizing:border-box;padding:10px;color:#193d35;font:inherit}
.ce-field textarea{resize:vertical;text-align:start}
.ce-field :disabled{background:#f0f3f1;color:#65746f}
.ce-source summary{cursor:pointer;margin:8px 0}
.ce-source textarea{font:12px/1.55 monospace}
.ce-images,.ce-photos{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:12px}
.ce-images li{border:1px solid #d6e1db;border-radius:8px;min-width:0;padding:6px}
.ce-images img,.ce-photos img{width:100%;height:135px;object-fit:contain;background:#f5f7f5}
.ce-images li>div{flex-wrap:wrap;justify-content:space-between;gap:3px}
.ce-images .live-button{font-size:11px;padding:4px;min-height:28px}
.ce-file{position:relative;display:inline-flex;align-items:center;padding:8px 12px;color:#fff;background:#10786b;border-radius:6px;cursor:pointer}
.ce-file input{position:absolute;inset:0;opacity:0;max-width:100%;cursor:pointer}
.ce-file:focus-within{outline:3px solid #84bcb0}
.ce-image-add{flex-wrap:wrap}
.ce-image-add form{flex:1;min-width:min(220px,100%)}
.ce-image-add form button{white-space:nowrap}
.ce-compare{margin-bottom:15px}
.ce-compare>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ce-compare>div>div{min-width:0;box-sizing:border-box;padding:10px;background:#f5f7f6;border-radius:7px}
.ce-compare>div>div:last-child{background:#ecf5f0}
.ce-compare pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:210px;overflow:auto;font:inherit;margin:8px 0}
.ce-photos{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));margin-top:6px}
.ce-photos img{height:64px}
.ce-help{margin:4px 0;line-height:1.7}
#ce-confirm label{display:flex;gap:6px;align-items:center;}
@media(max-width:620px){.ce-compare>div{grid-template-columns:1fr}
.ce-tabs{gap:1px}
.ce-tabs .live-button{padding:5px 8px}
.ce-images{grid-template-columns:repeat(2,minmax(0,1fr))}
.ce-images li>div{display:grid}
.ce-choice{flex-wrap:wrap}
.ce-status p{display:grid;gap:3px}
}

.ce-roles{margin:0 0 12px;color:#48635e}.ce-roles p{margin:6px 0;color:#845626}

.ce-composer{display:grid;gap:12px;border-top:1px solid #dce6e0;padding-top:14px}
.ce-composer summary{cursor:pointer;font-weight:600}
.ce-composer form{display:grid;gap:8px;margin-top:6px}
.ce-composer form button{justify-self:start}
.ce-conflicts{background:#fff7e8;padding:12px;border-radius:8px}
.ce-conflicts pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:auto}
.ce-rich-preview p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}


.live-modal:has(.ce-identity,.ce-choices){display:flex;flex-direction:column;overflow:hidden}
.live-modal:has(.ce-identity,.ce-choices) .live-modal-body{min-height:0;overflow-y:auto}
.live-modal:has(.ce-identity,.ce-choices)>header,.live-modal:has(.ce-identity,.ce-choices)>footer{flex-shrink:0}


@media screen {
  .pm-gap-filters { display:flex; flex-wrap:wrap; gap:.4rem; padding:.35rem .8rem; }
  .pm-suspects { padding:.5rem .9rem; min-width:0; }
  .pm-suspects h2 { font-size:1.05rem; }
  .pm-suspects article { border-top:1px solid #dce6e0; padding:.45rem 0; }
  .pm-suspects h3 { font-size:.93rem; margin:0; overflow-wrap:anywhere; }
  .pm-suspects ul { margin:.3rem 0; padding:0; list-style:none; }
  .pm-suspects li { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:.2rem 0; overflow-wrap:anywhere; }
}

@media screen {
  #pm-quick { display:grid; gap:.65rem; min-width:0; }
  #pm-quick fieldset { min-width:0; border:1px solid #dce6e0; padding:.5rem .7rem; }
  .pm-reference-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem .7rem; }
  .pm-reference-fields input { min-width:0; width:100%; }
  #pm-quick button { justify-self:start; }
  .pm-quick-cost { margin-top:1rem; border-top:1px solid #dce6e0; }
}
