.bg-vi { background: linear-gradient(90deg, #e60000, #2a2a72); }
.stat-card .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card { border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.badge-ok { background: #198754; } .badge-redirect { background: #0d6efd; } .badge-4xx { background: #dc3545; }
.badge-5xx { background: #842029; } .badge-error { background: #fd7e14; }
.badge-PASS { background: #198754; } .badge-FAIL { background: #dc3545; } .badge-ERROR { background: #fd7e14; }
.badge-SKIPPED { background: #6c757d; }
.flag { font-size: .7rem; background: #f1f3f5; color: #495057; border: 1px solid #dee2e6; }
.flag-bad { background: #f8d7da; color: #842029; border-color: #f5c2c7; }
.flag-warn { background: #fff3cd; color: #664d03; border-color: #ffecb5; }
table.sortable th { cursor: pointer; white-space: nowrap; }
table.sortable th.asc::after { content: " \25B2"; font-size: .7em; }
table.sortable th.desc::after { content: " \25BC"; font-size: .7em; }
.url-cell { max-width: 520px; word-break: break-all; }
.thumb { width: 100%; height: 190px; object-fit: cover; object-position: top; border-bottom: 1px solid #eee; }
.form-card { box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.form-card.st-FAIL { border-top: 4px solid #dc3545; } .form-card.st-ERROR { border-top: 4px solid #fd7e14; }
.form-card.st-PASS { border-top: 4px solid #198754; } .form-card.st-SKIPPED { border-top: 4px solid #6c757d; }
.small-mono { font-family: ui-monospace, monospace; font-size: .78rem; }
.shot-full { max-width: 100%; border: 1px solid #ddd; }

/* ---------------- Schedule Auto-Run panel ---------------- */
.btn-schedule { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-schedule:hover { background: rgba(255,255,255,.28); color: #fff; }
.sched-dialog { max-width: 560px; }
.sched-modal { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(40,10,80,.35); }
.sched-header { background: linear-gradient(120deg, #7b25a3 0%, #5b1f94 55%, #461a86 100%); color: #fff;
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; }
.sched-header h5 { font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.sched-close { background: none; border: 0; color: #fff; font-size: 2.3rem; line-height: 1; padding: 0 4px; font-weight: 300; }
.sched-close:hover { opacity: .8; }
.sched-body { padding: 22px 26px 26px; }
.sched-label { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700;
  color: #64748b; margin: 0 0 8px; }
.sched-tz { text-transform: none; letter-spacing: 0; font-weight: 600; color: #94a3b8; margin-left: 4px; }
.sched-input { width: 100%; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; height: 56px;
  padding: 0 18px; font-size: 1.15rem; color: #1e293b; outline: none; transition: border-color .15s, box-shadow .15s; }
.sched-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.18); background: #fff; }
.sched-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.2rem; }
.sched-select { appearance: auto; padding-right: 12px; }
#schedForm .row { margin-top: 18px !important; }
.sched-hint { color: #7c3aed; font-size: .8rem; min-height: 1.1rem; margin: 8px 2px 4px; }
.sched-add { width: 100%; height: 56px; border: 0; border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(90deg, #7b25a3, #7a2aa6); box-shadow: 0 4px 12px rgba(123,37,163,.25); margin-top: 6px; }
.sched-add:hover { filter: brightness(1.07); } .sched-add:disabled { opacity: .6; }
.sched-error { margin-top: 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.sched-hr { border-color: #e2e8f0; opacity: 1; margin: 26px 0 22px; }
.sched-section { color: #7b25a3; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: .85rem; margin-bottom: 14px; }
.sched-item { display: flex; align-items: center; gap: 16px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.sched-item.is-off { opacity: .72; }
.sched-icon { font-size: 1.7rem; width: 38px; text-align: center; flex: none; }
.sched-main { flex: 1; min-width: 0; }
.sched-when { font-weight: 800; color: #1e293b; font-size: 1.08rem; }
.sched-sub { color: #64748b; font-size: .95rem; }
.sched-sub a { color: #7b25a3; }
.sched-pill { flex: none; background: #f3e8ff; color: #7b25a3; font-weight: 700; border-radius: 999px; padding: 4px 14px; font-size: .95rem; white-space: nowrap; }
.sched-pill.st-completed { background: #dcfce7; color: #15803d; }
.sched-pill.st-missed, .sched-pill.st-paused { background: #e2e8f0; color: #475569; }
.sched-pill.st-skipped { background: #fef3c7; color: #a16207; }
.sched-pill.st-error, .sched-pill.st-aborted { background: #fee2e2; color: #b91c1c; }
.sched-pill.st-running, .sched-pill.st-queued { background: #dbeafe; color: #1d4ed8; }
.sched-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.sched-btn { background: none; border: 0; color: #94a3b8; font-size: 1.05rem; padding: 4px 6px; border-radius: 8px; line-height: 1; }
.sched-btn:hover { background: #eef2f7; color: #475569; }
.sched-btn.del { font-size: 1.7rem; font-weight: 300; }
.sched-foot { margin-top: 6px; }

/* ---------------- URL / form management ---------------- */
.btn-manage { background: #7b25a3; color: #fff; border: 0; }
.btn-manage:hover { background: #63198a; color: #fff; }
.mgmt-dialog { max-width: 680px; }
.badge-custom { background: #f3e8ff; color: #7b25a3; border: 1px solid #e3cdfa; }
.row-disabled td { opacity: .5; }
.row-disabled td:nth-child(-n+2), .row-disabled td:last-child { opacity: 1; }
.card-disabled { opacity: .55; filter: grayscale(.8); }
.card-disabled .card-toolbar, .card-disabled .form-toggle { opacity: 1; filter: none; }
.form-card.st-DISABLED { border-top: 4px solid #adb5bd; } .form-card.st-NONE { border-top: 4px solid #dee2e6; }
.card-toolbar { display: flex; align-items: center; padding: .35rem .6rem; border-bottom: 1px solid #f1f1f1; }
.bulk-bar { display: flex; gap: .4rem; align-items: center; background: #f3e8ff; border: 1px solid #e3cdfa; border-radius: 10px;
            padding: .35rem .6rem; margin-bottom: .5rem; font-size: .85rem; }
.bulk-bar.d-none { display: none !important; }
.btn-xs { font-size: .8rem; text-decoration: none; }
.mgmt-tabs { display: flex; gap: .3rem; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 1rem; }
.mgmt-tab { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: .5rem; font-weight: 600; color: #64748b; }
.mgmt-tab.active { background: #fff; color: #7b25a3; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sched-textarea { height: auto !important; min-height: 90px; padding-top: .6rem; font-family: ui-monospace, monospace; font-size: .85rem; resize: vertical; }
.sched-label .opt { text-transform: none; font-weight: 400; letter-spacing: 0; color: #94a3b8; }
.sched-add-alt { background: #fff !important; color: #7b25a3 !important; border: 2px solid #7b25a3 !important; font-size: 1rem; }
.mgmt-dialog .sched-input { height: 46px; }
.mgmt-dialog .sched-add { height: 50px; font-size: 1.05rem; }
.mgmt-result { margin-top: 1rem; border: 1px solid #e2e8f0; border-radius: 12px; padding: .8rem 1rem; font-size: .85rem; background: #fcfcfd; }
.mgmt-result ul { margin: .3rem 0 .4rem; padding-left: 1.2rem; max-height: 140px; overflow: auto; word-break: break-all; }
.mgmt-result summary { font-weight: 600; color: #334155; cursor: pointer; }
.mgmt-pills { display: flex; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }
.mp { border-radius: 999px; padding: .2rem .7rem; font-weight: 600; font-size: .8rem; }
.mp.ok { background: #dcfce7; color: #166534; } .mp.dup { background: #fef9c3; color: #854d0e; } .mp.bad { background: #fee2e2; color: #991b1b; }
.mgmt-safety { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: .5rem .7rem; font-size: .8rem; }
.mgmt-toast { position: fixed; right: 18px; bottom: 18px; z-index: 2000; padding: .6rem 1rem; border-radius: 10px; color: #fff;
              box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: opacity .4s; max-width: 420px; font-size: .9rem; }
.mgmt-toast.ok { background: #5b1f94; } .mgmt-toast.bad { background: #b91c1c; }

.badge-mode { background: #e8f4fd; color: #0b5c8a; border: 1px solid #b6dcf3; }

/* sample values editor */
.sample-box { border: 1px dashed #c9d3e3; border-radius: 10px; padding: .6rem .75rem; background: #f8fafd; }
.sample-grid { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: .35rem .6rem; align-items: center; margin-top: .35rem; }
.sample-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: #374151; margin: 0; }
.sample-input { padding: .3rem .5rem !important; font-size: .85rem; height: auto !important; min-height: 0 !important; line-height: 1.3; }
.sample-input::placeholder { color: #9aa3af; font-style: italic; }
.sample-pick code { font-size: .75rem; }

/* ---------------- Login ---------------- */
.login-card { border-top: 4px solid #e60000; border-radius: 12px; }
