/* pick.css: the picker and the tray cards (the signature element). */
.picker { margin-bottom: 16px; }

.targets-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--sky-deep); }

.target-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.target-row.muted { pointer-events: none; }
.target-row.muted input { background: var(--paper); color: var(--sky-deep); border-style: dashed; }
.target-hint { margin: -6px 0 12px; }
.target-summary { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 12px; font-size: 15px; }
.target-summary .mono { font-size: 15px; }
.tray-foot .btn.logged { background: #E3F2EA; color: var(--good); border-color: #C7E4D3; }
.target-row .t { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.target-row input {
    width: 100%; min-height: var(--tap); padding: 6px 4px; text-align: center;
    font-family: var(--font-mono); font-size: 18px; color: var(--ink);
    border: 1.5px solid var(--line); border-bottom: 3px solid var(--c); border-radius: 10px; background: #fff;
}
.target-row input:focus { border-color: var(--c); outline: none; }

/* Tray cards: a cafeteria ticket. Perforated top edge, items, a receipt strip of totals. */
.trays { display: flex; flex-direction: column; gap: 16px; }
.tray {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px 6px var(--radius) var(--radius);
    padding: 16px 16px 14px;
    box-shadow: 0 6px 18px rgba(20, 33, 61, .06);
}
.tray::before {
    content: ''; position: absolute; left: 10px; right: 10px; top: -1px; height: 0;
    border-top: 3px dashed var(--paper);
}
.tray-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tray-rank { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.tray-fit { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.tray.fit-great-fit .tray-fit { background: #E3F2EA; color: var(--good); }
.tray.fit-good-fit .tray-fit { background: #FFF4D6; color: var(--near); }
.tray.fit-compromise .tray-fit { background: #FBE6E1; color: var(--fat); }

.tray-items { list-style: none; margin: 0; padding: 0; }
.tray-item { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 9px 0; border-top: 1px solid var(--line); }
.tray-item:first-child { border-top: 0; padding-top: 0; }
.tray-item-name { font-weight: 600; font-size: 17px; }
.tray-item-name .x { font-family: var(--font-mono); font-weight: 500; color: #fff; background: var(--ink); border-radius: 6px; padding: 0 6px; margin-left: 6px; font-size: 14px; }
.tray-item-portion { font-family: var(--font-mono); font-size: 13px; color: var(--sky-deep); }
.tray-item-macros { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.tray-item.low-conf .tray-item-name { text-decoration: underline dashed var(--ink-3); text-underline-offset: 4px; }

.tray-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--ink); }
.tot { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tot-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.tot-value { font-family: var(--font-mono); font-weight: 500; font-size: 16px; }
.tot-delta { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.d-good { color: var(--good); background: #E3F2EA; }
.d-near { color: var(--near); background: #FFF4D6; }
.d-far { color: var(--over); background: #FBE6E1; }

.tray-foot { margin-top: 12px; }
.tray-foot .btn { width: 100%; }

.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--ink-2); margin: 0; }

.honesty { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--sky); color: var(--ink-2); font-size: 14px; }
.honesty-head { font-weight: 600; color: var(--ink); }
.explainer { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; }
.explainer p { margin: 0; }
.honesty p { margin-bottom: 6px; }
