/* おまかせ育成 (tf-autocare.js) */
.tfa-btn.on { background: linear-gradient(135deg, #2c6e49, #3fa36b); border-color: #6fe0a2; color: #fff; }
.tfa-bg { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tfa-box { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: #101d38; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 14px 16px 16px; color: #e8eefc; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.tfa-h { display: flex; align-items: center; justify-content: space-between; font-size: 17px; margin-bottom: 4px; }
.tfa-lead { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.6; }
.tfa-horse { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); margin-bottom: 8px; border: 1px solid transparent; }
.tfa-horse.on { border-color: rgba(111, 224, 162, .45); background: rgba(63, 163, 107, .12); }
.tfa-hh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 8px; }
.tfa-hh small { color: #9fb0d0; font-size: 12px; width: 100%; }
.tfa-flag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 180, 60, .2); color: #ffd28a; }
.tfa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tfa-chip { min-height: 40px; padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #dfe7fa; font: inherit; font-size: 13.5px; cursor: pointer; }
.tfa-chip.on { background: #d4a53c; border-color: #ffd877; color: #1b1405; font-weight: 800; }
.tfa-chip:disabled { opacity: .6; }
.tfa-rules { margin: 6px 0 10px 18px; padding: 0; color: #9fb0d0; font-size: 12px; line-height: 1.7; }
.tfa-box h4 { margin: 10px 0 6px; font-size: 14px; }
.tfa-note { color: #9fb0d0; font-size: 12.5px; }
.tfa-log { display: flex; flex-direction: column; gap: 6px; }
.tfa-lrow { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 8px; align-items: baseline; font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.tfa-w { color: #9fb0d0; }
.tfa-lrow > span:last-child { display: flex; flex-wrap: wrap; gap: 4px; }
.tfa-lrow i { font-style: normal; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.tfa-lrow i.ng { background: rgba(220, 60, 80, .18); color: #ffb3c0; }
.tfa-msg { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.tfa-msg.ok { background: rgba(46, 160, 90, .18); color: #9df0bd; }
.tfa-msg.ng { background: rgba(220, 60, 80, .18); color: #ffb3c0; }
body:has(.app.phone-p) .tfa-bg { align-items: flex-end; padding: 0; }
body:has(.app.phone-p) .tfa-box { width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
body:has(.app.phone-p) .tfa-lrow { grid-template-columns: auto 1fr; }
body:has(.app.phone-p) .tfa-lrow > span:last-child { grid-column: 1 / -1; }
/* 調教師 (10/2) */
.tfa-tr { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; min-width: 104px; }
.tfa-tr small { font-size: 11.5px; color: #9fb0d0; }
.tfa-tr.on small { color: #3a2a05; }
.tfa-flag.ok { background: rgba(63, 163, 107, .22); color: #9df0bd; }
.tfa-hire { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; }
.tfa-weeks { min-height: 40px; padding: 4px 8px; border-radius: 10px; background: rgba(0, 0, 0, .3); color: #fff; border: 1px solid rgba(255, 255, 255, .2); font: inherit; font-size: 15px; }
.tfa-go { min-height: 40px; }
