/* Field network (field.js). Same language as Creative Studio: frosted cards, gold accent; data colours for
   volunteers (green), creators (gold) and coordinators (ink). */
.fn { background: radial-gradient(50% 40% at 6% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface-2); min-height: calc(100vh - 80px); }
.fn-wrap { max-width: 1480px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.fn-card { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fn-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.fn-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fn-mapgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .fn-mapgrid { grid-template-columns: 1fr; } }
.fn-map { width: 100%; height: auto; max-height: 78vh; display: block; }
.fn-dist { stroke: var(--line); stroke-width: 1.2; cursor: pointer; transition: opacity .15s; }
.fn-dist:hover { stroke: var(--text-3); stroke-width: 2; }
.fn-dist.sel { stroke: var(--text); stroke-width: 3; }
.fn-num { font: 600 20px var(--font); fill: var(--text); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.fn-pt { stroke: var(--surface); stroke-width: 3; cursor: pointer; }
.fn-pt.live { animation: fnpulse 1.8s ease-in-out infinite; }
@keyframes fnpulse { 50% { stroke-width: 9; stroke: color-mix(in srgb, var(--accent) 50%, transparent); } }
@media (prefers-reduced-motion: reduce) { .fn-pt.live { animation: none; } }
.fn-task { fill: var(--neg); stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.fn-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.fn-side { display: flex; flex-direction: column; gap: 14px; }
.fn-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fn-stats > div { display: flex; flex-direction: column; } .fn-stats span { font-size: 12px; color: var(--text-3); }
.fn-stats b { font-size: 28px; font-weight: 400; letter-spacing: -.04em; }
.fn-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border: 0; background: transparent; border-radius: 12px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fn-row:hover { background: color-mix(in srgb, var(--text-3) 9%, transparent); }
.fn-row b { display: block; font-size: 13px; } .fn-row small { font-size: 11.5px; color: var(--text-3); }
.fn-av { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--c); display: grid; place-items: center; font-weight: 700; flex: none; border: 2px solid var(--c); }
.fn-av.lg { width: 48px; height: 48px; font-size: 18px; }
.fn-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .fn-filters .input { width: auto; }
.fn-table { overflow-x: auto; }
.fn-tr { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1fr 1.2fr .8fr .7fr; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line-2); font-size: 13px; min-width: 900px; align-items: center; cursor: pointer; }
.fn-tr:hover:not(.fn-th) { background: color-mix(in srgb, var(--text-3) 7%, transparent); }
.fn-tr small { display: block; font-size: 11px; color: var(--text-3); }
.fn-th { font-size: 11.5px; color: var(--text-3); cursor: default; }
.fn-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.fn-col { background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px dashed var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }
.fn-col.over { border-color: var(--accent); background: var(--accent-soft); }
.fn-task-c { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; cursor: grab; font-size: 13px; }
.fn-task-c.high { border-left: 3px solid var(--neg); } .fn-task-c.low { opacity: .85; }
.fn-task-c small { font-size: 11.5px; color: var(--text-3); }
.fn-who { align-self: flex-start; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 8px; border-radius: 99px; }
.fn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .fn-cols { grid-template-columns: 1fr; } }
.fn-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .fn-link code { font-size: 12px; background: var(--surface-3); padding: 6px 10px; border-radius: 10px; word-break: break-all; }
.fn-app { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-bottom: 1px solid var(--line-2); }
.fn-pp { display: flex; flex-direction: column; gap: 12px; }
.fn-pp-h { display: flex; gap: 12px; align-items: center; }
.fn-pp-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fn-pp-g > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.fn-pp-g span { font-size: 11.5px; color: var(--text-3); } .fn-pp-g small { font-size: 11px; color: var(--text-3); }
.fn .neg { color: var(--neg-ink); }

/* ---- volunteer network (field.js network) ---- */
.fn-net .fn-card-h { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.fn-kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.fn-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fn-kpi span { font-size: 12px; color: var(--text-3); }
.fn-kpi b { font-size: 26px; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fn-kpi b em { font-style: normal; font-size: 14px; color: var(--text-3); }
.fn-kpi small { font-size: 11px; color: var(--text-3); }
.fn-coverage { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 12px; font-size: 12.5px; }
.fn-coverage span { display: inline-flex; align-items: center; gap: 6px; position: relative; padding-bottom: 5px; }
.fn-coverage span i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 99px; background: var(--accent); }
.fn-tr small.pos { color: var(--pos-ink); } .fn-tr small.neg { color: var(--neg-ink); }

/* Demo mode: sample people are marked wherever they appear */
.fn-sample { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; font-size: 10.5px; margin-left: 6px; vertical-align: middle; }
.fn-demo { align-items: flex-start; }
