/* Only the approved Plus popup. Original forms/sheets remain untouched. */
#sheet[data-sheet-kind="global-event-menu"]{box-sizing:border-box;width:calc(100% - 40px);max-width:390px;left:0;right:0;bottom:calc(112px + env(safe-area-inset-bottom));padding:20px;border:0;border-radius:20px;background:var(--lunora-surface,#fff);box-shadow:0 1px 2px rgba(26,20,41,.04),0 6px 10px rgba(26,20,41,.09);max-height:calc(100dvh - 152px - env(safe-area-inset-bottom));overflow-y:auto;}
#sheet[data-sheet-kind="global-event-menu"] .sheet-handle{display:none;}
#sheet[data-sheet-kind="global-event-menu"] .sheet-head{height:44px;margin:0 0 24px;gap:12px;}
#sheet[data-sheet-kind="global-event-menu"] .sheet-title{font:500 20px/26px Inter,sans-serif;letter-spacing:0;color:var(--lunora-text,#292337);}
#sheet[data-sheet-kind="global-event-menu"] .sheet-close{position:relative;isolation:isolate;flex:0 0 44px;width:44px;height:44px;border:0;border-radius:10px;background:transparent;}
#sheet[data-sheet-kind="global-event-menu"] .sheet-close::after{content:"";position:absolute;inset:12px;z-index:0;background:url('../assets/global-event-menu/light-close.svg') center no-repeat;}
#sheet[data-sheet-kind="global-event-menu"] .sheet-close::before{content:"";position:absolute;inset:4px;z-index:-1;border-radius:10px;background:var(--field,#f7f7fa);}
#sheet[data-sheet-kind="global-event-menu"] .sheet-close svg{display:none;}
#sheet[data-sheet-kind="global-event-menu"] .sheet-body{padding:0;font:400 14px/20px Inter,sans-serif;}
.global-event-list{display:flex;flex-direction:column;width:100%;}
.global-event-row{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:0 12px 0 0;border:0;background:none;color:var(--lunora-text,#292337);text-align:left;font:500 16px/22px Inter,sans-serif;cursor:pointer;}
.global-event-backplate{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:10px;}
.global-event-icon{display:block;position:relative;width:24px;height:24px;}
.global-event-icon img{position:absolute;max-width:none;}
.gem-feeding img{left:5.22545px;top:.25px;}.gem-diaper img{left:2.25px;top:4.25px;}.gem-pee img{left:3.25px;top:2.25px;}.gem-poop img{left:1.6116px;top:1.25px;}.gem-food img,.gem-measurements img{left:2.25px;top:2.25px;}
.gem-feeding{background:#ebe6f7}.gem-diaper{background:#f7e6ee}.gem-pee{background:#e3f0f8}.gem-poop{background:#f0ddd0}.gem-food{background:#f5ede1}.gem-measurements{background:#ddf1ea}
.global-event-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;}
.global-event-copy small{font:400 13px/18px Inter,sans-serif;color:var(--lunora-muted,#6d6577);}
.global-event-plus{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;}
.global-event-plus img{max-width:none;}
.global-event-list .gem-dark{display:none;}
.global-event-row:focus-visible{outline:2px solid var(--primary,#7564cc);outline-offset:0;border-radius:8px;}
body:has(#sheet[data-sheet-kind="global-event-menu"].show) #sheetBackdrop{background:rgba(41,36,69,.32);}
:root[data-theme="dark"] #sheet[data-sheet-kind="global-event-menu"]{background:var(--lunora-surface,#292532);box-shadow:0 1px 2px rgba(26,20,41,.14),0 6px 10px rgba(26,20,41,.26);}
:root[data-theme="dark"] #sheet[data-sheet-kind="global-event-menu"] .sheet-title,:root[data-theme="dark"] .global-event-row{color:var(--lunora-text,#f0ecf6);}
:root[data-theme="dark"] #sheet[data-sheet-kind="global-event-menu"] .sheet-close::after{background-image:url('../assets/global-event-menu/dark-close.svg');}
:root[data-theme="dark"] #sheet[data-sheet-kind="global-event-menu"] .sheet-close::before{background:var(--field,#2d293c);}
:root[data-theme="dark"] .global-event-list .gem-light{display:none;}:root[data-theme="dark"] .global-event-list .gem-dark{display:block;}
:root[data-theme="dark"] .global-event-copy small{color:var(--lunora-muted,#b8b1c6);}
:root[data-theme="dark"] .gem-feeding{background:#3c3456}:root[data-theme="dark"] .gem-diaper{background:#362f39}:root[data-theme="dark"] .gem-pee{background:#34303a}:root[data-theme="dark"] .gem-poop{background:#513345}:root[data-theme="dark"] .gem-food{background:#363037}:root[data-theme="dark"] .gem-measurements{background:#333038}
:root[data-theme="dark"] body:has(#sheet[data-sheet-kind="global-event-menu"].show) #sheetBackdrop{background:rgba(8,6,15,.56);}

.global-event-chevron{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;}
.global-event-chevron img{max-width:none;}
.global-event-back{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:var(--lunora-field);}
.global-event-back .global-event-chevron{transform:rotate(180deg);}
#sheet[data-sheet-kind="global-event-menu"] .sheet-title{flex:1;min-width:0;}
#sheet[data-sheet-kind="global-event-menu"] .growth-single-form{display:flex;flex-direction:column;gap:20px;}
#sheet[data-sheet-kind="global-event-menu"] .growth-edit-field{display:flex;flex-direction:column;gap:8px;font:400 14px/20px Inter,sans-serif;color:var(--lunora-muted);}
#sheet[data-sheet-kind="global-event-menu"] .field-input{border:0;border-radius:12px;background:var(--lunora-field);min-height:48px;font:400 16px/22px Inter,sans-serif;color:var(--lunora-text);}
#sheet[data-sheet-kind="global-event-menu"] #confirmMeasurement{min-height:48px;border-radius:12px;font:500 14px/20px Inter,sans-serif;}
.gem-metric-icon{display:grid;place-items:center;}.gem-metric-icon img{position:static;max-width:none;}
.gem-metric-weight{background:#ebe6f7}.gem-metric-height{background:#ddf1ea}.gem-metric-head{background:#ddf1e9}.gem-metric-chest{background:#f7efdd}
:root[data-theme="dark"] :is(.gem-metric-weight,.gem-metric-height,.gem-metric-head,.gem-metric-chest){background:#3b3449;}
#globalEventBack .gem-dark,#sheet[data-sheet-kind="global-event-menu"] .global-event-chevron .gem-dark{display:none;}
:root[data-theme="dark"] #globalEventBack .gem-light,:root[data-theme="dark"] #sheet[data-sheet-kind="global-event-menu"] .global-event-chevron .gem-light{display:none;}
:root[data-theme="dark"] #globalEventBack .gem-dark,:root[data-theme="dark"] #sheet[data-sheet-kind="global-event-menu"] .global-event-chevron .gem-dark{display:block;}

/* Journal metric assets already contain their complete40px backplate. */
.global-event-icon.gem-metric-icon{width:40px;height:40px;}
.gem-metric-icon img{width:40px;height:40px;}
.gem-metric-chest .gem-metric-icon img{width:16.5001px;height:16.5px;}
:root :is(.gem-metric-weight,.gem-metric-height,.gem-metric-head){background:transparent!important;}
