/* TCT-only rules; uses the variables of miam-ui.css (docs/UI_DESIGN.md). */
.rule { border-left: 3px solid var(--accent); padding: .5rem .8rem; }
.daynav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: .2rem 0 .6rem; }
.daynav .d { text-align: center; line-height: 1.25; }
.daynav .d b { font-size: 1.05rem; }
.daynav .d small { display: block; color: var(--muted); }
.daynav button { min-width: 2.8rem; min-height: 2.8rem; font-size: 1.1rem; }
.line { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.line:last-of-type { border-bottom: 0; }
.line .what { flex: 1; min-width: 0; }
.line .what b { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.line .what small { display: block; color: var(--muted); }
.line input.h { width: 4.6rem; padding: .7rem .4rem; font-size: 1.25rem; text-align: center; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: .3rem; }
.bar > i { display: block; height: 100%; background: var(--ok); }
.bar > i.warn { background: var(--warn); } .bar > i.over { background: var(--bad); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0 .2rem; font-weight: 700; font-size: 1.05rem; }
button.big { width: 100%; padding: .85rem; font-size: 1.05rem; margin-top: .5rem; }
.nnl label { font-size: .9rem; color: var(--fg); font-weight: 600; }
.nnl label small { font-weight: 400; color: var(--muted); }
.nnl textarea { font-family: inherit; font-size: .95rem; min-height: 4.2rem; }
.nnl textarea.one { min-height: 2.6rem; }
td.name b { font-family: ui-monospace, monospace; }
td .bar { min-width: 7rem; }
.line input.h:disabled { opacity: .6; }
.line .lock { color: var(--muted); font-size: .75rem; }
.dot-warn { color: var(--warn); } .dot-ok { color: var(--ok); }
.rule { margin: .4rem 0 .8rem; }
.md table { margin: .5rem 0; } .md h1 { font-size: 1.2rem; } .md h2 { margin-top: 1.4rem; }
.md p, .md li { font-size: .9rem; max-width: 52rem; }
.week td.inc { color: var(--warn); }
form.stack > label { max-width: 32rem; }
a.button { display: inline-flex; align-items: center; justify-content: center; padding: .45rem .8rem; border-radius: 6px;
  background: var(--line); color: #fff; text-decoration: none; font-weight: 600; }
.daynav a.button { min-width: 2.8rem; min-height: 2.8rem; font-size: 1.1rem; }
form.inline select, form.inline input { width: auto; }

/* Touch-first pilot cards: one workstream per row, responsive across phone widths. */
.pilot-form { max-width: 58rem; }
.pilot-card { display:flex; align-items:center; gap:1rem; border-bottom:1px solid var(--line-soft);
  padding:1rem 0; }
.pilot-info { flex:1; min-width:0; }
.pilot-info b { display:block; font-size:1rem; line-height:1.35; }
.pilot-info small { display:block; color:var(--muted); margin:.3rem 0; line-height:1.45; }
.pilot-code { display:block; color:var(--muted); font-size:.72rem; overflow-wrap:anywhere; }
.repo-chips { display:flex; flex-wrap:wrap; gap:.4rem; margin:.5rem 0; }
.repo-chip { text-decoration:none; font-size:.8rem; padding:.38rem .65rem; border:1px solid var(--line);
  border-radius:999px; color:var(--accent); min-height:2.4rem; display:inline-flex; align-items:center; }
.pilot-hours { display:flex; flex-direction:column; flex:0 0 5.8rem; font-weight:600; font-size:.78rem; gap:.3rem; }
.pilot-hours input.h { width:100%; min-height:3.1rem; font-size:1.2rem; }
.pilot-edit { margin-bottom:1rem; }
.pilot-edit textarea { min-height:4rem; width:100%; }
.pilot-form .big { min-height:3rem; }
@media(max-width:600px) {
  .pilot-card { gap:.5rem; padding:.85rem 0; align-items:flex-start; }
  .pilot-hours { flex-basis:5.1rem; }
  .pilot-info b { font-size:.96rem; }
  .pilot-form { padding:.8rem; }
  .repo-chip { min-height:2.75rem; }
  .pilot-form .big { position:sticky; bottom:.5rem; z-index:2; }
}

/* Clear same-date navigation and opt-in NNL carry-forward on mobile. */
.selected-day { border: 1px solid var(--accent); border-radius: .6rem; padding: .65rem; }
.selected-day .d b { font-size: 1.05rem; }
.pick-day { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; margin: .6rem 0 .25rem; }
.pick-day label { color: var(--muted); font-size: .86rem; font-weight: 600; }
.pick-day input[type="date"] { min-height: 2.85rem; font-size: 1rem; flex: 1; max-width: 14rem; }
.pick-day button { min-height: 2.85rem; min-width: 3.8rem; }
.today-link { display: inline-flex; padding: .4rem 0 .65rem; }
.day-confirm { color: var(--fg); margin: .4rem 0 1rem; }
.nnl-date-title { margin: .8rem 0 .25rem; }
.nnl-field { display: grid; gap: .38rem; margin-bottom: 1rem; }
.nnl-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; }
.nnl-label label { font-weight: 700; }
.nnl-label label small { font-weight: 400; color: var(--muted); }
.nnl-field textarea { width: 100%; min-height: 5.8rem; }
.copy-nnl { min-height: 2.75rem; padding: .5rem .7rem; }
.nnl-coaching { padding: .45rem .7rem; border-left: 3px solid var(--accent); }
.nnl-next .button { display: inline-flex; min-height: 2.8rem; align-items: center; padding: .55rem .9rem; }
@media(max-width: 450px) {
  .selected-day { gap: .2rem; padding: .55rem .3rem; }
  .selected-day .d { max-width: 12rem; }
  .selected-day .d b { font-size: .93rem; }
  .nnl-label { align-items: flex-start; flex-direction: column; }
  .copy-nnl { width: 100%; }
  .pick-day input[type="date"] { max-width: none; min-width: 9rem; }
}

/* REQ-043: one phone-friendly day form, both hours and plan saved together. */
.pilot-form { display: grid; gap: .85rem; max-width: 58rem; }
.pilot-hours-section h2, .pilot-form > .nnl > h2 { margin: .1rem 0 .6rem; font-size: 1.03rem; }
.pilot-form .nnl-section h2 { margin: 0; font-size: 1rem; }
.nnl-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem; }
.nnl-heading .warn { font-size: .85rem; font-weight: 600; }
.copy-all-nnl { width: auto; min-height: 2.75rem; margin: .35rem 0 .75rem; }
.no-copy { font-size: .82rem; }
.nnl-prompt { margin: 0 0 .8rem; font-weight: 600; }
.nnl-prompt a { display: inline-flex; padding: .35rem 0; min-height: 2.4rem; align-items: center; }
.save-day { min-height: 3.3rem; z-index: 2; }
@media (max-width: 600px) {
  .pilot-form { gap: .6rem; }
  .pilot-form > .card { padding: .78rem; }
  .save-day { position: sticky; bottom: .35rem; box-shadow: 0 2px 12px rgba(0,0,0,.38); }
  .nnl-section .nnl-field textarea { min-height: 5.4rem; font-size: 1rem; }
  .copy-all-nnl { width: 100%; }
}
