/* Programme editor (Round 7, builder C). Lives inside the organiser's Programme panel via #programme-editor-host. */
#programme-editor-host:empty{display:none}
#programme-editor-host .pe-intro{font-size:13px;line-height:1.5;margin:4px 0 6px;max-width:68ch}
#programme-editor-host .pe-count{display:inline-block;color:#6a796d;font-size:12px}
#programme-editor-host .pe-status{min-height:1.2em;margin:0 0 4px;font-size:13px;color:#365238;font-weight:600}
#programme-editor-host .pe-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
#programme-editor-host .pe-moment{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:start;padding:10px 0;border-bottom:1px solid #eef0ea}
#programme-editor-host .pe-moment.has-photo{grid-template-columns:64px 1fr auto}
#programme-editor-host .pe-thumb{width:64px;height:64px;object-fit:cover;border-radius:5px;display:block}
#programme-editor-host .pe-body{min-width:0}
#programme-editor-host .pe-body p{margin:0 0 3px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#programme-editor-host .pe-line time{font-weight:600;font-variant-numeric:tabular-nums;margin-right:4px}
#programme-editor-host .pe-desc{color:#3d4a40}
#programme-editor-host .pe-where{display:flex;flex-wrap:wrap;gap:2px 12px;color:#6a796d;font-size:12px!important}
#programme-editor-host .pe-actions{display:flex;gap:6px;align-items:center}
#programme-editor-host .pe-actions .small-button{margin:0;min-height:44px;min-width:44px}
#programme-editor-host .pe-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:14px;padding-top:14px;border-top:1px dashed #d5ddd1}
#programme-editor-host .pe-edit{grid-column:1/-1;margin-top:6px;background:#f7f9f4;border:1px solid #e2e8dc;border-radius:7px;padding:14px}
#programme-editor-host .pe-form h5{grid-column:1/-1;margin:0;font-size:13px;font-weight:600}
#programme-editor-host .pe-form label{display:grid;gap:4px;font-size:12px;min-width:0}
#programme-editor-host .pe-form input:not([type=file]),#programme-editor-host .pe-form select,#programme-editor-host .pe-form textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;min-height:44px;padding:8px 10px;border:1px solid #c9d3c6;border-radius:5px;background:#fff;color:#1f2a22;font-weight:400}
#programme-editor-host .pe-form textarea{resize:vertical;min-height:64px;line-height:1.45}
#programme-editor-host .pe-form .wide{grid-column:1/-1}
#programme-editor-host .pe-photo{display:grid;gap:6px}
#programme-editor-host .pe-photo-k{font-size:12px}
#programme-editor-host .pe-photo-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#programme-editor-host .pe-preview{width:72px;height:72px;object-fit:cover;border-radius:5px}
#programme-editor-host .pe-file{position:relative;display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border:1px solid #c1cec0;border-radius:4px;background:#fff;color:#365238;font-size:13px;cursor:pointer;overflow:hidden}
#programme-editor-host .pe-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
#programme-editor-host .pe-file:focus-within{outline:2px solid #375a3e;outline-offset:2px}
#programme-editor-host .pe-clear{margin:0;min-height:44px}
#programme-editor-host .pe-photo-note{margin:0;font-size:12px;color:#6a796d;min-height:1em}
#programme-editor-host .pe-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#programme-editor-host .pe-buttons .button{background:#375a3e;color:#fff;min-height:44px}
#programme-editor-host .pe-buttons .small-button{margin:0;min-height:44px}
@media (min-width:1100px){
  #programme-editor-host .pe-add{grid-template-columns:140px repeat(3,minmax(0,1fr))}
  #programme-editor-host .pe-add .pe-photo{grid-column:1/3}
  #programme-editor-host .pe-add .pe-buttons{grid-column:3/-1;justify-content:flex-end;align-self:end}
}
@media (max-width:640px){
  #programme-editor-host .pe-form{grid-template-columns:1fr}
  #programme-editor-host .pe-form input:not([type=file]),#programme-editor-host .pe-form select,#programme-editor-host .pe-form textarea{font-size:16px;min-height:44px}
  #programme-editor-host .pe-moment,#programme-editor-host .pe-moment.has-photo{grid-template-columns:1fr}
  #programme-editor-host .pe-thumb{width:100%;height:auto;max-height:180px}
  #programme-editor-host .pe-actions{justify-content:flex-start}
}
/* R32 (decisions 231-232): day and evening guests */
#programme-editor-host .pe-aud{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:#e7eee6;color:#2f4a35;font-size:12px;font-weight:600;white-space:nowrap}
#programme-editor-host .pe-invites .pe-showall{display:flex!important;gap:10px;align-items:center;justify-content:flex-start;font-weight:600;margin-top:8px;text-align:left}
#programme-editor-host .pe-invites .pe-showall input{width:22px!important;height:22px;flex:none;margin:0;min-height:0}
@media (max-width:900px){#programme-editor-host .pe-invites .pe-showall input{width:44px!important;height:44px}}
#programme-editor-host .pe-group{border:0;padding:0;margin:0 0 8px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
#programme-editor-host .pe-group legend{font-weight:600;font-size:13px;margin-bottom:4px}
#lw-day .lw-times-note{grid-column:1/-1;margin:20px 0 0;font-size:1rem;font-style:italic;opacity:.9}
