/* --- open cook: logging a meal that isn't a recipe --------------------------
   The item rows reuse .ckline / .ckpick from cooking.css on purpose — a product
   should look and behave the same whether it went in through a recipe or
   through here. Only what's around them is new. */

.oc-add {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--surface-2, var(--surface)); border: 1px solid var(--border);
  border-radius: 13px; padding: 12px 14px; margin-bottom: 16px;
}
.oc-search { position: relative; flex: 1 1 220px; min-width: 170px; }
.oc-search input {
  width: 100%; font: inherit; font-size: 13px; padding: 9px 11px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
}
.oc-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.oc-sum { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.oc-sum b { color: var(--text); font-size: 15px; }
.oc-sum .dim { opacity: .8; }

/* a live open cook shows in the sidebar the way a cook in progress does */
#sbNav .sb-tab.live { color: var(--accent); font-weight: 750; }

/* --- naming it at the end --- */
.oc-check { margin: 14px 0 6px; }
.oc-recipe {
  border: 1px solid var(--border); border-radius: 13px; padding: 14px 15px;
  background: var(--surface-2, var(--surface)); margin-bottom: 6px;
}
.oc-recipe textarea {
  width: 100%; font: inherit; font-size: 13.5px; line-height: 1.5; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text);
}
.oc-recipe textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.oc-photo { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.oc-photo img {
  width: 140px; height: 106px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-3, var(--surface));
}
.oc-pbtns { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 180px; }
.oc-cost {
  font-size: 14px; padding: 9px 11px; color: var(--text-muted);
  border: 1px dashed var(--border); border-radius: 10px;
}
.oc-cost b { font-size: 17px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

.oc-lines { margin: 14px 0 4px; border-top: 1px solid var(--border); }
.oc-line {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.oc-line > span:first-child { flex: 1; color: var(--text); }
.oc-line-q { font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.oc-line-c { min-width: 66px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
