/* Drinks diary: green glass widget and compact mobile-first add flow. */
.drinks-widget,
.add-drink-page .drink-form-card,
.add-drink-page .drink-calorie-note {
  border: 1px solid rgba(183, 255, 0, .38);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18, 37, 40, .95), rgba(8, 18, 25, .92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28), 0 0 20px rgba(183, 255, 0, .05);
}

.drinks-widget { padding: 15px; overflow: hidden; }
.drinks-widget-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.drinks-widget-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drinks-widget-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid rgba(183,255,0,.35); border-radius: 14px; color: #b7ff00; background: rgba(183,255,0,.12); box-shadow: 0 0 16px rgba(183,255,0,.12); }
.drinks-widget h2 { margin: 0; color: #fff; font-size: 18px; font-weight: 900; line-height: 1.15; }
.drinks-widget p { margin: 4px 0 0; color: #9ba8ad; font-size: 12px; line-height: 1.35; }
.drinks-widget-count { flex: 0 0 auto; color: #c9d2d4; font-size: 11px; white-space: nowrap; }
.drinks-summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 15px 0 12px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.045); }
.drinks-summary > div:not(.drinks-summary-note) { display: flex; align-items: baseline; gap: 4px; }
.drinks-summary strong { color: #b7ff00; font-size: 20px; font-weight: 900; }
.drinks-summary span { color: #9ba8ad; font-size: 11px; }
.drinks-summary-note { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; color: #b7ff00; font-size: 11px; text-align: right; }
.drinks-records { display: grid; gap: 7px; margin-bottom: 12px; }
.drink-record { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 7px 9px; border: 1px solid rgba(183,255,0,.15); border-radius: 14px; background: rgba(4, 12, 17, .36); }
.drink-record-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; font-size: 18px; }
.drink-record-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.drink-record-copy strong { overflow: hidden; color: #f4f7f8; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.drink-record-copy small { color: #8d9a9e; font-size: 10px; }
.drink-record-cal { color: #b7ff00; font-size: 13px; font-weight: 850; white-space: nowrap; }
.drink-record-cal small { color: #9ba8ad; font-size: 10px; font-weight: 600; }
.drink-delete-button { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 9px; color: #829094; background: transparent; cursor: pointer; }
.drink-delete-button:hover, .drink-delete-button:focus-visible { color: #ff8b8b; background: rgba(255, 100, 100, .1); outline: none; }
.drinks-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-bottom: 12px; color: #aab4b7; font-size: 12px; }
.drinks-empty i { color: #b7ff00; }
.drinks-add-button,
.drinks-save-button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border: 1px solid rgba(183,255,0,.64); border-radius: 15px; color: #071200; background: linear-gradient(145deg, #b7ff00, #84e900); box-shadow: 0 9px 22px rgba(183,255,0,.15), inset 0 1px 0 rgba(255,255,255,.4); font-weight: 900; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.drinks-add-button { width: 100%; }
.drinks-add-button:hover, .drinks-save-button:hover { filter: brightness(1.06); }
.drinks-add-button:active, .drinks-save-button:active { transform: scale(.985); }

.add-drink-page { max-width: 720px; margin: 0 auto; }
.add-drink-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.add-drink-header h2 { margin: 3px 0 0; color: #fff; font-size: 23px; font-weight: 900; line-height: 1.1; }
.add-drink-kicker { color: #b7ff00; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.add-drink-intro { margin: 0 0 16px; color: #aab4b7; font-size: 13px; line-height: 1.5; }
.drink-form-card { padding: 15px; }
.drink-field-label, .drink-form-fields label { display: block; color: #e9eff0; font-size: 12px; font-weight: 750; }
.drink-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 9px 0 17px; }
.drink-type-option { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 7px 9px; border: 1px solid rgba(210,241,255,.16); border-radius: 14px; color: #cad4d6; background: rgba(255,255,255,.055); font-size: 12px; font-weight: 750; text-align: left; cursor: pointer; }
.drink-type-option.is-selected { border-color: rgba(183,255,0,.72); color: #fff; background: rgba(183,255,0,.13); box-shadow: 0 0 14px rgba(183,255,0,.08); }
.drink-type-option-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; color: #b7ff00; background: rgba(183,255,0,.12); }
.drink-form-fields { display: grid; gap: 13px; }
.drink-form-fields .ng-input { display: block; width: 100%; margin-top: 6px; }
.drink-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drink-field-hint { display: block; margin-top: 5px; color: #88979b; font-size: 10px; font-weight: 500; }
.drink-calorie-note { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0; padding: 12px 13px; color: #c7d1d3; font-size: 11px; line-height: 1.45; }
.drink-calorie-note i { flex: 0 0 auto; padding-top: 1px; color: #b7ff00; }
.drinks-save-button { width: 100%; }

@media (max-width: 370px) {
  .drinks-summary { grid-template-columns: 1fr 1fr; }
  .drinks-summary-note { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
  .drink-type-option { font-size: 11px; }
}
@media (min-width: 620px) {
  .drink-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .drinks-add-button, .drinks-save-button { transition: none; } }
