 :root{--bg:#07111f;--card:#0f1d33;--muted:#9fb0c5;--text:#eef6ff;--brand:#5eead4;--gold:#f8c14a;--bad:#fb7185;--ok:#86efac;--line:#22324b}*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#07111f,#10213a);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}a{color:var(--brand)}.top{position:sticky;top:0;background:rgba(7,17,31,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;gap:18px;align-items:center;padding:14px 20px;z-index:2}.brand{font-weight:900;text-decoration:none;color:#fff;font-size:20px}.brand span{color:var(--brand);font-weight:700}nav{display:flex;gap:8px;flex-wrap:wrap;flex:1}nav a{color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:999px}nav a.on,nav a:hover{background:#162943;color:#fff}.logout button,.btn,button{background:linear-gradient(135deg,var(--brand),#38bdf8);border:0;color:#04111f;font-weight:800;border-radius:999px;padding:10px 15px;text-decoration:none;cursor:pointer}main{max-width:1180px;margin:0 auto;padding:28px 18px 70px}.hero{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.hero h1{font-size:clamp(30px,6vw,58px);line-height:1;margin:0 0 10px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.two{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.metric,.card,.auth{background:rgba(15,29,51,.88);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.22)}.metric span{color:var(--muted);display:block}.metric strong{font-size:34px;display:block;margin:8px 0}.metric small{display:block;color:#c9d6e6;min-height:50px}.badge{display:inline-block;margin-top:8px;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:900;background:#334155;color:#fff}.badge.verified{background:#14532d;color:#bbf7d0}.badge.completed{background:#1e3a8a;color:#bfdbfe}.badge.failed{background:#881337;color:#fecdd3}.badge.pending{background:#78350f;color:#fde68a}table{width:100%;border-collapse:collapse;background:rgba(15,29,51,.65);border-radius:16px;overflow:hidden}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px;vertical-align:top}th{color:#fff;background:#13243e}td{color:#dbeafe}label{display:block;margin:10px 0;color:#dbeafe}input,textarea,select{width:100%;border:1px solid var(--line);background:#061326;color:#fff;border-radius:12px;padding:12px;margin-top:6px}textarea{min-height:110px}.auth{max-width:440px;margin:50px auto}.notice{background:#083344;border:1px solid #155e75;border-radius:14px;padding:12px;margin:12px 0}.notice.bad{background:#3f0614;border-color:#9f1239}.toolbar{background:#10213a;color:var(--muted);border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:14px}.stack{display:grid;gap:16px}.chart{height:220px;display:flex;align-items:flex-end;gap:28px;padding:20px;background:#07111f;border-radius:16px}.chart span{display:block;width:70px;background:linear-gradient(var(--brand),#2563eb);border-radius:12px 12px 0 0}.chart b{align-self:center}footer{max-width:1180px;margin:0 auto;color:var(--muted);padding:20px}@media(max-width:760px){.top{position:static;display:block}.brand{display:block;margin-bottom:10px}nav{overflow:auto;display:flex;flex-wrap:nowrap}.hero{display:block}table{font-size:14px}th,td{padding:9px}.metric strong{font-size:26px}} 

/* Admin Console v2 */
.admin-nav-primary{background:#111827;color:#fff!important;border-color:#111827!important}
.admin-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#111827,#1f2937);color:#fff;border-radius:22px;padding:28px;margin:20px 0;box-shadow:0 18px 45px rgba(17,24,39,.18)}
.admin-hero h1{margin:.15rem 0;font-size:clamp(2rem,4vw,3.4rem)}
.admin-hero p{max-width:760px;color:#d1d5db}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.78rem;font-weight:800;color:#93c5fd!important}
.admin-metrics .metric{border-top:4px solid #2563eb}.admin-panel{margin-top:22px}.admin-table td,.admin-table th{vertical-align:top}.admin-table small{color:#6b7280}.btn.small{padding:.45rem .7rem;font-size:.85rem}.admin-actions form label{display:block;margin:.65rem 0}.admin-actions input,.admin-actions select,.admin-actions textarea{width:100%}.admin-actions textarea{min-height:82px}.admin-actions button{margin-top:.5rem}.notice.bad{border-color:#dc2626;background:#fef2f2;color:#991b1b}

/* Admin Console v3 */
.admin-demo{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#eff6ff;border-color:#bfdbfe}.demo-links,.quick-actions{display:flex;gap:8px;flex-wrap:wrap}.pipeline-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.pipeline-col{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px}.pipeline-col h3{margin-top:0}.pipeline-col article{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px;margin:8px 0}.pipeline-col article b,.pipeline-col article span,.pipeline-col article small{display:block}.pipeline-col article small,.muted{color:#6b7280}.admin-table .quick-actions .btn{margin:.12rem 0}@media(max-width:900px){.pipeline-board{grid-template-columns:1fr}.admin-demo{display:block}.demo-links{margin-top:12px}}

/* Admin Demo Mode visual fix 2026-07-23 */
.admin-demo{
  background:linear-gradient(135deg,#0f172a,#1d4ed8)!important;
  color:#fff!important;
  border:1px solid #60a5fa!important;
  box-shadow:0 18px 45px rgba(29,78,216,.28)!important;
}
.admin-demo h2,.admin-demo p{color:#fff!important;opacity:1!important}
.admin-demo .btn,
.admin-demo .btn.small,
.demo-links .btn{
  background:#ffffff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  font-weight:800!important;
  opacity:1!important;
  filter:none!important;
}
.admin-demo .btn:hover,
.demo-links .btn:hover{
  background:#dbeafe!important;
  color:#0f172a!important;
}

/* Admin Dashboard full visual polish 2026-07-23 */
.admin-panel,
.admin-actions .card,
.admin-table,
.pipeline-col,
.pipeline-col article{
  opacity:1!important;
  filter:none!important;
}
.admin-panel.card,
.admin-actions .card{
  background:#ffffff!important;
  border:1px solid #dbeafe!important;
  box-shadow:0 10px 28px rgba(15,23,42,.08)!important;
}
.pipeline-board{
  align-items:stretch!important;
}
.pipeline-col{
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
  border:1px solid #bfdbfe!important;
  box-shadow:0 10px 24px rgba(37,99,235,.10)!important;
}
.pipeline-col h3{
  color:#0f172a!important;
  font-weight:900!important;
  padding-bottom:8px!important;
  border-bottom:2px solid #dbeafe!important;
}
.pipeline-col:nth-child(1){border-top:5px solid #2563eb!important}
.pipeline-col:nth-child(2){border-top:5px solid #f59e0b!important}
.pipeline-col:nth-child(3){border-top:5px solid #7c3aed!important}
.pipeline-col:nth-child(4){border-top:5px solid #16a34a!important}
.pipeline-col article{
  background:#ffffff!important;
  border:1px solid #e0e7ff!important;
  box-shadow:0 6px 14px rgba(15,23,42,.06)!important;
  color:#0f172a!important;
}
.pipeline-col article b{color:#1d4ed8!important;font-weight:900!important}
.pipeline-col article span{color:#111827!important;font-weight:700!important;margin:.25rem 0!important}
.pipeline-col article small{color:#475569!important;font-weight:700!important}
.muted{color:#475569!important;background:#f8fafc!important;border:1px dashed #cbd5e1!important;border-radius:10px!important;padding:10px!important}
.admin-table th,
.admin-panel table th{
  background:#0f172a!important;
  color:#ffffff!important;
  font-weight:900!important;
}
.admin-table td,
.admin-panel table td{
  background:#ffffff!important;
  color:#111827!important;
}
.admin-table tr:nth-child(even) td,
.admin-panel table tr:nth-child(even) td{
  background:#f8fafc!important;
}
.admin-panel h2,
.admin-actions h2{color:#0f172a!important;font-weight:900!important}
.quick-actions .btn,
.admin-actions button,
.admin-panel .btn.small{
  background:#2563eb!important;
  color:#ffffff!important;
  border:1px solid #1d4ed8!important;
  opacity:1!important;
  filter:none!important;
  box-shadow:0 6px 14px rgba(37,99,235,.18)!important;
}
.quick-actions .btn:hover,
.admin-actions button:hover,
.admin-panel .btn.small:hover{
  background:#1d4ed8!important;
  color:#fff!important;
}
.badge{
  opacity:1!important;
  filter:none!important;
  font-weight:900!important;
}
.badge.pending{background:#fef3c7!important;color:#92400e!important;border:1px solid #f59e0b!important}
.badge.verified,.badge.completed{background:#dcfce7!important;color:#166534!important;border:1px solid #16a34a!important}
.badge.failed{background:#fee2e2!important;color:#991b1b!important;border:1px solid #dc2626!important}
.admin-metrics .metric{
  background:#fff!important;
  border:1px solid #dbeafe!important;
  box-shadow:0 10px 24px rgba(37,99,235,.10)!important;
  opacity:1!important;
}
.admin-metrics .metric strong{color:#0f172a!important}
.admin-metrics .metric span{color:#1d4ed8!important;font-weight:900!important}
.admin-metrics .metric small{color:#475569!important}

/* Admin form readability + alignment fix 2026-07-23 */
.admin-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(360px,1fr))!important;
  gap:24px!important;
  align-items:start!important;
}
.admin-actions .card{
  display:block!important;
  min-height:auto!important;
  padding:24px!important;
  border-radius:18px!important;
}
.admin-actions .card h2{
  margin:0 0 16px!important;
  line-height:1.2!important;
  color:#0f172a!important;
}
.admin-actions form{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px 16px!important;
  align-items:start!important;
}
.admin-actions form label{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  margin:0!important;
  color:#0f172a!important;
  font-weight:800!important;
  font-size:.94rem!important;
  line-height:1.25!important;
}
.admin-actions form label:has(textarea),
.admin-actions form label:has(input[type="file"]),
.admin-actions form label:has(input[type="checkbox"]){
  grid-column:1 / -1!important;
}
.admin-actions input,
.admin-actions select,
.admin-actions textarea{
  display:block!important;
  width:100%!important;
  min-height:44px!important;
  box-sizing:border-box!important;
  background:#ffffff!important;
  color:#111827!important;
  border:1px solid #94a3b8!important;
  border-radius:10px!important;
  padding:10px 12px!important;
  font-size:1rem!important;
  line-height:1.35!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.06)!important;
  opacity:1!important;
  filter:none!important;
}
.admin-actions textarea{
  min-height:96px!important;
  resize:vertical!important;
}
.admin-actions input::placeholder,
.admin-actions textarea::placeholder{
  color:#64748b!important;
  opacity:1!important;
}
.admin-actions input[type="checkbox"]{
  width:18px!important;
  min-height:18px!important;
  height:18px!important;
  margin:0 8px 0 0!important;
  display:inline-block!important;
}
.admin-actions label:has(input[type="checkbox"]){
  flex-direction:row!important;
  align-items:center!important;
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  padding:10px 12px!important;
}
.admin-actions button{
  grid-column:1 / -1!important;
  width:auto!important;
  justify-self:start!important;
  min-height:44px!important;
  padding:10px 18px!important;
  border-radius:10px!important;
}
@media(max-width:980px){
  .admin-actions{grid-template-columns:1fr!important;}
  .admin-actions form{grid-template-columns:1fr!important;}
}

/* Portal/Admin cohesive visual cleanup 2026-07-23 */
:root{--m1-blue:#1d4ed8;--m1-blue2:#2563eb;--m1-ink:#0f172a;--m1-muted:#475569;--m1-border:#dbe4f0;--m1-soft:#f8fafc;--m1-card:#ffffff}
body{background:#f3f6fb!important;color:var(--m1-ink)!important}.top{background:#ffffff!important;border-bottom:1px solid var(--m1-border)!important;box-shadow:0 8px 24px rgba(15,23,42,.06)!important}.brand span{color:var(--m1-blue)!important}main{max-width:1320px!important;margin:0 auto!important;padding:24px!important}a{color:#0b57d0!important;font-weight:700}.card,.metric{background:var(--m1-card)!important;color:var(--m1-ink)!important;border:1px solid var(--m1-border)!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(15,23,42,.07)!important}.card h1,.card h2,.card h3{color:var(--m1-ink)!important}.card p,.card small,td small{color:var(--m1-muted)!important}.grid.metrics.admin-metrics{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}.admin-metrics .metric{min-height:118px!important;padding:18px!important;border-top:5px solid var(--m1-blue2)!important}.admin-metrics .metric strong{font-size:2rem!important;line-height:1!important}.admin-metrics .metric span{font-size:.82rem!important;text-transform:uppercase!important;letter-spacing:.04em!important}.admin-metrics .metric small{font-size:.82rem!important;line-height:1.25!important}.admin-demo{background:linear-gradient(135deg,#0f172a,#1d4ed8)!important;border:0!important}.admin-demo p{max-width:780px!important}.demo-links .btn{white-space:nowrap!important}.admin-panel{margin-top:18px!important;overflow:hidden!important}.admin-panel table,.admin-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;table-layout:auto!important}.admin-panel th,.admin-table th{padding:12px 14px!important;text-align:left!important;background:#0f172a!important;color:#fff!important;white-space:nowrap!important}.admin-panel td,.admin-table td{padding:12px 14px!important;vertical-align:top!important;border-bottom:1px solid #e5edf7!important;line-height:1.35!important}.admin-panel tr:nth-child(even) td,.admin-table tr:nth-child(even) td{background:#fbfdff!important}.admin-table td:nth-child(2){max-width:220px!important;word-break:break-word!important}.admin-table td:nth-child(8){width:210px!important}.quick-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;align-items:start!important}.quick-actions .btn{display:block!important;text-align:center!important;padding:7px 8px!important;font-size:.78rem!important;line-height:1.1!important;border-radius:9px!important;box-shadow:none!important;white-space:nowrap!important}.pipeline-board{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:start!important}.pipeline-col{min-height:0!important;padding:12px!important;background:#fff!important}.pipeline-col h3{font-size:1rem!important}.pipeline-col article{padding:10px!important;margin:8px 0!important;min-height:0!important}.pipeline-col article span{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;font-size:.9rem!important}.pipeline-col article small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:.78rem!important}.muted{margin:8px 0 0!important;min-height:0!important}.admin-actions{display:block!important}.admin-actions .card{margin:18px 0!important;padding:22px!important}.admin-actions form{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:end!important}.admin-actions form label{display:flex!important;flex-direction:column!important;gap:6px!important;color:var(--m1-ink)!important;font-weight:800!important;min-width:0!important}.admin-actions input,.admin-actions select,.admin-actions textarea{width:100%!important;box-sizing:border-box!important;background:#fff!important;color:#111827!important;border:1px solid #94a3b8!important;border-radius:10px!important;padding:10px 12px!important;min-height:44px!important;font-size:1rem!important}.admin-actions textarea{min-height:84px!important}.admin-actions #add-work form label:has(textarea),.admin-actions #upload-report form label:has(input[type=file]){grid-column:span 2!important}.admin-actions button{grid-column:auto!important;width:fit-content!important;align-self:end!important;padding:11px 18px!important}.admin-actions label:has(input[type="checkbox"]){grid-column:span 2!important;display:flex!important;flex-direction:row!important;align-items:center!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:10px!important;padding:10px 12px!important}.admin-actions input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px!important;margin-right:8px!important}.badge{display:inline-block!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;padding:.25rem .45rem!important;border-radius:999px!important;font-size:.74rem!important;line-height:1.1!important}.notice{border-radius:14px!important}.grid.two:has(.admin-panel){display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr)!important;gap:18px!important;align-items:start!important}.grid.two:has(.admin-panel) table{table-layout:auto!important}.admin-panel:has(h2:first-child){min-width:0!important}
@media(max-width:1180px){.grid.metrics.admin-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}.pipeline-board{grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-actions form{grid-template-columns:repeat(2,minmax(0,1fr))!important}.grid.two:has(.admin-panel){grid-template-columns:1fr!important}}
@media(max-width:760px){main{padding:14px!important}.grid.metrics.admin-metrics,.pipeline-board,.admin-actions form{grid-template-columns:1fr!important}.quick-actions{grid-template-columns:1fr!important}.admin-actions #add-work form label:has(textarea),.admin-actions #upload-report form label:has(input[type=file]),.admin-actions label:has(input[type="checkbox"]){grid-column:1!important}.admin-table,.admin-panel table{display:block!important;overflow-x:auto!important;white-space:nowrap!important}.admin-hero,.admin-demo{display:block!important}.demo-links{margin-top:12px!important}}

/* Portal/Admin final demo polish pass 2026-07-23 */
/* Stack attention/trial cards so they don't visually collide or bleed. */
.grid.two:has(.admin-panel){
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:18px!important;
}
.grid.two:has(.admin-panel) .admin-panel{
  width:100%!important;
  min-width:0!important;
}
.grid.two:has(.admin-panel) .admin-panel table{
  table-layout:fixed!important;
}
.grid.two:has(.admin-panel) .admin-panel td,
.grid.two:has(.admin-panel) .admin-panel th{
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.45!important;
}
/* Make attention/trial easier to skim. */
.admin-panel h2{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-bottom:14px!important;
}
.admin-panel h2::before{
  content:"";
  display:inline-block;
  width:10px;
  height:24px;
  border-radius:999px;
  background:#2563eb;
}
/* Balance pipeline columns without huge grey/empty regions. */
.pipeline-board{
  grid-template-columns:repeat(4,minmax(220px,1fr))!important;
  align-items:start!important;
}
.pipeline-col{
  max-height:430px!important;
  overflow:auto!important;
  scrollbar-width:thin!important;
}
.pipeline-col article{
  max-height:96px!important;
  overflow:hidden!important;
}
.pipeline-col article b{font-size:.9rem!important;line-height:1.2!important}
.pipeline-col article span{font-size:.86rem!important;line-height:1.25!important;-webkit-line-clamp:2!important}
.pipeline-col article small{font-size:.74rem!important;color:#334155!important}
.pipeline-col .muted{
  padding:8px 10px!important;
  font-size:.9rem!important;
  background:#fff!important;
  border:1px dashed #d6e0ee!important;
}
/* Client table polish: less visual noise, clearer rows. */
.admin-table th:nth-child(1){width:18%!important}
.admin-table th:nth-child(2){width:17%!important}
.admin-table th:nth-child(3){width:12%!important}
.admin-table th:nth-child(4){width:14%!important}
.admin-table th:nth-child(5){width:7%!important}
.admin-table th:nth-child(6){width:13%!important}
.admin-table th:nth-child(7){width:7%!important}
.admin-table th:nth-child(8){width:12%!important}
.admin-table td{font-size:.92rem!important}.admin-table small{font-size:.78rem!important;color:#475569!important}.admin-table a[href^="http"]{display:inline-block!important;max-width:190px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;vertical-align:bottom!important}
.quick-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
}
.quick-actions .btn{
  padding:6px 7px!important;
  font-size:.72rem!important;
  min-width:auto!important;
  flex:0 0 auto!important;
}
/* Forms: calmer two-column layout, full-width long fields. */
.admin-actions .card{
  margin-top:22px!important;
}
.admin-actions form{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px 18px!important;
}
.admin-actions form label{
  font-size:.96rem!important;
  color:#111827!important;
}
.admin-actions input,
.admin-actions select,
.admin-actions textarea{
  border:1.5px solid #64748b!important;
  background:#fff!important;
  color:#0f172a!important;
}
.admin-actions textarea,
.admin-actions label:has(textarea),
.admin-actions label:has(input[type="file"]),
.admin-actions label:has(input[type="checkbox"]){
  grid-column:1 / -1!important;
}
.admin-actions button{
  grid-column:1 / -1!important;
  justify-self:start!important;
}
#add-work form{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#add-work form label:has(textarea),
#add-work form label:has(input[name="evidence"]),
#add-work form label:has(input[name="verification_method"]){
  grid-column:1 / -1!important;
}
#upload-report form{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(max-width:980px){
  .pipeline-board{grid-template-columns:1fr!important}.pipeline-col{max-height:none!important}.admin-actions form,#add-work form,#upload-report form{grid-template-columns:1fr!important}.admin-table{display:block!important;overflow-x:auto!important}.admin-table a[href^="http"]{max-width:240px!important}
}

/* Portal/Admin final presentation polish 2026-07-23 */
.admin-hero p,
.admin-demo p{
  color:#f8fafc!important;
  opacity:1!important;
  font-size:1.05rem!important;
  line-height:1.55!important;
}
.admin-hero .btn{
  background:#fff!important;
  color:#1d4ed8!important;
  border:1px solid #bfdbfe!important;
  font-weight:900!important;
}
.admin-panel p{
  color:#334155!important;
  line-height:1.5!important;
}
.admin-panel td,
.admin-panel th{
  overflow-wrap:break-word!important;
}
.admin-panel table small{
  display:block!important;
  margin-top:4px!important;
  color:#334155!important;
  font-size:.82rem!important;
  line-height:1.35!important;
}
/* Make attention and trial alert cards calm, not cramped. */
.grid.two:has(.admin-panel) .admin-panel:first-child td:nth-child(2){
  font-size:.95rem!important;
  line-height:1.5!important;
}
.grid.two:has(.admin-panel) .admin-panel:first-child tr:nth-child(n+6){
  display:none!important;
}
.grid.two:has(.admin-panel) .admin-panel:nth-child(2) td{
  font-size:.96rem!important;
  padding:16px!important;
}
/* Tighten but clarify pipeline. */
.pipeline-col{
  max-height:360px!important;
  background:#fbfdff!important;
}
.pipeline-col article{
  max-height:82px!important;
  border-left:4px solid #2563eb!important;
}
.pipeline-col:nth-child(4) article{border-left-color:#16a34a!important}
.pipeline-col:nth-child(1) article{border-left-color:#2563eb!important}
.pipeline-col:nth-child(2) article{border-left-color:#f59e0b!important}
.pipeline-col:nth-child(3) article{border-left-color:#7c3aed!important}
/* Reduce bottom noise in repeated ingestion rows while leaving proof visible. */
.admin-panel:last-of-type table tr:nth-child(n+5){
  display:none!important;
}
.admin-panel:last-of-type::after{
  content:"Latest ingestion runs shown. Full history remains in the database.";
  display:block;
  color:#475569;
  font-size:.9rem;
  margin-top:10px;
}
/* Footer and metadata should be readable, not washed out. */
footer{
  color:#334155!important;
  background:#ffffff!important;
  border-top:1px solid #dbe4f0!important;
  padding:18px 24px!important;
  font-size:.92rem!important;
}
.admin-table small,
.admin-panel small{
  color:#334155!important;
}
/* If browser supports it, simplify no-data pipeline columns visually. */
.pipeline-col:has(.muted){
  background:#ffffff!important;
  border-style:dashed!important;
}
.pipeline-col:has(.muted) h3{
  color:#334155!important;
}
/* Keep form cards readable and not overly tall-looking. */
.admin-actions .card{
  border-top:5px solid #2563eb!important;
}
#add-work textarea{
  min-height:72px!important;
}

/* Portal mobile menu 2026-07-23 */
.portal-menu-toggle{display:none!important;background:#1d4ed8!important;color:#fff!important;border:1px solid #1d4ed8!important;border-radius:10px!important;padding:9px 12px!important;font-weight:900!important;box-shadow:none!important}
@media(max-width:760px){
  .top{position:sticky!important;top:0!important;display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;align-items:center!important;padding:12px 14px!important;z-index:50!important;background:#fff!important}
  .top .brand{margin:0!important;font-size:18px!important;line-height:1.15!important}
  .portal-menu-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;grid-column:2!important;grid-row:1!important;width:auto!important;min-height:40px!important}
  .top nav,.top .logout{display:none!important;grid-column:1 / -1!important;width:100%!important;margin:0!important}
  body.portal-menu-open .top nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding-top:8px!important;overflow:visible!important;white-space:normal!important}
  body.portal-menu-open .top .logout{display:block!important;padding-top:8px!important}
  .top nav a{display:block!important;text-align:center!important;background:#f8fafc!important;border:1px solid #dbe4f0!important;color:#0f172a!important;border-radius:10px!important;padding:10px 8px!important;font-size:.9rem!important;white-space:normal!important}
  .top nav a.on,.top nav a.admin-nav-primary{background:#1d4ed8!important;color:#fff!important;border-color:#1d4ed8!important}
  .logout button{width:100%!important;border-radius:10px!important;background:#0f172a!important;color:#fff!important}
}
@media(max-width:420px){body.portal-menu-open .top nav{grid-template-columns:1fr!important}}
