.manage-main { padding-left: max(22px, calc((100vw - 1380px)/2)); padding-right: max(22px, calc((100vw - 1380px)/2)); }
.manage-heading h1 { max-width: 850px; }
.manage-summary { margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.manage-summary article { padding: 23px 26px; color: #fff; background: #171313; border-top: 4px solid #a91927; }
.manage-summary article:nth-child(2) { background: #a91927; }
.manage-summary article:nth-child(3) { color: #251b19; background: #fff; border: 1px solid #dfd0c8; border-top: 4px solid #a91927; }
.manage-summary span { font-family: "Libre Baskerville", Georgia, serif; font-size: 2.1rem; }
.manage-summary p { margin: 5px 0 0; color: inherit; opacity: .76; font-size: .78rem; }
.manage-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; gap: 22px; }
.tribute-picker { position: sticky; top: 120px; max-height: calc(100vh - 145px); padding: 20px; background: #171313; border-top: 5px solid #a91927; overflow: auto; }
.manage-search { display: grid; gap: 8px; color: #fff; font-size: .78rem; font-weight: 700; }
.manage-search input { width: 100%; padding: 12px; color: #241b19; background: #fff; border: 1px solid #fff; outline: 0; font-size: .95rem; }
.manage-search input:focus { box-shadow: 0 0 0 3px rgba(203,38,54,.55); }
.manage-filter { margin: 15px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.manage-filter button { min-height: 40px; color: #f0d9da; background: #281e1d; border: 1px solid #54383b; font-size: .75rem; font-weight: 700; }
.manage-filter button.active { color: #fff; background: #a91927; border-color: #d04b58; }
.tribute-picker-list { display: grid; gap: 8px; }
.tribute-picker-button { width: 100%; padding: 15px; display: grid; gap: 5px; text-align: left; color: #fff; background: #211918; border: 1px solid #493536; }
.tribute-picker-button:hover, .tribute-picker-button.active { background: #73121c; border-color: #da6670; }
.tribute-picker-button strong { font-family: "Libre Baskerville", Georgia, serif; font-size: .96rem; font-weight: 400; }
.tribute-picker-button small { color: #d9bdbe; font-size: .72rem; line-height: 1.5; }
.tribute-picker-button .picker-status { width: max-content; padding: 4px 7px; color: #171313; background: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tribute-picker-button .picker-status.pending { color: #fff; background: #c51e2e; }
.manage-list-empty { padding: 25px 12px; color: #fff; background: transparent; border-color: #68474a; }
.manage-list-empty strong { font-size: 1rem; }
.tribute-editor-shell { min-width: 0; background: #fff; border: 1px solid #dfd0c8; box-shadow: 0 24px 70px rgba(61,31,26,.09); }
.manage-check-row { padding: 18px; grid-template-columns: 20px 1fr !important; align-items: start; gap: 12px !important; color: #443532; background: #fff5f2; border-left: 4px solid #a91927; }
.manage-check-row input { width: 18px !important; height: 18px; margin: 2px 0 0; accent-color: #a91927; }
.manage-check-row span { display: grid; gap: 4px; font-size: 11px; line-height: 1.55; }
.manage-editor-empty { min-height: 600px; padding: 70px 30px; display: grid; place-items: center; align-content: center; text-align: center; }
.manage-editor-empty > span { width: 120px; aspect-ratio: 1; display: grid; place-items: center; color: #fff; background: #171313; border: 6px solid #f0dfd7; border-radius: 50%; font-family: "Libre Baskerville", Georgia, serif; font-size: 2.2rem; }
.manage-editor-empty h2 { margin: 28px 0 7px; font-size: 2rem; }
.manage-editor-empty p { max-width: 520px; color: #75655f; font-size: .95rem; line-height: 1.7; }
.tribute-editor[hidden] { display: none; }
.editor-titlebar { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #fff; background: linear-gradient(125deg, #171313, #301719 64%, #8e1521); }
.editor-titlebar h2 { margin: 5px 0 7px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.editor-titlebar p:not(.eyebrow) { margin: 0; color: #e3c5c7; font-size: .78rem; }
.editor-titlebar a { padding: 11px 14px; color: #fff; border: 1px solid #e4a6ac; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.editor-section { padding: 34px 32px; border-top: 1px solid #eadfd8; }
.editor-titlebar + .editor-section { border-top: 0; }
.editor-section-heading { margin-bottom: 24px; display: flex; align-items: flex-start; gap: 15px; }
.editor-section-heading > span { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #a91927; font-size: .75rem; font-weight: 700; }
.editor-section-heading h3 { margin: 0 0 5px; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.3rem; font-weight: 400; }
.editor-section-heading p { margin: 0; color: #786a64; font-size: .82rem; line-height: 1.6; }
.editor-grid { display: grid; gap: 19px; }
.editor-grid-two { grid-template-columns: 1fr 1fr; }
.editor-grid label, .repeat-entry label { display: grid; gap: 8px; color: #5e4f4a; font-size: .86rem; font-weight: 700; }
.editor-grid input, .editor-grid textarea, .repeat-entry input, .repeat-entry select { width: 100%; padding: 12px; color: #2b211f; background: #fffaf7; border: 1px solid #cab9b1; outline: 0; font: .95rem/1.6 "Manrope", sans-serif; resize: vertical; }
.editor-grid input:focus, .editor-grid textarea:focus, .repeat-entry input:focus, .repeat-entry select:focus { border-color: #a91927; box-shadow: 0 0 0 3px rgba(169,25,39,.1); }
.editor-grid small { color: #8a7a73; font-size: .74rem; font-weight: 400; }
.editor-span-two { grid-column: 1 / -1; }
.manage-repeat-list { display: grid; gap: 11px; }
.repeat-entry { padding: 16px; display: grid; grid-template-columns: minmax(145px,.7fr) minmax(190px,1.3fr) auto; align-items: end; gap: 12px; background: #fffaf7; border: 1px solid #e3d6cf; }
.repeat-entry-awareness { grid-template-columns: minmax(220px,1.5fr) minmax(150px,.7fr) auto; }
.repeat-entry button { min-height: 44px; padding: 0 11px; color: #8b1520; background: #fff; border: 1px solid #cdbab2; font-size: .74rem; font-weight: 700; }
.manage-add-button { margin-top: 13px; min-height: 42px; padding: 0; color: #8b1520; background: transparent; border: 0; border-bottom: 1px solid #c9959a; font-size: .8rem; font-weight: 700; }
.manage-add-button[hidden] { display: none; }
.manage-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.manage-photo-card { min-width: 0; padding: 11px; background: #fffaf7; border: 1px solid #decec6; }
.manage-photo-preview { position: relative; aspect-ratio: 1; overflow: hidden; background: #211918; }
.manage-photo-preview img, .manage-photo-preview video { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.manage-photo-badge { position: absolute; left: 7px; bottom: 7px; padding: 5px 7px; color: #fff; background: rgba(20,12,11,.85); font-size: .65rem; font-weight: 700; }
.manage-photo-actions { margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.manage-photo-actions button { min-height: 36px; color: #6c5852; background: #fff; border: 1px solid #d2c2ba; font-size: .68rem; font-weight: 700; }
.manage-photo-actions .remove-photo { grid-column: 1 / -1; color: #8d1420; }
.manage-crop-controls { display: grid; gap: 7px; }
.manage-crop-controls label { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 7px; color: #6a5a54; font-size: .68rem; }
.manage-crop-controls input { width: 100%; accent-color: #a91927; }
.manage-photo-upload { margin-top: 15px; min-height: 100px; padding: 18px; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; color: #5f4f4a; background: #fff8f3; border: 1px dashed #bba8a0; cursor: pointer; }
.manage-photo-upload input { position: absolute; opacity: 0; pointer-events: none; }
.manage-photo-upload > span { color: #a91927; font-size: 1.5rem; }
.manage-photo-upload strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 1rem; font-weight: 400; }
.manage-photo-upload small { color: #8b7b74; font-size: .72rem; }
.family-contact-editor { background: #171313; }
.family-contact-editor .editor-section-heading h3 { color: #fff; }
.family-contact-editor .editor-section-heading p { color: #d7c2c3; }
.family-contact-editor .editor-grid label { color: #fff; }
.editor-savebar { position: sticky; bottom: 0; z-index: 4; padding: 18px 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,250,247,.97); border-top: 1px solid #d7c5bd; box-shadow: 0 -10px 30px rgba(57,29,24,.08); backdrop-filter: blur(12px); }
.editor-savebar p { margin: 0; color: #7e1520; font-size: .82rem; line-height: 1.5; }
.editor-savebar .primary-button { flex: 0 0 auto; }
@media (max-width: 1050px) {
  .manage-layout { grid-template-columns: 1fr; }
  .tribute-picker { position: relative; top: auto; max-height: none; }
  .tribute-picker-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .manage-main { padding-left: 15px; padding-right: 15px; }
  .manage-summary, .editor-grid-two, .tribute-picker-list { grid-template-columns: 1fr; }
  .editor-span-two { grid-column: auto; }
  .editor-titlebar { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .editor-section { padding: 28px 18px; }
  .repeat-entry, .repeat-entry-awareness { grid-template-columns: 1fr; }
  .manage-photo-grid { grid-template-columns: 1fr; }
  .editor-savebar { align-items: stretch; flex-direction: column; }
  .editor-savebar .primary-button { width: 100%; }
}
