/* G180 core refinements; media grids, music and operations retain their layout owners. */
@media screen {
 body.glory-app:not(.gathering-ops-theme) :is(.year-summary,.member-profile,.monitor-summary,.monitor-toolbar){border-radius:var(--ui-radius-card);}
 body.glory-app:not(.gathering-ops-theme) .poll-option{gap:var(--ui-space-3);padding:var(--ui-space-4);border-radius:var(--ui-radius-control);}
 body.glory-app:not(.gathering-ops-theme) :is(.monitor-actions,.monitor-main,.compact-row>div,.moderation-row>div,.member-facts dd){min-width:0;overflow-wrap:anywhere;}
 body.glory-app:not(.gathering-ops-theme) .monitor-actions>div{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-2);}
 body.glory-app:not(.gathering-ops-theme) .monitor-actions>div>.button{flex:1 1 auto;}
 body.glory-app:not(.gathering-ops-theme) .monitor-row{border-radius:var(--ui-radius-control);}
 body.glory-app:not(.gathering-ops-theme) :is(.monitor-check,.monitor-toolbar>label){min-height:var(--ui-control-height);display:flex;align-items:center;}
 body.glory-app:not(.gathering-ops-theme) :is(.form-intro,.page-title,.section-head)>div{min-width:0;}
 body.glory-app:not(.gathering-ops-theme) .form-intro{align-items:center;gap:var(--ui-space-4);}
 body.glory-app:not(.gathering-ops-theme) :is(.form-symbol,.form-heading-icon,.profile-symbol,.member-avatar){border-radius:var(--ui-radius-control);}
 body.glory-app:not(.gathering-ops-theme) .member-facts>div{gap:var(--ui-space-4);}
 /* Date cells remain a calendar, rather than becoming stacked cards. */
 body.glory-app:not(.gathering-ops-theme) .worship-calendar{border-radius:var(--ui-radius-card);}
 body.glory-app:not(.gathering-ops-theme) .birthday-page .worship-month-nav h2{min-width:0;line-height:1.4;}
 body.glory-app:not(.gathering-ops-theme) .birthday-page .worship-month-nav>a{font-size:14px;}
 body.glory-app:not(.gathering-ops-theme) .birthday-person{padding-block:4px;line-height:1.5;}
 body.glory-app:not(.gathering-ops-theme) .worship-dialog{border-width:1px;border-style:solid;border-radius:var(--ui-radius-card);}
 body.glory-app:not(.gathering-ops-theme) .worship-detail-list :is(a,button){display:inline-flex;align-items:center;min-height:var(--ui-control-height);padding:8px;}
 body.glory-app:not(.gathering-ops-theme) :is(.content-manage-actions .admin-inline-danger,.dashboard-content-actions .danger-link):hover:not(:disabled):not([aria-disabled=true]){text-decoration:none;}
 body.glory-app:not(.gathering-ops-theme) :is(.global-search-form,.search-input-row){min-width:0;max-width:100%;}
 body.glory-app:not(.gathering-ops-theme) .search-input-row{align-items:center;gap:var(--ui-space-2);}
 body.glory-app:not(.gathering-ops-theme) .search-input-row input{min-width:0;}
 body.glory-app:not(.gathering-ops-theme) .search-input-row>.button{flex:none;}
 body.glory-app:not(.gathering-ops-theme) :is(.pager,.care-pagination){flex-wrap:wrap;gap:var(--ui-space-2);}
 body.glory-app:not(.gathering-ops-theme) .pager>a{display:inline-flex;align-items:center;justify-content:center;min-width:var(--ui-control-height);min-height:var(--ui-control-height);padding:8px 12px;border-width:1px;border-style:solid;border-radius:var(--ui-radius-control);text-decoration:none;box-sizing:border-box;}
 body.glory-app:not(.gathering-ops-theme) .pager>span{font-size:13px;line-height:1.5;}
 /* Shared pages omit account navigation and retain uncropped media. */
 body.glory-app.glory-shared{padding:0;}
 body.glory-app.glory-shared #app-content.shared-album{width:100%;max-width:1120px;margin:0 auto;padding:32px 24px 48px;box-sizing:border-box;}
 .glory-shared .album-shared-heading{padding-bottom:24px;margin-bottom:24px;border-bottom-width:1px;border-bottom-style:solid;}
 .glory-shared .album-shared-heading h1{font-size:clamp(24px,4vw,32px);line-height:1.4;margin:8px 0 16px;}
 .glory-shared .album-shared-heading p{font-size:14px;line-height:1.7;margin:6px 0;}
 .glory-shared .album-shared-heading .eyebrow{font-size:11px;letter-spacing:.1em;}
 .glory-shared .shared-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
 .glory-shared .shared-media-grid figure{margin:0;min-width:0;border-width:1px;border-style:solid;border-radius:var(--ui-radius-card);overflow:hidden;}
 .glory-shared .shared-media-grid :is(img,video){display:block;width:100%;height:auto;max-height:75vh;object-fit:contain;border-radius:0;}
 .glory-shared .shared-media-grid figure>p{padding:24px;}
 .glory-shared .shared-single .shared-media-grid{grid-template-columns:minmax(0,1fr);}
 .glory-shared .shared-pagination{justify-content:center;border-top-width:1px;border-top-style:solid;padding-top:24px;margin:24px 0;}
 .glory-shared .shared-pagination .button{font-size:14px;}
 .glory-shared .shared-footer{margin-top:24px;padding-top:16px;border-top-width:1px;border-top-style:solid;font-size:12px;line-height:1.6;}
 @media(max-width:600px){
  body.glory-app:not(.gathering-ops-theme) .member-profile{padding:20px 16px;}
  body.glory-app:not(.gathering-ops-theme) .birthday-page .worship-month-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;}
  body.glory-app:not(.gathering-ops-theme) .birthday-page .worship-month-nav h2{grid-column:1/-1;grid-row:1;text-align:center;font-size:20px;}
  body.glory-app:not(.gathering-ops-theme) .birthday-page .worship-month-nav>a{width:100%;min-width:0;}
  body.glory-app:not(.gathering-ops-theme) .form-intro{align-items:flex-start;}
  body.glory-app:not(.gathering-ops-theme) .monitor-actions{width:100%;}
  body.glory-app:not(.gathering-ops-theme) .monitor-actions>div{width:100%;display:grid;grid-template-columns:minmax(0,1fr);}
  body.glory-app.glory-shared #app-content.shared-album{padding:24px 16px 32px;}
  .glory-shared .shared-media-grid{grid-template-columns:minmax(0,1fr);gap:12px;}
 }
}

/* Shared album was a light church page before G180. Keep its newer layout,
   but supply the original redesign.css colors to photo-workspace primitives. */
@media screen {
 body.glory-app.shared-page {
  --album-bg:var(--background);--album-paper:var(--surface);
  --album-ink:var(--text-primary);--album-sub:var(--text-secondary);
  --album-line:var(--border);--album-soft:var(--surface-secondary);
  --album-blue:var(--primary);color-scheme:light;
 }
}
