/* TechStone Field — modules/sync.css — P1 Sync: the outbox chip and sheet, and the Log outcome sheet.
 * Brand Light tokens from app.css only; every rule here keeps the app.css rulings (no sideways scroll, targets
 * of 44 px or more, inputs 16 px, nowrap only on pills and times — checked by test/field-app-css.test.js).
 * A separate file so P1 adds no lines to app.css.
 */

/* ------------------------------------------------------------------ OutboxChip (header) */
#hdr-outbox { display: inline-flex; }
.obx {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 76px;
  padding: 3px 8px;
  border: 0;
  border-radius: 8px;
  font: 600 12px/1.1 var(--f-body);
  cursor: pointer;
}
.obx-amb { background: var(--warn-bg); color: var(--warn); }
.obx-bad { background: var(--bad-bg); color: var(--bad); }
.obx-n { font-size: 15px; font-variant-numeric: tabular-nums; }
.obx-g { margin-right: 2px; font-weight: 700; }
.obx-w { font-weight: 500; }

/* ------------------------------------------------------------------ OutboxSheet */
.ob-list { display: flex; flex-direction: column; gap: 10px; }
.ob-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}
.ob-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-age { margin-left: auto; font: 500 13px/1.3 var(--f-body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ob-t { font: 600 15px/1.35 var(--f-body); }
.ob-e { font: 400 14px/1.4 var(--f-body); color: var(--bad); }
.ob-e-soft { color: var(--ink-soft); }
.ob-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-acts .btn { flex: 1 1 140px; }

/* ------------------------------------------------------------------ Log outcome sheet */
.oc-what { font-size: 15px; }
.oc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oc-opt {
  min-height: 48px;
  padding: 8px 10px;
  border: 1.5px solid var(--btn-rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink, var(--basalt));
  font: 600 15px/1.2 var(--f-body);
  cursor: pointer;
}
.oc-opt.on { border-color: var(--copper-solid, var(--basalt)); background: var(--copper-solid, var(--basalt)); color: var(--offwhite); }
.oc-body { display: flex; flex-direction: column; gap: 12px; }
.oc-body:empty { display: none; }
.oc-sec { display: flex; flex-direction: column; gap: 6px; }
.oc-l { font: 600 14px/1.3 var(--f-body); }
.oc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.oc-chip {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--btn-rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink, var(--basalt));
  font: 500 15px/1.2 var(--f-body);
  cursor: pointer;
}
.oc-chip.on { border-color: var(--copper-deep); background: var(--p-cop-bg); color: var(--copper-deep); font-weight: 600; }
.oc-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.oc-body textarea { resize: vertical; font-size: 16px; }
.oc-body input:disabled { background: var(--ground, var(--offwhite)); color: var(--ink-soft); }
.oc-ck { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 500 15px/1.3 var(--f-body); cursor: pointer; }
.oc-ck input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--copper-solid, var(--basalt)); }
.oc-hint { font: 400 13px/1.4 var(--f-body); color: var(--ink-soft); }

/* What the outbox holds for one schedule item (item face). */
.oc-pending { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); }
.oc-p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oc-p-t { font: 500 14px/1.35 var(--f-body); flex: 1 1 auto; }

/* Narrow phones: the chip keeps its count and drops the word (the label carries it for screen readers). */
@media (max-width: 359px) {
  .obx-w { display: none; }
  .oc-row { grid-template-columns: minmax(0, 1fr); }
}
