/* features.css — AB Roll panel, recent jobs and status pills */
/* AB Roll */
.abroll-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 1rem; margin-bottom: 1.1rem; }
.abroll-zone { min-width: 0; padding: 1rem; border: 1px solid var(--line);
                border-radius: var(--r); background: var(--paper-soft); transition: border-color .2s; }
.abroll-zone:hover { border-color: var(--line-strong); }
.abroll-audio-zone { grid-column: 1 / -1; background: linear-gradient(180deg, #fcfbff, #f8f6ff); }
.zone-label { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.zone-label > div { display: flex; min-width: 0; flex-direction: column; }
.zone-label strong { font-size: .9rem; font-weight: 700; }
.zone-label small { color: var(--muted); font-size: .68rem; }
.badge-zone { display: grid; width: 34px; height: 34px; flex: 0 0 34px;
              place-items: center; border-radius: 50%; color: white;
              font-family: Sora, sans-serif; font-weight: 800; font-size: .95rem; }
.badge-zone.a { background: linear-gradient(135deg, #087f79, #0a9d96); box-shadow: 0 4px 10px rgba(8,127,121,.35); }
.badge-zone.b { background: linear-gradient(135deg, #c86f1c, #e08528); box-shadow: 0 4px 10px rgba(200,111,28,.35); }
.badge-zone.audio { background: linear-gradient(135deg, #6d28d9, #8b5cf6);
                    box-shadow: 0 4px 10px rgba(109,40,217,.28); }
.badge-zone.ai-video { background: linear-gradient(135deg, #2563a8, #4d82c5);
                       box-shadow: 0 4px 10px rgba(37,99,168,.3); }
.badge-zone.ai-audio { background: linear-gradient(135deg, #6d28d9, #8b5cf6);
                       box-shadow: 0 4px 10px rgba(109,40,217,.28); }
.ai-editor { border: 1px solid var(--line); border-radius: 0 var(--r) var(--r) var(--r);
             background: var(--paper); box-shadow: var(--shadow); }
.ai-zone { background: linear-gradient(180deg, #fbfffe 0%, #f8f7ff 100%); }
.lane-help { min-height: 2.35rem; margin: -.3rem 0 .45rem; color: var(--muted);
             font-size: .7rem; line-height: 1.5; }
.ai-policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
             gap: .75rem; margin-top: .2rem; padding: .9rem;
             border: 1px solid #cfdedb; border-radius: var(--r-sm);
             background: var(--teal-soft); }
.ai-policy div { display: flex; min-width: 0; flex-direction: column; gap: .1rem; }
.ai-policy strong { color: var(--teal-dark); font-family: Sora, sans-serif;
                    font-size: .8rem; }
.ai-policy span { color: var(--ink-soft); font-size: .68rem; }
.ab-settings { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1fr);
                align-items: end; gap: 1.2rem; margin-top: 1rem;
                padding: 1rem; border-top: 1px solid var(--line);
                border-bottom: 1px solid var(--line); }
.checkbox-label { display: inline-flex; align-items: center; gap: .6rem;
                   min-width: 0; cursor: pointer; font-size: .9rem; }
.checkbox-label input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--teal); }
.checkbox-label span { display: flex; min-width: 0; flex-direction: column; }
.checkbox-label strong { font-size: .8rem; }
.checkbox-label small { color: var(--muted); font-size: .7rem; }
.hint { display: inline-grid; place-items: center; width: 16px; height: 16px;
          border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark);
          font-size: .7rem; font-style: normal; cursor: help; }

/* Recent jobs */
.recent-jobs { margin-top: 1.4rem; padding: 1.3rem 1.4rem; border: 1px solid var(--line);
                border-radius: var(--r); background: rgba(255,255,255,.85);
                box-shadow: var(--shadow-sm); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between;
                    gap: 1rem; margin-bottom: .8rem; }
.section-heading > div { display: flex; flex-direction: column; }
.section-heading h2 { margin: 0; font-size: 1.1rem; }
.text-button { border: 0; background: transparent; color: var(--teal);
                font-size: .78rem; font-weight: 700; cursor: pointer;
                padding: .25rem .5rem; border-radius: var(--r-xs); transition: background .15s; }
.text-button:hover { background: var(--teal-soft); color: var(--teal-dark); }
.jobs-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.jobs-table th { padding: .55rem .75rem; border-bottom: 1px solid var(--line); color: var(--muted);
                  font-family: Sora, sans-serif; font-size: .7rem; font-weight: 700;
                  text-align: left; text-transform: uppercase; letter-spacing: .05em; }
.jobs-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.jobs-table tr:last-child td { border-bottom: 0; }
.jobs-table tbody tr { transition: background .15s; }
.jobs-table tbody tr:hover { background: var(--paper-soft); }
.jobs-table code { font-size: .78rem; background: transparent; border: 0; padding: 0;
                    color: var(--ink); font-weight: 500; }

/* Status pills */
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: .2rem .6rem;
                border-radius: 999px; font-family: Sora, sans-serif; font-size: .68rem;
                font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-queued { background: var(--amber-soft); color: var(--amber); }
.status-running { background: var(--blue-soft); color: var(--blue); position: relative; padding-left: 1.1rem; }
.status-running::before { content: ""; position: absolute; left: .45rem; top: 50%; width: 6px; height: 6px;
                           margin-top: -3px; border-radius: 50%; background: var(--blue);
                           animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); }
                        50% { opacity: .5; transform: scale(1.4); } }
.status-done { background: var(--green-soft); color: var(--green); }
.status-failed { background: var(--red-soft); color: var(--red); }
