/* The Add sheet (views/add.js): the pieces of this redesigned screen only (docs/mockups/redesign/); shared ones are
   css/widgets.css. Colours come from the tokens in style.css only. */
.add-sheet{display:flex;flex-direction:column;gap:18px}
/* A bottom sheet keeps its full height while the field is typed in: its list shrinks to the few rows found, and a
   sheet sized to them would drop the field under the finger to the foot of the screen. Its max-height still caps it
   (the keyboard's visible height, style.css sk-kb); the dialog and the side panel are sized by their own rules. */
@media (max-width:899px) and (min-height:500px){.sheet:has(.add-sheet[data-level=top]){height:92vh}}
/* No browser clear cross (drawn in the system's blue, outside the tokens), as the other search fields (meals.css, more.css). */
.add-sheet .search input::-webkit-search-cancel-button{display:none}
.add-top{display:flex;flex-direction:column;gap:10px}
.add-rows{display:flex;flex-direction:column}
/* The one-tap water amounts read as a quieter follow-on of the Water chip. */
.add-water{background:var(--a-soft);border-color:transparent}
.add-water-row{padding-block-end:8px;padding-inline-start:50px}
/* Water's row with its amounts at its end, in one line (a button cannot hold buttons, so the two sit side by side). */
.add-pair{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line)}
.add-pair:first-child{border-top:0}
.add-pair > .item{flex:1;min-width:0;border-top:0;grid-template-columns:auto minmax(0,1fr)}
.add-pair > .item > .chev{display:none}
.add-water-q{flex:none;gap:6px}
/* A file picker drawn as a row (the blood test report): its input is hidden, the label takes the tap. */
.add-file{position:relative}
/* The four doors, two by two: Meal (with its microphone beside it), Measure, Workout, Sleep; 48 px targets at least. */
.add-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.add-door{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--rm);background:var(--surface);color:var(--ink);font:700 1rem/1.2 var(--sans);text-align:start;cursor:pointer;min-width:0}
.add-door.add-meal{padding:0;gap:0}
.add-door.add-meal > .add-door{flex:1;border:0;background:none;min-width:0}
.add-mic{flex:none;min-width:48px;min-height:48px;margin-inline-end:6px}
.add-back{align-self:flex-start;min-height:48px}
/* The row of a quick measure read from the field ("Save weight · 82 kg"): first, in the accent's soft tint, so the
   one tap that saves reads apart from the search's rows under it. */
.add-parsed > .item{background:var(--a-soft);border-radius:var(--rm);border-top:0;padding-inline:12px}
.add-parsed .rowic{color:var(--accent)}
/* Its end is a check in the accent, the drawing of a save, where a door's row has its quiet chevron. */
.add-parsed .add-ok{color:var(--accent)}
/* "Last added": the day's last entry with Undo and Edit, one quiet line over the field; the buttons keep 48 px targets. */
.add-last{display:flex;align-items:center;gap:8px;padding-block:6px;padding-inline:12px 6px;border:1px solid var(--line);border-radius:var(--rm);background:var(--surface)}
.add-last > .tt{flex:1;min-width:0;display:flex;flex-direction:column}
.add-last > .tt > *{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.add-last > .tt > small{color:var(--mut)}
.add-last > .btn{flex:none;min-height:48px;padding-inline:14px}
