/* Daily drinks target pop-up, matching "Log a drink" */
.wg-dialog{padding:0;border:0;background:transparent;max-width:none;max-height:none;width:100%;height:100%;display:grid;place-items:center}
.wg-dialog::backdrop{background:rgba(4,8,14,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.wg-card{box-sizing:border-box;width:min(420px,calc(100vw - 24px));padding:22px;border-radius:24px;color:#eaf6ff;background:radial-gradient(120% 80% at 0% 0%,rgba(125,211,252,.18),transparent 60%),linear-gradient(160deg,rgba(30,52,66,.92),rgba(14,24,32,.95));border:1px solid rgba(125,211,252,.28);box-shadow:0 30px 70px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.06);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);animation:wgIn .2s ease-out}
@keyframes wgIn{from{opacity:0;transform:translateY(10px) scale(.98)}}
.wg-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.wg-head h2{margin:0;display:flex;align-items:center;gap:10px;font-size:22px;font-weight:900;color:#fff}
.wg-drop{font-size:20px}
.wg-x{display:grid!important;place-items:center;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;color:rgba(255,255,255,.72)!important;cursor:pointer}
.wg-x:hover{color:#fff!important}.wg-x svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.wg-sub{margin:8px 0 16px;font-size:13.5px;font-weight:700;color:#a9d6ef}
.wg-row{display:flex;align-items:flex-end;gap:12px}
.wg-input{flex:1;min-width:0;box-sizing:border-box;height:84px;border-radius:18px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(5,14,20,.7)!important;color:#fff!important;font-size:38px!important;font-weight:850!important;text-align:center;outline:none;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
.wg-input:focus{border-color:rgba(125,211,252,.7)!important;box-shadow:0 0 0 3px rgba(125,211,252,.18)!important}
.wg-input::placeholder{color:rgba(255,255,255,.3)}
.wg-unit{padding-bottom:12px;font-size:14px;font-weight:800;color:#a9d6ef}
.wg-picks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
.wg-pick{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:66px;padding:10px 4px!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.04)!important;color:#fff!important;box-shadow:none!important;cursor:pointer;transition:background .15s,border-color .15s,transform .12s}
.wg-pick strong{font-size:15px;font-weight:850}.wg-pick small{font-size:11.5px;font-weight:700;color:#a9d6ef}
.wg-pick:hover{transform:translateY(-1px);border-color:rgba(125,211,252,.5)!important}
.wg-pick.on{background:linear-gradient(135deg,rgba(56,189,248,.35),rgba(125,211,252,.2))!important;border-color:rgba(125,211,252,.85)!important}
.wg-msg{min-height:18px;margin:10px 0 0;font-size:12.5px;font-weight:700;color:#fca5a5}
.wg-acts{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:6px}
.wg-ghost,.wg-save{min-height:50px;border-radius:16px!important;font-size:15px!important;font-weight:850!important;box-shadow:none!important;cursor:pointer}
.wg-ghost{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#dbeefa!important}
.wg-save{background:linear-gradient(115deg,#5ab3e6,#a9dcff)!important;border:1px solid #a9dcff!important;color:#0b2233!important}
.wg-save:hover,.wg-ghost:hover{filter:brightness(1.07)}
@media(max-width:420px){.wg-picks{grid-template-columns:repeat(2,minmax(0,1fr))}.wg-input{height:76px}}
html[data-theme="light"] .wg-card{color:#0b2233;background:radial-gradient(120% 80% at 0% 0%,rgba(125,211,252,.25),transparent 60%),#fff;border-color:rgba(14,116,144,.2)}
html[data-theme="light"] .wg-head h2,html[data-theme="light"] .wg-pick{color:#0b2233!important}
html[data-theme="light"] .wg-input{background:#f1f8fc!important;color:#0b2233!important;border-color:rgba(14,116,144,.2)!important}
html[data-theme="light"] :is(.wg-sub,.wg-unit,.wg-pick small){color:#2c6a8a}
html[data-theme="light"] .wg-x{color:rgba(30,36,50,.6)!important}
html[data-theme="light"] .wg-ghost{color:#0b2233!important;background:#f1f5f9!important}
.wg-ghost{white-space:nowrap;padding:0 10px!important}
@media(max-width:420px){.wg-ghost,.wg-save{font-size:14px!important}}

/* Macros "Your day" bar: arrows centred in their buttons */
#macrosPage .nv-daybar .nv-icon{display:grid!important;place-items:center!important;padding:0!important;line-height:0!important;font-size:0!important}
#macrosPage .nv-daybar .nv-icon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* Same pop-up for every nutrient target, tinted in that nutrient's colour */
.wg-card.wg-tint{background:radial-gradient(120% 80% at 0% 0%,color-mix(in srgb,var(--wg) 22%,transparent),transparent 60%),linear-gradient(160deg,rgba(32,34,52,.93),rgba(14,15,26,.96));border-color:color-mix(in srgb,var(--wg) 34%,transparent)}
.wg-tint :is(.wg-sub,.wg-unit,.wg-pick small){color:color-mix(in srgb,var(--wg) 70%,#c9cde2)}
.wg-tint .wg-input:focus{border-color:color-mix(in srgb,var(--wg) 75%,transparent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--wg) 20%,transparent)!important}
.wg-tint .wg-pick:hover{border-color:color-mix(in srgb,var(--wg) 55%,transparent)!important}
.wg-tint .wg-pick.on{background:linear-gradient(135deg,color-mix(in srgb,var(--wg) 34%,transparent),color-mix(in srgb,var(--wg) 14%,transparent))!important;border-color:color-mix(in srgb,var(--wg) 85%,transparent)!important}
.wg-tint .wg-save{background:linear-gradient(115deg,color-mix(in srgb,var(--wg) 75%,#0b0d18),var(--wg))!important;border-color:var(--wg)!important;color:#11131f!important}
html[data-theme="light"] .wg-card.wg-tint{background:radial-gradient(120% 80% at 0% 0%,color-mix(in srgb,var(--wg) 26%,transparent),transparent 60%),#fff}
