/* NGS Pipeline Studio (dailyfirst.in) */
body.dfngs-page aside.col-md-4, body.dfngs-page #secondary { display: none !important; }
body.dfngs-page .row > .col-md-8, body.dfngs-page .row > .col-lg-8 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }

.dfngs { --g: #1b7f4b; --gd: #0f3d24; --gold: #e0b23c; --ink: #0f172a; --mut: #64748b; --line: #e2e8f0; --bg: #f6faf7;
	font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); line-height: 1.5; font-size: 15px; margin: 0 0 2rem; }
.dfngs * { box-sizing: border-box; }
.dfngs .dfngs-loading { padding: 2rem; text-align: center; color: var(--mut); }
.dfngs-hero { background: radial-gradient(circle at 85% 30%, #1f6b3a 0, #0f3d24 55%, #08261a 100%); color: #fff; border-radius: 18px; padding: 30px 32px 26px; margin-bottom: 18px; }
.dfngs-kicker { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; background: rgba(224,178,60,.18); color: #f6d77d; padding: 5px 12px; border-radius: 30px; }
.dfngs-hero h2 { color: #fff; font-size: 30px; line-height: 1.15; margin: 14px 0 10px; font-weight: 800; }
.dfngs-hero h2 span { color: #f2c94c; }
.dfngs-hero p { color: #dcefe3; max-width: 860px; margin: 0 0 14px; font-size: 15.5px; }
.dfngs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dfngs-chips span { border: 1px solid rgba(242,201,76,.6); color: #ffe8a6; padding: 4px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.15); }
.dfngs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dfngs-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 14.5px; cursor: pointer; background: var(--g); color: #fff !important; text-decoration: none !important; transition: transform .08s, box-shadow .15s; }
.dfngs-btn:hover { box-shadow: 0 4px 14px rgba(27,127,75,.35); transform: translateY(-1px); }
.dfngs-btn.gold { background: var(--gold); color: #0b2a1a !important; }
.dfngs-btn.ghost { background: #fff; color: var(--g) !important; border: 1.5px solid var(--g); }
.dfngs-hero .dfngs-btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.dfngs-btn.small { padding: 6px 12px; font-size: 13px; }

.dfngs-steps { display: grid; grid-template-columns: repeat(9, minmax(110px, 1fr)); gap: 6px; overflow-x: auto; padding: 4px 2px 10px; position: sticky; top: 0; z-index: 5; background: #fff; }
.admin-bar .dfngs-steps { top: 32px; }
.dfngs-step { display: flex; gap: 8px; align-items: flex-start; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 9px; cursor: pointer; font: inherit; color: var(--ink); min-width: 110px; }
.dfngs-step b { flex: 0 0 24px; height: 24px; border-radius: 50%; background: #e8f3ec; color: var(--g); display: grid; place-items: center; font-size: 13px; }
.dfngs-step span { font-size: 13px; font-weight: 700; line-height: 1.2; }
.dfngs-step small { display: block; font-weight: 500; color: var(--mut); font-size: 11.5px; margin-top: 2px; }
.dfngs-step.active { border-color: var(--g); background: var(--bg); box-shadow: 0 2px 10px rgba(27,127,75,.15); }
.dfngs-step.active b { background: var(--g); color: #fff; }
.dfngs-step.done b { background: var(--gold); color: #0b2a1a; }

.dfngs-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 8px; }
.dfngs-panel h3 { font-size: 22px; margin: 6px 0 6px; color: var(--gd); }
.dfngs-panel h4 { font-size: 16px; margin: 18px 0 8px; color: var(--ink); }
.dfngs-intro { color: #334155; margin: 0 0 14px; }
.dfngs-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; margin: 0 0 12px; }
.dfngs-card h4 { margin-top: 0; }
.dfngs-card summary { cursor: pointer; font-weight: 600; }
.dfngs-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dfngs-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; margin: 6px 0 12px; align-items: end; }
.dfngs-field { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; margin: 0; }
.dfngs-field small { font-weight: 400; color: var(--mut); font-size: 12px; }
.dfngs-field input, .dfngs-field select, .dfngs input[type=search], .dfngs-sample input[type=text] { border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 9px; font: inherit; font-weight: 500; background: #fff; width: 100%; }
.dfngs input[type=file] { font-size: 13px; max-width: 100%; }
.dfngs-check { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; margin: 0; }
.dfngs-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 12px 0; }
.dfngs-fileinfo { margin-top: 8px; font-size: 13.5px; }
.dfngs-fileinfo .warn, .dfngs .warn { color: #b45309; }
.dfngs .muted { color: var(--mut); font-size: 13.5px; }
.dfngs-samples { margin-top: 10px; display: grid; gap: 6px; }
.dfngs-sample { display: grid; grid-template-columns: 170px 1fr 30px; gap: 10px; align-items: center; background: var(--bg); border-radius: 8px; padding: 6px 8px; font-size: 13.5px; }
.dfngs-x { border: 0; background: #fee2e2; color: #b91c1c; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 17px; line-height: 1; }

.dfngs-status { border-radius: 10px; padding: 10px 14px; margin: 10px 0 14px; font-size: 14px; border: 1px solid var(--line); background: #f8fafc; }
.dfngs-status.busy { border-color: #bfdbfe; background: #eff6ff; }
.dfngs-status.ok { border-color: #bbf7d0; background: #f0fdf4; }
.dfngs-status.err { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.dfngs-status em { color: var(--mut); font-style: normal; font-size: 12.5px; margin-left: 6px; }
.dfngs-status details { margin-top: 6px; font-size: 12.5px; }
.dfngs-log { max-height: 220px; overflow: auto; background: #0f172a; color: #d1fae5; padding: 10px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; margin: 6px 0 0; }
.dfngs .spin { display: inline-block; width: 14px; height: 14px; border: 2.5px solid #93c5fd; border-top-color: #1d4ed8; border-radius: 50%; animation: dfngs-spin .8s linear infinite; margin-right: 8px; vertical-align: -2px; }
@keyframes dfngs-spin { to { transform: rotate(360deg); } }

.dfngs-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.dfngs-stat { background: var(--bg); border: 1px solid #d7eadf; border-radius: 12px; padding: 10px 12px; }
.dfngs-stat .v { font-size: 22px; font-weight: 800; color: var(--gd); }
.dfngs-stat .l { font-size: 12.5px; font-weight: 600; color: #334155; }
.dfngs-stat .s { font-size: 11.5px; color: var(--mut); }
.dfngs-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.dfngs-badge.ok { background: #dcfce7; color: #166534; } .dfngs-badge.warn { background: #fef3c7; color: #92400e; } .dfngs-badge.bad { background: #fee2e2; color: #991b1b; }

.dfngs-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 10px; }
.dfngs-table-wrap.tall { max-height: 460px; }
.dfngs-table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 0 !important; }
.dfngs-table th { position: sticky; top: 0; background: #f1f5f9; text-align: left; font-weight: 700; padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dfngs-table td { padding: 6px 9px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.dfngs-table tr:hover td { background: #f8fafc; }

.dfngs-chart { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; position: relative; }
.dfngs-chart svg { display: block; width: 100%; height: auto; }
.dfngs-chart figcaption { font-size: 12.5px; color: var(--mut); margin-top: 4px; }
.dfngs-chart-dl { position: absolute; top: 8px; right: 10px; display: flex; gap: 4px; opacity: .25; transition: opacity .15s; }
.dfngs-chart:hover .dfngs-chart-dl { opacity: 1; }
.dfngs-chart-dl button { border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 11px; padding: 2px 7px; cursor: pointer; }

.dfngs-side h4 { font-size: 14px; margin: 0 0 6px; color: var(--gd); }
.dfngs-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 16px; background: #fff; max-height: 460px; overflow: auto; }
.dfngs-out { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 4px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.dfngs-out small { display: block; color: var(--mut); font-size: 11.5px; word-break: break-all; }
.dfngs-out button { border: 0; background: #e8f3ec; color: var(--g); border-radius: 6px; padding: 4px 9px; cursor: pointer; font-weight: 700; }
.dfngs-cmds { background: #0f172a; color: #d1fae5; font-size: 11.5px; padding: 8px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; margin: 0 0 8px; }
.dfngs-vcfsrc { background: var(--bg); }
.dfngs-foot { margin-top: 18px; font-size: 12.5px; color: var(--mut); border-top: 1px solid var(--line); padding-top: 10px; }
.dfngs-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--gd); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 99999; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; }
.dfngs code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

@media (max-width: 1000px) {
	.dfngs-body { grid-template-columns: 1fr; }
	.dfngs-grid2 { grid-template-columns: 1fr; }
	.dfngs-steps { grid-template-columns: repeat(9, 140px); }
}
@media (max-width: 600px) {
	.dfngs-hero { padding: 22px 18px; } .dfngs-hero h2 { font-size: 24px; }
	.dfngs-sample { grid-template-columns: 1fr 30px; } .dfngs-sample .muted { grid-column: 1 / -1; }
}
