/* SCHEDULED_TASKS_V1 */
.tk-bg { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tk-modal { width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--bg-1); color: var(--tx); border: 1px solid var(--brd-2); border-radius: var(--r-lg, 16px); box-shadow: var(--sh-lg); }
.tk-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 2px; }
.tk-title { font-weight: 600; font-size: 1.05rem; }
.tk-x { appearance: none; border: 0; background: none; color: var(--tx-3); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.tk-x:hover { color: var(--tx); background: var(--bg-2); }
.tk-lead { font-size: .82rem; color: var(--tx-3); padding: 0 18px 10px; }
.tk-body { overflow: auto; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.tk-card { border: 1px solid var(--brd-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tk-card.is-off { opacity: .65; }
.tk-name { font-weight: 600; }
.tk-sched { font-size: .82rem; color: var(--tx-2); }
.tk-prompt { font-size: .84rem; color: var(--tx-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tk-meta { font-size: .76rem; color: var(--tx-3); }
.tk-err { font-size: .78rem; color: var(--red, #ef4444); min-height: 0; }
.tk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tk-btn { appearance: none; border: 1px solid var(--brd-2); background: var(--bg-2); color: var(--tx); font: inherit; font-size: .8rem; border-radius: 8px; padding: 5px 11px; cursor: pointer; }
.tk-btn:hover:not(:disabled) { background: var(--bg-3); }
.tk-btn:disabled { opacity: .55; cursor: default; }
.tk-btn.tk-primary { background: var(--tx); color: var(--bg-1); border-color: var(--tx); }
.tk-btn.tk-danger { color: var(--red, #ef4444); }
.tk-btn:focus-visible, .tk-x:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tk-form .tk-foot { justify-content: flex-end; }
.tk-limit { font-size: .74rem; color: var(--tx-3); }
.tk-empty { font-size: .86rem; color: var(--tx-3); padding: 14px 0; }
.tk-skel { height: 70px; border-radius: 12px; background: var(--bg-2); }
.tk-form { display: flex; flex-direction: column; gap: 10px; }
.tk-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-field[hidden] { display: none; }
.tk-lab { font-size: .78rem; color: var(--tx-2); }
.tk-in { border: 1px solid var(--brd-2); background: var(--bg-2); color: var(--tx); font: inherit; font-size: .88rem; border-radius: 9px; padding: 8px 10px; outline: none; width: 100%; box-sizing: border-box; }
textarea.tk-in { resize: vertical; }
.tk-in:focus { border-color: var(--ac); }
.tk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
