/* F&R Pastry — screen styles on top of shell.css. */

/* --- Home cards ------------------------------------------------------------------------ */
.cards { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.card {
  display: block; width: 100%; text-align: left; padding: 14px 16px; min-height: 64px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); font-size: 16px; cursor: pointer; touch-action: manipulation;
}
div.card { cursor: default; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.card-line { color: var(--muted); font-size: 15px; }
.card-amber { background: var(--amber-bg); border-color: var(--amber-line); }
.card-amber .card-line { color: var(--amber-ink); font-weight: 600; }
.card-red { background: var(--red-bg); border-color: var(--red-line); }
.card-red .card-title, .card-red .card-line { color: var(--red-ink); }
.card-green { background: var(--green-bg); border-color: var(--green-line); }
.card-green .card-line { color: var(--green-ink); font-weight: 600; }
.card-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  padding: 10px 14px; min-height: 44px; border-radius: 999px; border: 1px solid currentColor;
  background: #fff; color: var(--red-ink); font-weight: 600; font-size: 15px; cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.soldchip { font-size: 14px; padding: 3px 9px; border-radius: 999px; background: var(--cream);
  color: var(--ink); border: 1px solid var(--line); }
.whoami-note { text-align: center; color: var(--amber-ink); font-size: 14px; padding: 0 10px 8px; }
.whoami-note .chip { margin-top: 8px; }
.whoami { display: flex; justify-content: center; align-items: center; gap: 6px;
  color: var(--muted); font-size: 15px; padding: 18px 0 6px; }

/* --- Sold out ------------------------------------------------------------------------ */
.so-row { display: block; }
.so-top { display: flex; align-items: center; gap: 10px; }
.soldout-btn {
  flex: 0 0 auto; min-width: 118px; min-height: 54px; padding: 0 14px;
  font-size: 18px; font-weight: 800; color: #fff; background: var(--accent);
  border: none; border-radius: 12px; cursor: pointer; touch-action: manipulation;
}
.soldout-btn:active { background: #5a3e2b; }
.so-row.gone { background: #f6f3ef; }
.so-row.gone .iname { color: var(--muted); text-decoration: line-through; text-decoration-color: #c9bfb4; }
.time-select { font-size: 15px; padding: 6px 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); }
.undo-btn { flex: 0 0 auto; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 700;
  background: #fff; color: var(--accent); border: 1px solid var(--accent); border-radius: 10px; cursor: pointer; }
.added-ctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.added-toggle { min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 700;
  background: #fff; color: var(--accent); border: 1px dashed var(--accent); border-radius: 8px; cursor: pointer; }
.added-go { min-height: 50px; padding: 0 16px; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--accent); border: none; border-radius: 10px; cursor: pointer; }

/* --- Close out ------------------------------------------------------------------------ */
.co-row { flex-wrap: wrap; }
.co-row .name { min-width: 110px; }
.co-ctl { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.zero-btn {
  width: 56px; min-height: 50px; font-size: 22px; font-weight: 800;
  background: #fff; color: var(--accent); border: 2px solid var(--accent); border-radius: 10px;
  cursor: pointer; touch-action: manipulation;
}
.zero-btn:active { background: var(--cream); }
.co-row.unconfirmed { background: var(--amber-bg); }
.co-row.over { background: var(--red-bg); }
.row-warn { font-size: 13px; font-weight: 600; color: var(--amber-ink); }
.co-row.over .row-warn { color: var(--red-ink); }
.co-row .sub .sold { color: var(--accent); }
.co-row .sub .use { color: var(--accent); font-weight: 600; }

/* --- "Not on the list? Add it" --------------------------------------------------------- */
.addit { margin-top: 14px; }
.addit-toggle {
  width: 100%; min-height: 48px; font-size: 16px; font-weight: 600;
  background: #fff; color: var(--accent); border: 1px dashed var(--accent);
  border-radius: 10px; cursor: pointer; touch-action: manipulation;
}
.addit-body { margin-top: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.addit-results { margin: 8px 0; }
.addit-hit {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 10px; min-height: 48px; background: #fff; color: var(--ink); text-align: left;
  border: none; border-bottom: 1px solid var(--line); cursor: pointer;
}
.addit-create { width: 100%; min-height: 44px; margin-top: 6px; font-size: 15px; font-weight: 600;
  background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.addit-pick, .addit-new { display: flex; flex-direction: column; gap: 10px; }
.addit-new label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: -4px; }
.dupes { border: 1px solid var(--amber-line); background: var(--amber-bg); border-radius: 10px; padding: 8px; }
.seg { display: flex; gap: 8px; }
.seg-btn {
  flex: 1 1 0; min-width: 0; min-height: 48px; padding: 6px 8px; font-size: 15px; font-weight: 600;
  background: #fff; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.seg-btn.sel { background: var(--cream); color: var(--ink); border-color: var(--accent); font-weight: 700; }

/* --- Tomorrow's plan ------------------------------------------------------------------------ */
.plan-note { padding: 12px 14px 0; font-size: 16px; }
.plan-note.muted { color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.plan-lines .grp:first-child .grp-h { border-radius: 0; border-top: 1px solid var(--line); }
.plan-par { font-size: 20px; font-weight: 700; min-width: 40px; text-align: right; }
