/* The signed-in application (portal/templates/app_base.html + dashboard.html): one rounded window on a slightly
   darker page, a sidebar and a workspace of quiet widgets. Loaded after style.css and built on its --nf-* tokens,
   so light and dark are the same environment as the homepage. The haze is lighter than the homepage's: this is a
   working screen, so functional text stays close to crisp (--nf-haze .08 against the homepage's 1). */

:root{
  --nfa-page:var(--nf-page-lo);
  --nfa-shell:var(--nf-surface-soft);
  --nfa-side:var(--nf-surface-muted);
  --nfa-card:color-mix(in oklab,var(--nf-surface) 55%,var(--nf-surface-light));
  --nfa-card-hi:var(--nf-surface-light);
  --nfa-sel:color-mix(in oklab,var(--nf-surface-soft) 70%,var(--nf-surface-muted));
  --nfa-chip:var(--nf-surface-muted);
  --nfa-well:color-mix(in oklab,var(--nf-surface-muted) 70%,var(--nf-page-lo));
  --nfa-edge:rgba(255,255,255,.55);
  --nfa-lift:0 1px 2px rgba(55,53,50,.04),0 6px 18px rgba(55,53,50,.03);
  --nfa-live:#7C9580;             /* the one colour: a muted sage dot while searching */
  --nfa-r:16px;
}
:root[data-theme="dark"]{
  --nfa-page:#18191C;
  --nfa-shell:#212326;
  --nfa-side:#1E2023;
  --nfa-card:#27292C;
  --nfa-card-hi:#2E3033;
  --nfa-sel:#2C2E31;
  --nfa-chip:#313336;
  --nfa-well:#2F3134;
  --nfa-edge:rgba(255,255,255,.05);
  --nfa-lift:0 1px 2px rgba(0,0,0,.2);
  --nfa-live:#8FA592;
}

/* page + reset of the site-wide rules this screen doesn't want */
body.nfa{--nf-haze:.08;margin:0;min-height:100vh;background:var(--nfa-page);color:var(--nf-text);
  font:400 13.5px/1.4 "Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  padding:clamp(12px,6.2svh,64px) clamp(12px,4.3vw,66px) clamp(12px,5.4svh,56px);
  transition:background-color var(--nf-theme-dur) ease,color var(--nf-theme-dur) ease}
body.nfa:after{display:none}
.nfa a{color:inherit;text-decoration:none}
.nfa h1,.nfa h2,.nfa h3,.nfa p{margin:0;max-width:none}
.nfa button{font:inherit;color:inherit}
.nfa :focus-visible{outline:1.5px solid var(--nf-text);outline-offset:2px}
.nfa-i{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.nfa-i .fill{fill:currentColor;stroke:none}

/* ---- the window ---- */
.nfa-shell{position:relative;isolation:isolate;display:grid;grid-template-columns:clamp(200px,15.8%,236px) minmax(0,1fr);
  max-width:1480px;min-height:calc(100svh - clamp(12px,6.2svh,64px) - clamp(12px,5.4svh,56px));margin:0 auto;overflow:hidden;
  border-radius:34px;background:var(--nfa-shell);border:1px solid var(--nf-glass-edge);
  box-shadow:0 30px 80px var(--nf-shadow),inset 0 1px 0 var(--nf-inner)}

/* ---- sidebar ---- */
.nfa-side{position:relative;z-index:2;display:flex;flex-direction:column;min-width:0;background:var(--nfa-side)}
.nfa-brand{display:flex;align-items:center;gap:24px;height:79px;margin:0 18px;padding:0 16px;border-bottom:1px solid var(--nf-hair)}
.nfa-brand .nf-logo{width:26px;height:26px}
.nfa .nf-wordmark{font-size:10.5px;letter-spacing:.28em}
body.nfa .nfa-nav{display:flex;flex-direction:column;align-items:stretch;gap:1px;padding:18px 16px 0}
body.nfa .nfa-nav a{display:flex;align-items:center;gap:15px;height:42px;padding:0 20px;border-radius:12px;font-size:13.5px;color:var(--nf-text);
  transition:background-color .22s var(--nf-ease),color .22s var(--nf-ease),box-shadow .22s var(--nf-ease)}
body.nfa .nfa-nav a:after{display:none}
.nfa-nav a .nfa-i{opacity:.75}
body.nfa .nfa-nav a:hover{background:color-mix(in oklab,var(--nfa-card) 60%,transparent);color:var(--nf-text)}
body.nfa .nfa-nav a[aria-current="page"]{background:var(--nfa-card);color:var(--nf-text-strong);box-shadow:var(--nfa-lift)}
.nfa-sep{height:1px;margin:14px 20px;background:var(--nf-hair)}

.nfa-status{position:relative;margin:auto 16px 10px;padding:20px 20px 0;border-radius:var(--nfa-r);overflow:hidden;
  background:color-mix(in oklab,var(--nfa-card) 80%,transparent);border:1px solid var(--nfa-edge)}
.nfa-status-label{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--nf-text)}
.nfa-status-label i{width:7px;height:7px;border-radius:50%;background:var(--nf-text-faint)}
.nfa-status[data-state="searching"] .nfa-status-label i{background:var(--nfa-live);box-shadow:0 0 0 3px color-mix(in oklab,var(--nfa-live) 18%,transparent)}
.nfa-status-text{margin-top:8px!important;font-size:12.5px;line-height:1.4;color:var(--nf-text-secondary)}
.nfa-status-land{position:relative;height:70px;margin:14px -20px 0;pointer-events:none;
  -webkit-mask-image:linear-gradient(transparent,#000 55%);mask-image:linear-gradient(transparent,#000 55%)}
.nfa-status-land .nf-land-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 38%;--nf-land-opacity:.75}

.nfa-me{position:relative;margin:0 16px 14px}
body.nfa .nfa-me summary{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:10px;border-radius:12px;cursor:pointer;list-style:none;font:inherit;letter-spacing:0;transition:background-color .22s var(--nf-ease)}
body.nfa .nfa-me summary:after{display:none}
body.nfa .nfa-me summary:hover{color:inherit}
.nfa-me summary::-webkit-details-marker{display:none}
.nfa-me summary:hover,.nfa-me[open] summary{background:color-mix(in oklab,var(--nfa-card) 60%,transparent)}
.nfa-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:color-mix(in oklab,var(--nf-ink-muted) 85%,var(--nfa-side));font-size:11px;font-weight:500;letter-spacing:.04em;color:var(--nf-on-control)}
.nfa-me-text{display:flex;flex-direction:column;min-width:0;flex:1}
.nfa-me-text b{font-weight:400;font-size:12.5px;color:var(--nf-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfa-me-text span{font-size:11px;color:var(--nf-text-muted)}
.nfa-me summary .nfa-i{width:14px;height:14px;color:var(--nf-text-muted);transition:transform .25s var(--nf-ease)}
.nfa-me:not([open]) summary .nfa-i{transform:rotate(180deg)}
.nfa-me-menu{position:absolute;left:0;right:0;bottom:calc(100% + 6px);display:flex;flex-direction:column;padding:6px;border-radius:14px;
  background:var(--nfa-card-hi);border:1px solid var(--nfa-edge);box-shadow:0 18px 40px var(--nf-shadow)}
.nfa-me-menu a,.nfa-me-menu button{display:block;width:100%;padding:9px 12px;border:0;border-radius:9px;background:none;text-align:left;font-size:12.5px;color:var(--nf-text-secondary);cursor:pointer}
.nfa-me-menu a:hover,.nfa-me-menu button:hover{background:var(--nfa-sel);color:var(--nf-text)}
.nfa-me-menu form{margin:0}
.nfa-when-dark,:root[data-theme="dark"] .nfa-when-light{display:none}
:root[data-theme="dark"] .nfa-when-dark{display:inline}

/* ---- workspace ---- */
.nfa-main{position:relative;z-index:1;min-width:0;padding:53px 22px 20px 50px;display:flex;flex-direction:column}
.nfa-mobilebar{display:none}
.nfa-land{position:absolute;z-index:-1;top:0;right:0;width:56%;height:250px;pointer-events:none;--nf-land-opacity:.5;
  -webkit-mask-image:radial-gradient(ellipse 58% 70% at 80% 44%,#000 25%,transparent 100%);
          mask-image:radial-gradient(ellipse 58% 70% at 80% 44%,#000 25%,transparent 100%)}
:root[data-theme="dark"] .nfa-land{--nf-land-opacity:.8}
.nfa-land .nf-land-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 30%}
/* messages after an action: toasts at the bottom centre; success fades on its own (appshell.js), errors stay until clicked */
.nfa-toasts{position:fixed;z-index:40;left:50%;bottom:24px;display:flex;flex-direction:column;align-items:center;gap:8px;width:max-content;max-width:calc(100vw - 32px);transform:translateX(-50%)}
.nfa-flash{padding:11px 18px;border-radius:14px;background:var(--nfa-card-hi);border:1px solid var(--nfa-edge);box-shadow:0 18px 40px var(--nf-shadow);
  font-size:13px;color:var(--nf-text);cursor:pointer;animation:nfa-toast .4s var(--nf-ease) both;transition:opacity .4s var(--nf-ease),transform .4s var(--nf-ease)}
.nfa-flash.error{border-color:color-mix(in oklab,var(--nf-text) 28%,transparent)}
.nfa-flash.dev{border-style:dashed;font-size:12px;word-break:break-all;color:var(--nf-text-muted)}
.nfa-flash.is-gone{opacity:0;transform:translateY(6px)}
@keyframes nfa-toast{from{opacity:0;transform:translateY(8px)}}

.nfa-eyebrow{font-size:10px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--nf-text-faint)}
body.nfa .nfa-h1{margin-top:14px;font:400 clamp(30px,2.65vw,40px)/1.08 "Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.028em;color:var(--nf-text-strong)}
.nfa-sub{margin-top:8px!important;font-size:15.5px;color:var(--nf-text-secondary)}

.nfa-tools{position:absolute;top:20px;right:22px;display:flex;align-items:center;gap:16px}
.nfa-search{display:flex;align-items:center;gap:14px;width:clamp(220px,23vw,322px);height:42px;margin:0;padding:0 20px 0 22px;border-radius:21px;
  background:var(--nfa-card);border:1px solid var(--nfa-edge);color:var(--nf-text-muted);transition:background-color .22s var(--nf-ease)}
.nfa-search:focus-within{background:var(--nfa-card-hi)}
body.nfa .nfa-search input{flex:1;min-width:0;width:auto;height:100%;padding:0;border:0;border-radius:0;background:none;font-family:inherit;font-size:12.5px;color:var(--nf-text)}
.nfa-search input::placeholder{color:var(--nf-text-muted)}
.nfa-search input:focus{outline:none}
.nfa-search:focus-within{outline:1.5px solid var(--nf-text);outline-offset:2px}
.nfa-round{position:relative;display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border-radius:50%;cursor:pointer;
  background:var(--nfa-card);border:1px solid var(--nfa-edge);color:var(--nf-text-secondary);
  transition:background-color .22s var(--nf-ease),color .22s var(--nf-ease),transform .22s var(--nf-ease)}
.nfa-round:hover{background:var(--nfa-card-hi);color:var(--nf-text);transform:translateY(-1px)}
.nfa-bell-dot{position:absolute;top:10px;right:11px;width:6px;height:6px;border-radius:50%;background:var(--nf-text);box-shadow:0 0 0 2px var(--nfa-card)}

/* cards: raised a shade, nearly borderless */
.nfa-card{position:relative;border-radius:var(--nfa-r);background:var(--nfa-card);border:1px solid var(--nfa-edge);box-shadow:var(--nfa-lift)}
a.nfa-card{transition:background-color .22s var(--nf-ease),transform .22s var(--nf-ease)}
a.nfa-card:hover{background:var(--nfa-card-hi);transform:translateY(-1px)}
.nfa-well{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:var(--nfa-well);color:var(--nf-text-secondary)}
.nfa-well-lg{width:46px;height:46px}
.nfa-well .nfa-i{width:19px;height:19px}
.nfa-well.plain{background:none;width:auto;margin:0 -2px 0 0}

/* ---- top status widgets ---- */
.nfa-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}
.nfa-metric{display:flex;align-items:flex-start;gap:18px;min-height:131px;padding:20px 22px 20px 20px;overflow:hidden}
.nfa-metric-body{display:flex;flex-direction:column;min-width:0}
.nfa-metric-title{padding-top:2px;font-size:13px;color:var(--nf-text)}
.nfa-metric-value{margin-top:10px;font-size:26px;font-weight:400;line-height:1;letter-spacing:-.02em;color:var(--nf-text);font-variant-numeric:tabular-nums}
.nfa-metric-note{margin-top:14px;font-size:12px;color:var(--nf-text-muted)}
.nfa-bars{position:absolute;right:22px;bottom:21px;display:flex;align-items:flex-end;gap:5px;height:30px}
.nfa-bars i{width:3px;border-radius:2px;background:color-mix(in oklab,var(--nf-text-muted) 55%,transparent)}
.nfa-bars i:last-child{background:var(--nf-text-secondary)}
.nfa-bars i.zero{background:var(--nf-hair)}
.nfa-market{flex-wrap:wrap;align-content:space-between}
.nfa-market-state{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:13px;color:var(--nf-text)}
.nfa-market-state i{width:4px;height:4px;border-radius:50%;background:var(--nf-text-muted)}
.nfa-market[data-state="searching"] .nfa-market-state i{background:var(--nfa-live)}
.nfa-market-text{flex-basis:100%;max-width:250px;font-size:12.5px;line-height:1.4;color:var(--nf-text-muted)}

/* ---- primary: latest opportunities + the selected one ---- */
.nfa-primary{display:grid;grid-template-columns:minmax(0,65.5fr) minmax(0,34.5fr);gap:18px;margin-top:20px;flex:1}
.nfa-list{display:flex;flex-direction:column;padding:22px 14px 12px;min-height:419px}
.nfa-list-head{display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 12px}
.nfa-list-head h2{font-size:19px;font-weight:400;letter-spacing:-.012em;color:var(--nf-text-strong)}
.nfa-link{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--nf-text-secondary);transition:color .2s var(--nf-ease)}
.nfa-link .nfa-i{width:13px;height:13px;transition:transform .25s var(--nf-ease)}
.nfa-link:hover{color:var(--nf-text)}
.nfa-link:hover .nfa-i{transform:translateX(2px)}
.nfa-rows{display:flex;flex-direction:column;margin-top:16px}
.nfa-row{position:relative;display:grid;grid-template-columns:52px minmax(0,1.3fr) minmax(0,1.55fr) minmax(0,.7fr) 54px 14px;align-items:center;gap:18px;
  min-height:70px;padding:9px 14px 9px 16px;border-radius:12px;transition:background-color .22s var(--nf-ease)}
.nfa-row+.nfa-row:before{content:"";position:absolute;left:16px;right:16px;top:0;height:1px;background:var(--nf-hair);transition:opacity .22s}
.nfa-row:hover{background:color-mix(in oklab,var(--nfa-sel) 55%,transparent)}
.nfa-row[aria-current="true"]{background:var(--nfa-sel)}
.nfa-row:hover:before,.nfa-row[aria-current="true"]:before,.nfa-row:hover+.nfa-row:before,.nfa-row[aria-current="true"]+.nfa-row:before{opacity:0}
.nfa-thumb{display:block;width:52px;height:52px;border-radius:7px;object-fit:cover;object-position:top;background:var(--nfa-well)}
.nfa-thumb-land{background:url(/img/landscape.webp) var(--pos,50% 50%)/520% auto no-repeat var(--nfa-well)}
:root[data-theme="dark"] .nfa-thumb-land{background-image:url(/img/landscape-night.webp)}
.nfa-row-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.nfa-row-main b{font-size:15px;font-weight:500;letter-spacing:-.005em;color:var(--nf-text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfa-row-main span,.nfa-row-place{font-size:12.5px;color:var(--nf-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfa-chips{display:flex;gap:10px;min-width:0;overflow:hidden}
.nfa-chip{flex:none;padding:5px 10px;border-radius:7px;background:var(--nfa-chip);border:1px solid var(--nfa-edge);font-size:12px;color:var(--nf-text-secondary);white-space:nowrap}
.nfa-row-when{font-size:11.5px;color:var(--nf-text-faint);text-align:right;white-space:nowrap}
.nfa-row>.nfa-i{width:13px;height:13px;color:var(--nf-text-faint);transition:transform .22s var(--nf-ease)}
.nfa-row:hover>.nfa-i{transform:translateX(2px)}
.nfa-empty{margin:auto;max-width:360px;padding:40px 0;text-align:center}
.nfa-empty p:first-child{font-size:15px;color:var(--nf-text)}
.nfa-empty p+p{margin-top:8px!important;font-size:12.5px;line-height:1.5;color:var(--nf-text-muted)}

.nfa-preview{display:flex;flex-direction:column;padding:12px;min-height:419px}
.nfa-preview-item,.nfa-preview-empty{display:flex;flex-direction:column;flex:1;min-height:0}
.nfa-preview-item[hidden]{display:none}
.nfa-preview-item.is-in{animation:nfa-swap .32s var(--nf-ease) both}
@keyframes nfa-swap{from{opacity:0;transform:translateY(4px)}}
.nfa-shot{position:relative;height:107px;flex:none;border-radius:12px;overflow:hidden;background:var(--nfa-well)}
.nfa-shot-img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.nfa-shot .nfa-thumb-land{background-size:180% auto}
.nfa-pill{position:absolute;top:12px;right:12px;padding:4px 10px;border-radius:99px;background:var(--nfa-card-hi);font-size:9.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--nf-text)}
.nfa-preview-body{display:flex;flex-direction:column;flex:1;padding:12px 8px 6px}
.nfa-preview-empty .nfa-code{margin:18px 8px 0!important}
.nfa-preview-empty .nfa-preview-meta{margin:8px 8px 0!important;line-height:1.5}
.nfa-code{font-size:9.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--nf-text-faint)}
body.nfa .nfa-preview-name{margin-top:8px;font-size:19px;font-weight:400;letter-spacing:-.012em;color:var(--nf-text-strong)}
.nfa-preview-meta{margin-top:5px!important;font-size:13px;color:var(--nf-text-muted)}
.nfa-thesis{margin-top:12px!important;font-size:13px;line-height:1.45;color:var(--nf-text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nfa-signals{display:grid;grid-template-columns:1fr 1fr;gap:14px 0;margin-top:18px}
.nfa-signal{display:flex;align-items:flex-start;gap:12px;min-width:0;padding-right:10px}
.nfa-signal:nth-child(even){padding:0 0 0 14px;border-left:1px solid var(--nf-hair)}
.nfa-signal .nfa-i{margin-top:1px;color:var(--nf-text-muted)}
.nfa-signal>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.nfa-signal b{font-weight:400;font-size:12.5px;color:var(--nf-text)}
.nfa-signal span span{font-size:11.5px;color:var(--nf-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfa-actions{display:flex;align-items:center;gap:18px;margin-top:auto;padding-top:16px}
.nfa-actions form{margin:0}
.nfa-cta{flex:1;display:flex;align-items:center;justify-content:space-between;height:42px;padding:0 18px 0 24px;border-radius:13px;
  background:var(--nf-control);color:var(--nf-on-control)!important;font-size:13px;
  transition:background-color .22s var(--nf-ease),transform .22s var(--nf-ease)}
.nfa-cta:hover{background:var(--nf-control-hover);transform:translateY(-1px)}
.nfa-cta .nfa-i{width:14px;height:14px}

/* ---- bottom widgets ---- */
.nfa-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:17px}
.nfa-summary{display:flex;align-items:center;gap:22px;min-height:93px;padding:14px 26px 14px 18px}
.nfa-summary-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.nfa-summary-label{font-size:11.5px;color:var(--nf-text-muted)}
.nfa-summary-1{font-size:13.5px;color:var(--nf-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfa-summary-2{font-size:13px;color:var(--nf-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfa-summary>.nfa-i{width:13px;height:13px;color:var(--nf-text-faint);transition:transform .22s var(--nf-ease)}
.nfa-summary:hover>.nfa-i{transform:translateX(2px)}

/* ---- smaller laptops: the same screen, a little tighter ---- */
@media (max-width:1280px){
  .nfa-main{padding:52px 18px 18px 34px}
  .nfa-metrics,.nfa-primary,.nfa-bottom{gap:14px}
  .nfa-row{grid-template-columns:48px minmax(0,1.5fr) minmax(0,1.3fr) 48px 14px;gap:14px}
  .nfa-row-place{display:none}
  .nfa-thumb{width:48px;height:48px}
}
/* ---- tablets: a narrow icon sidebar, widgets in a 2x2 ---- */
@media (max-width:1100px){
  body.nfa{padding:16px}
  .nfa-shell{grid-template-columns:76px minmax(0,1fr);border-radius:28px;min-height:calc(100svh - 32px)}
  .nfa-brand{justify-content:center;margin:0 12px;padding:0}
  .nfa-brand .nf-wordmark,.nfa-nav a span,.nfa-status-text,.nfa-status-land,.nfa-me-text,.nfa-me summary .nfa-i{display:none}
  .nfa-nav{padding:14px 10px 0}
  body.nfa .nfa-nav a{justify-content:center;padding:0}
  .nfa-sep{margin:12px 14px}
  .nfa-status{margin:auto 12px 8px;padding:14px 0;display:grid;place-items:center}
  .nfa-status-label{font-size:0}
  .nfa-me{margin:0 12px 12px}
  .nfa-me summary{justify-content:center;padding:6px}
  .nfa-me-menu{right:auto;width:180px}
  .nfa-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nfa-metric{min-height:118px}
  .nfa-primary{grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}
  .nfa-chips .nfa-chip+.nfa-chip{display:none}
  .nfa-summary{gap:14px;padding:12px 16px 12px 14px}
  .nfa-well-lg{width:40px;height:40px}
}
/* ---- phones: no sidebar squeeze; a drawer, one column, opportunities first ---- */
@media (max-width:760px){
  body.nfa{padding:8px}
  .nfa-shell{display:block;border-radius:24px;min-height:calc(100svh - 16px)}
  .nfa-side{position:fixed;z-index:20;top:8px;bottom:8px;left:8px;width:min(280px,82vw);border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.25);
    transform:translateX(calc(-100% - 16px));transition:transform .32s var(--nf-ease)}
  .nfa-shell.is-drawer .nfa-side{transform:none}
  .nfa-brand .nf-wordmark,.nfa-nav a span,.nfa-me summary .nfa-i{display:inline}
  .nfa-status-text,.nfa-status-land{display:block}
  .nfa-me-text{display:flex}
  .nfa-brand{justify-content:flex-start;margin:0 18px;padding:0 16px}
  .nfa-nav{padding:18px 16px 0}
  body.nfa .nfa-nav a{justify-content:flex-start;padding:0 20px}
  .nfa-status{display:block;place-items:normal;margin:auto 16px 10px;padding:18px 18px 0}
  .nfa-status-label{justify-content:flex-start;font-size:13px}
  .nfa-me summary{justify-content:flex-start;padding:10px}
  .nfa-me-menu{right:0;width:auto}
  .nfa-main{padding:14px 16px 20px}
  .nfa-mobilebar{display:flex;align-items:center;gap:14px;margin-bottom:26px}
  .nfa-brand-sm .nf-wordmark{font-size:10px}
  .nfa-tools{top:14px;right:16px}
  .nfa-search{display:none}
  .nfa-land{width:100%;height:220px}
  body.nfa .nfa-h1{margin-top:16px;font-size:30px}
  .nfa-sub{font-size:14.5px}
  .nfa-metrics{display:flex;gap:12px;margin:24px -16px 0;padding:0 16px 4px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  .nfa-metrics::-webkit-scrollbar{display:none}
  .nfa-metric{flex:0 0 78%;scroll-snap-align:start;min-height:112px}
  .nfa-primary{display:flex;flex-direction:column;gap:14px}
  .nfa-list,.nfa-preview{min-height:0}
  .nfa-list{padding:18px 8px 8px}
  .nfa-row{grid-template-columns:44px minmax(0,1fr) auto 12px;gap:14px;padding:10px 10px}
  .nfa-chips{display:none}
  .nfa-thumb{width:44px;height:44px}
  .nfa-preview:not(.is-chosen){display:none}
  .nfa-actions{padding-top:18px}
  .nfa-bottom{grid-template-columns:1fr;gap:12px;margin-top:14px}
  .nfa-summary{min-height:80px;padding:12px 20px 12px 14px;gap:16px}
}
@media (prefers-reduced-motion:reduce){
  html:not([data-motion="on"]) .nfa-preview-item.is-in{animation:none!important}
}

/* ================= Sign in / sign up (portal/templates/auth_base.html) =================
   The way in: one rounded window like the homepage hero, the form on the left and the fog landscape dissolving in
   from the right, carrying a line from the homepage story. Fields and buttons are the app's own. */
body.nfa-auth{display:grid;align-items:center}
.nfa-auth-shell{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);width:100%;max-width:1240px;
  min-height:min(calc(100svh - clamp(12px,6.2svh,64px) - clamp(12px,5.4svh,56px)),880px);margin:0 auto;overflow:hidden;
  border-radius:34px;background:var(--nf-surface);border:1px solid var(--nf-glass-edge);box-shadow:0 30px 80px var(--nf-shadow),inset 0 1px 0 var(--nf-inner)}
.nfa-auth-panel{position:relative;z-index:1;display:flex;flex-direction:column;min-width:0;padding:30px 50px 28px 56px}
.nfa-auth-top{display:flex;align-items:center;justify-content:space-between}
.nfa-brand-link{display:inline-flex;align-items:center;gap:24px}
.nfa-brand-link .nf-logo{width:28px;height:28px}
.nfa-brand-link .nf-wordmark{display:inline}
.nfa-round svg{width:16px;height:16px}
.nfa-auth-body{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;max-width:390px;margin:0 auto;padding:44px 0}
body.nfa .nfa-auth-h1{margin-top:16px;font:400 clamp(30px,2.6vw,38px)/1.08 "Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.028em;color:var(--nf-text-strong)}
.nfa-auth-sub{margin-top:10px!important;font-size:15px;line-height:1.5;color:var(--nf-text-secondary)}

.nfa-sso{display:grid;gap:10px;margin-top:28px}
.nfa-sso .nfa-btn-soft{gap:11px}
.nfa-g{flex:none;width:17px;height:17px}
.nfa-btn-soft{display:flex;align-items:center;justify-content:center;height:48px;border-radius:14px;background:var(--nfa-card);border:1px solid var(--nfa-edge);
  box-shadow:var(--nfa-lift);font-size:14px;color:var(--nf-text);transition:background-color .22s var(--nf-ease),transform .22s var(--nf-ease)}
.nfa-btn-soft:hover{background:var(--nfa-card-hi);transform:translateY(-1px)}
.nfa-or{display:flex;align-items:center;gap:14px;margin:24px 0 -4px!important;font-size:10px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--nf-text-faint)}
.nfa-or:before,.nfa-or:after{content:"";flex:1;height:1px;background:var(--nf-hair)}

.nfa-form{display:flex;flex-direction:column;gap:16px;margin:28px 0 0}
.nfa-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.nfa .nfa-field-label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12.5px;font-weight:400;color:var(--nf-text-secondary)}
body.nfa .nfa-input{width:100%;height:48px;padding:0 16px;border-radius:14px;background:var(--nfa-card);
  border:1px solid color-mix(in oklab,var(--nf-ink-muted) 24%,transparent);box-shadow:inset 0 1px 0 var(--nf-inner);
  font:400 15px/1 "Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--nf-text);
  transition:border-color .2s var(--nf-ease),background-color .2s var(--nf-ease)}
body.nfa .nfa-input:hover{border-color:color-mix(in oklab,var(--nf-ink-muted) 40%,transparent)}
body.nfa .nfa-input:focus,body.nfa .nfa-input:focus-visible{outline:none;background:var(--nfa-card-hi);border-color:var(--nf-text-muted);
  box-shadow:0 0 0 3px color-mix(in oklab,var(--nf-text) 12%,transparent)}
.nfa-hint{font-size:11.5px;line-height:1.4;color:var(--nf-text-muted)}
body.nfa .nfa-btn{display:flex;align-items:center;justify-content:center;gap:10px;height:50px;margin-top:8px;padding:0 22px;border:0;border-radius:14px;cursor:pointer;
  background:var(--nf-control);color:var(--nf-on-control);font:500 14px/1 "Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition:background-color .22s var(--nf-ease),transform .22s var(--nf-ease)}
body.nfa .nfa-btn:hover{background:var(--nf-control-hover);transform:translateY(-1px)}
.nfa-btn .nfa-i{width:15px;height:15px}

.nfa-auth-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:22px!important;font-size:13px;color:var(--nf-text-muted)}
.nfa-auth-links a,.nfa-auth-legal a{color:var(--nf-text-secondary);border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.nfa-auth-links a:hover,.nfa-auth-legal a:hover{color:var(--nf-text);border-color:var(--nf-leader)}
.nfa-auth-legal{margin-top:16px!important;font-size:12px;line-height:1.5;color:var(--nf-text-muted)}
.nfa-auth-legal a{border-color:var(--nf-leader)}
.nfa-note{margin:0 0 18px!important;padding:11px 14px;border-radius:12px;background:var(--nfa-card);border:1px solid var(--nfa-edge);font-size:13px;line-height:1.45;color:var(--nf-text-secondary)}
.nfa-note.error{color:var(--nf-text-strong);border-color:color-mix(in oklab,var(--nf-text) 28%,transparent)}
.nfa-note.dev{border-style:dashed;font-size:12px;word-break:break-all;color:var(--nf-text-muted)}

body.nfa .nfa-auth-foot{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px 22px;padding:0;background:none;border:0;font-size:11.5px;color:var(--nf-text-faint)}
.nfa-auth-foot span{margin-right:auto;font-size:10.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase}
.nfa-auth-foot a{color:var(--nf-text-muted);transition:color .2s}
.nfa-auth-foot a:hover{color:var(--nf-text)}

/* the landscape half: reaches a little under the form and dissolves into it, so there's no seam */
.nfa-auth-scene{position:relative;margin-left:-16%;pointer-events:none;--nf-land-opacity:.62;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 34%);mask-image:linear-gradient(90deg,transparent 0%,#000 34%)}
:root[data-theme="dark"] .nfa-auth-scene{--nf-land-opacity:.85}
.nfa-auth-scene .nf-land-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 42%}
.nfa-auth-line{position:absolute;left:30%;right:10%;bottom:11%}
.nfa-auth-quote{margin-top:14px!important;font-size:clamp(24px,2.1vw,32px);line-height:1.1;letter-spacing:-.025em;color:var(--nf-text)}

@media (max-width:1000px){
  .nfa-auth-shell{grid-template-columns:minmax(0,1fr) minmax(0,.7fr)}
  .nfa-auth-panel{padding:26px 34px 24px 38px}
  .nfa-auth-line{left:24%}
}
@media (max-width:760px){
  body.nfa-auth{align-items:start}
  .nfa-auth-shell{display:flex;flex-direction:column;border-radius:26px;min-height:calc(100svh - 16px)}
  .nfa-auth-scene{order:-1;height:150px;flex:none;margin:0 0 -90px;
    -webkit-mask-image:linear-gradient(180deg,#000 30%,transparent);mask-image:linear-gradient(180deg,#000 30%,transparent)}
  .nfa-auth-line{display:none}
  .nfa-auth-panel{flex:1;padding:20px 22px 22px}
  .nfa-auth-body{max-width:none;padding:36px 0 30px;justify-content:flex-start}
  .nfa-form-pair{grid-template-columns:1fr}
}

/* ================= Your search (portal/templates/profile.html) =================
   Laid out like the Overview: the choices as quiet cards on the left, a sticky panel on the right with the live
   availability hint and Save. Choices are pills (.nfa-choice; the dashboard's status badge is .nfa-pill): a lighter raised pill with a filled dot when chosen. */
.nfa-profile{display:grid;grid-template-columns:minmax(0,65.5fr) minmax(0,34.5fr);gap:18px;align-items:start;margin-top:32px}
.nfa-profile-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.nfa-sec{padding:24px 26px 26px}
.nfa-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.nfa-sec-head h2{font-size:15px;font-weight:500;letter-spacing:-.005em;color:var(--nf-text-strong)}
.nfa-sec-count{font-size:11.5px;color:var(--nf-text-muted);font-variant-numeric:tabular-nums}
.nfa-sec-note{margin-top:4px!important;font-size:12.5px;color:var(--nf-text-muted)}
.nfa-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.nfa-choice{position:relative;display:inline-flex;cursor:pointer}
body.nfa .nfa-choice{flex-direction:row;gap:0;margin:0;font-size:inherit;font-weight:400;color:inherit}
.nfa-choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.nfa-choice span{display:inline-flex;align-items:center;gap:9px;padding:8px 14px;border-radius:99px;background:var(--nfa-chip);border:1px solid var(--nfa-edge);
  font-size:13px;color:var(--nf-text-secondary);transition:background-color .2s var(--nf-ease),color .2s var(--nf-ease),border-color .2s var(--nf-ease)}
.nfa-choice span:before{content:"";width:6px;height:6px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--nf-text-faint);transition:background-color .2s,box-shadow .2s}
.nfa-choice:hover span{background:var(--nfa-card-hi);color:var(--nf-text)}
.nfa-choice input:checked+span{background:var(--nfa-card-hi);border-color:color-mix(in oklab,var(--nf-text) 30%,transparent);color:var(--nf-text-strong);box-shadow:var(--nfa-lift)}
.nfa-choice input:checked+span:before{background:var(--nf-text);box-shadow:none}
.nfa-choice input:disabled+span{opacity:.45;cursor:not-allowed}
.nfa-choice input:focus-visible+span{outline:1.5px solid var(--nf-text);outline-offset:2px}
.nfa-sec-field{margin-top:22px}
.nfa-sec-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
body.nfa .nfa-textarea{height:auto;min-height:88px;padding:13px 16px;line-height:1.5;resize:vertical;font-size:14.5px}
.nfa-profile-side{position:sticky;top:20px;display:flex;flex-direction:column;gap:14px}
.nfa-avail{padding:22px 24px}
.nfa-avail-rows{margin-top:14px}
.nfa-avail-empty{font-size:13px;line-height:1.5;color:var(--nf-text-muted)}
.nfa-avail-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--nf-hair);font-size:13px;color:var(--nf-text-secondary)}
.nfa-avail-row:last-child{border-bottom:1px solid var(--nf-hair)}
.nfa-avail-row b{font-weight:500;color:var(--nf-text)}
.nfa-save{display:flex;align-items:center;gap:20px}
.nfa-save .nfa-btn{flex:1;margin:0}
@media (max-width:1100px){
  .nfa-profile{grid-template-columns:1fr}
  .nfa-profile-side{position:static}
}
@media (max-width:760px){
  .nfa-sec{padding:20px 18px 22px}
  .nfa-sec-pair{grid-template-columns:1fr}
}

/* ================= Finds (portal/templates/finds.html) =================
   This month's allowance and your pipeline across the top (the pipeline drawn like the homepage metrics: a hairline
   and a dot per stage), the filter as the landing page's capsule, and the Finds as the Overview's rows plus a stage. */
.nfa-finds-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.6fr);gap:18px;margin-top:28px}
.nfa-month,.nfa-pipe{padding:20px 22px 22px}
.nfa-month-value{display:flex;align-items:baseline;gap:8px;margin-top:14px!important}
.nfa-month-value b{font-size:26px;font-weight:400;line-height:1;letter-spacing:-.02em;color:var(--nf-text-strong);font-variant-numeric:tabular-nums}
.nfa-month-value span{font-size:13px;color:var(--nf-text-muted)}
.nfa-meter{height:4px;margin-top:14px;border-radius:2px;background:var(--nf-hair);overflow:hidden}
.nfa-meter i{display:block;height:100%;border-radius:2px;background:var(--nf-text-secondary)}
.nfa-month-note{margin-top:12px!important;font-size:12.5px;line-height:1.5;color:var(--nf-text-muted)}
.nfa-month-note .nfa-link .nfa-i{width:12px;height:12px}
.nfa-pipe-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 0;padding:0;list-style:none}
.nfa-pipe-stages li{position:relative;padding:4px 0 6px 16px}
.nfa-pipe-stages li:before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:linear-gradient(var(--nf-leader) 55%,transparent)}
.nfa-pipe-stages li:after{content:"";position:absolute;left:-2px;top:6px;width:5px;height:5px;border-radius:50%;background:var(--nf-text-faint)}
.nfa-pipe-stages b{display:block;font-size:22px;font-weight:400;line-height:1.1;letter-spacing:-.02em;color:var(--nf-text-strong);font-variant-numeric:tabular-nums}
.nfa-pipe-stages span{display:block;margin-top:6px;font-size:9.5px;font-weight:500;letter-spacing:.15em;text-transform:uppercase;color:var(--nf-text-faint)}
.nfa-pipe-stages li.is-zero b{color:var(--nf-text-faint)}
.nfa-pipe-note{margin-top:14px!important;font-size:12.5px;color:var(--nf-text-secondary)}

body.nfa .nfa-tabs{display:inline-flex;flex-wrap:wrap;align-self:flex-start;gap:2px;margin-top:22px;padding:5px;border-radius:22px;background:var(--nfa-card);border:1px solid var(--nfa-edge)}
body.nfa .nfa-tabs a{display:inline-flex;align-items:center;gap:8px;padding:8px 15px;border-radius:17px;font-size:13px;color:var(--nf-text-secondary);transition:background-color .22s var(--nf-ease),color .22s var(--nf-ease)}
body.nfa .nfa-tabs a:after{display:none}
body.nfa .nfa-tabs a:hover{background:color-mix(in oklab,var(--nfa-card-hi) 70%,transparent);color:var(--nf-text)}
body.nfa .nfa-tabs a[aria-current="page"]{background:var(--nfa-card-hi);color:var(--nf-text-strong);box-shadow:var(--nfa-lift)}
.nfa-tabs a span{font-size:11px;color:var(--nf-text-muted);font-variant-numeric:tabular-nums}

.nfa-finds{margin-top:16px;min-height:0;padding-top:12px}
.nfa-finds .nfa-rows{margin-top:0}
.nfa-finds-q{display:flex;align-items:center;gap:14px;padding:0 16px 12px;font-size:13px;color:var(--nf-text-secondary)}
.nfa-frow{grid-template-columns:52px minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,.6fr) 100px 54px 14px}
.nfa-stage{justify-self:start;display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-radius:99px;background:var(--nfa-chip);border:1px solid var(--nfa-edge);font-size:11.5px;color:var(--nf-text-secondary);white-space:nowrap}
.nfa-stage:before{content:"";width:5px;height:5px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--nf-text-faint)}
.nfa-stage[data-status="new"]:before,.nfa-stage[data-status="won"]:before{background:var(--nf-text);box-shadow:none}
.nfa-stage[data-status="won"]{color:var(--nf-text-strong)}
.nfa-stage[data-status="passed"]{color:var(--nf-text-muted)}
@media (max-width:1280px){
  .nfa-frow{grid-template-columns:48px minmax(0,1.4fr) minmax(0,1.2fr) 100px 48px 14px}
}
@media (max-width:1100px){
  .nfa-finds-top{grid-template-columns:1fr}
  .nfa-frow{grid-template-columns:48px minmax(0,1.5fr) minmax(0,1fr) 96px 14px}
  .nfa-frow .nfa-row-when{display:none}
}
@media (max-width:760px){
  .nfa-pipe-stages{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:14px}
  body.nfa .nfa-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none}
  body.nfa .nfa-tabs::-webkit-scrollbar{display:none}
  body.nfa .nfa-tabs a{flex:none}
  .nfa-frow{grid-template-columns:44px minmax(0,1fr) auto 12px}
}

/* ================= One Find (portal/templates/find.html) =================
   The Overview's 65/35 split: why it was found, a way in, what we saw and your notes on the left; where you're up to
   and the contact details in a sticky panel on the right. */
.nfa-crumb{display:flex;align-items:center;gap:10px}
.nfa-crumb a{color:var(--nf-text-muted);transition:color .2s}
.nfa-crumb a:hover{color:var(--nf-text)}
.nfa-crumb span{color:var(--nf-text-ghost)}
.nfa-find-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.nfa-find{display:grid;grid-template-columns:minmax(0,65.5fr) minmax(0,34.5fr);gap:18px;align-items:start;margin-top:28px}
.nfa-find-main,.nfa-find-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.nfa-find-side{position:sticky;top:20px}

.nfa-shots{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;padding:12px}
.nfa-shots figure{position:relative;margin:0;border-radius:12px;overflow:hidden;background:var(--nfa-well)}
.nfa-shots img{display:block;width:100%;height:300px;object-fit:cover;object-position:top}
.nfa-shots figcaption{position:absolute;left:10px;bottom:10px;padding:3px 9px;border-radius:99px;background:var(--nfa-card-hi);font-size:9.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--nf-text)}
.nfa-shots .nfa-shot-desktop:only-child{grid-column:1/-1}

.nfa-find-thesis{margin-top:12px!important;font-size:16px;line-height:1.55;color:var(--nf-text)}
.nfa-find-signals{margin-top:22px}
.nfa-issues{margin:22px 0 0;padding:0;list-style:none;border-top:1px solid var(--nf-hair)}
.nfa-issues li{position:relative;padding:11px 0 11px 18px;border-bottom:1px solid var(--nf-hair);font-size:14px;line-height:1.45;color:var(--nf-text-secondary)}
.nfa-issues li:before{content:"";position:absolute;left:2px;top:19px;width:4px;height:4px;border-radius:50%;background:var(--nf-text-faint)}
.nfa-find-services{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px!important}
.nfa-find-services>span:first-child{margin-right:6px;font-size:12.5px;color:var(--nf-text-muted)}
.nfa-pitch{margin:14px 0 0;padding:16px 18px;border-radius:14px;background:var(--nfa-chip);border:1px solid var(--nfa-edge);font-size:15px;line-height:1.55;color:var(--nf-text)}
body.nfa .nfa-btn-soft{padding:0 18px;cursor:pointer;font-family:inherit}
.nfa-copy{height:40px;margin-top:12px;width:max-content}
.nfa-note-form{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.nfa-note-form .nfa-btn-soft{height:42px;align-self:flex-start}

.nfa-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
body.nfa .nfa-step{display:flex;align-items:center;gap:9px;height:40px;padding:0 14px;border-radius:12px;cursor:pointer;background:var(--nfa-chip);border:1px solid var(--nfa-edge);
  font-size:13px;color:var(--nf-text-secondary);transition:background-color .2s var(--nf-ease),color .2s var(--nf-ease)}
body.nfa .nfa-step:before{content:"";flex:none;width:6px;height:6px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--nf-text-faint)}
body.nfa .nfa-step:hover{background:var(--nfa-card-hi);color:var(--nf-text)}
body.nfa .nfa-step.is-on{background:var(--nfa-card-hi);border-color:color-mix(in oklab,var(--nf-text) 30%,transparent);color:var(--nf-text-strong);box-shadow:var(--nfa-lift)}
body.nfa .nfa-step.is-on:before{background:var(--nf-text);box-shadow:none}
.nfa-step-row{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px;margin-top:8px}
body.nfa .nfa-step-row .nfa-input{height:40px;border-radius:12px;font-size:13.5px}
body.nfa .nfa-select{appearance:none;-webkit-appearance:none;padding-right:34px;cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2382817D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='m7 10 5 5 5-5'/></svg>");
  background-repeat:no-repeat;background-position:right 12px center;background-size:14px}
.nfa-steps-note{margin-top:14px!important;line-height:1.5}
.nfa-contact dl{margin:12px 0 0}
.nfa-contact dl>div{padding:10px 0;border-top:1px solid var(--nf-hair)}
.nfa-contact dl>div:last-child{border-bottom:1px solid var(--nf-hair)}
.nfa-contact dt{font-size:11.5px;color:var(--nf-text-muted)}
.nfa-contact dd{margin:3px 0 0;font-size:13.5px;line-height:1.45;color:var(--nf-text);word-break:break-word}
.nfa-contact dd a{border-bottom:1px solid var(--nf-leader)}
.nfa-contact .nfa-sec-note{margin-top:12px!important;line-height:1.5}
.nfa-withdrawn{margin-top:28px;max-width:640px;font-size:14.5px;line-height:1.55;color:var(--nf-text-secondary)}
.nfa-withdrawn p+p{margin-top:14px!important}

@media (max-width:1100px){
  .nfa-find{grid-template-columns:1fr}
  .nfa-find-side{position:static;order:-1}
}
@media (max-width:760px){
  .nfa-shots{grid-template-columns:1fr 96px}
  .nfa-shots img{height:200px}
}

/* ================= Your account (portal/templates/account.html) =================
   The same 65/35 split: your plan, your search and orders on the left; your Finds and Settings on the right.
   Anything that needs you (confirm your email, a payment waiting) sits first, with a slightly stronger edge. */
.nfa-account{display:grid;grid-template-columns:minmax(0,65.5fr) minmax(0,34.5fr);gap:18px;align-items:start;margin-top:28px}
.nfa-account-main,.nfa-account-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.nfa-account-side{position:sticky;top:20px}
body.nfa .nfa-account .nfa-btn-soft{height:40px;width:max-content;font-size:13px}
.nfa-attn{border-color:color-mix(in oklab,var(--nf-text) 24%,transparent)}
.nfa-attn form{margin-top:16px}
.nfa-sec-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:20px}
.nfa-pay-list{margin:14px 0 0;padding:0;list-style:none}
.nfa-pay-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--nf-hair)}
.nfa-pay-list li>span{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12.5px;color:var(--nf-text-muted)}
.nfa-pay-list b{font-size:14px;font-weight:500;color:var(--nf-text-strong)}

.nfa-plan-top{display:flex;align-items:center;gap:14px;margin-top:14px}
.nfa-plan-name{font-size:26px;font-weight:400;line-height:1.1;letter-spacing:-.02em;color:var(--nf-text-strong)}
.nfa-plan .nfa-sec-note{margin-top:8px!important}
.nfa-plan-use{max-width:420px;margin-top:20px}
.nfa-plan-use .nfa-month-value{margin-top:0!important}
.nfa-plan-use .nfa-month-value b{font-size:20px}
.nfa-plan-use .nfa-meter{margin-top:10px}

.nfa-dl{margin:14px 0 0}
.nfa-dl>div{display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;padding:11px 0;border-top:1px solid var(--nf-hair)}
.nfa-dl>div:last-child{border-bottom:1px solid var(--nf-hair)}
.nfa-dl dt{font-size:12.5px;color:var(--nf-text-muted)}
.nfa-dl dd{margin:0;font-size:14px;line-height:1.5;color:var(--nf-text);word-break:break-word}
.nfa-dl dd a{border-bottom:1px solid var(--nf-leader)}
.nfa-tags{display:flex;flex-wrap:wrap;gap:6px}

.nfa-orders{display:flex;flex-direction:column;margin:12px -12px -8px}
.nfa-order{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:16px;padding:12px;border-radius:12px;transition:background-color .22s var(--nf-ease)}
.nfa-order+.nfa-order:before{content:"";position:absolute;left:12px;right:12px;top:0;height:1px;background:var(--nf-hair)}
.nfa-order:hover{background:color-mix(in oklab,var(--nfa-sel) 55%,transparent)}
.nfa-order-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.nfa-order-main b{font-size:14px;font-weight:500;color:var(--nf-text-strong)}
.nfa-order-main span{font-size:12.5px;color:var(--nf-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nfa-order>.nfa-i{width:13px;height:13px;color:var(--nf-text-faint);transition:transform .22s var(--nf-ease)}
.nfa-order:hover>.nfa-i{transform:translateX(2px)}
.nfa-stage[data-status="delivered"]:before{background:var(--nf-text);box-shadow:none}
.nfa-stage[data-status="cancelled"],.nfa-stage[data-status="canceled"]{color:var(--nf-text-muted)}
.nfa-empty-line{margin-top:14px!important;font-size:13.5px;color:var(--nf-text-secondary)}

/* Settings: each one a row with its control on the right; the reminders switch saves itself when JS is on */
.nfa-settings{outline:0;transition:border-color .5s var(--nf-ease),box-shadow .5s var(--nf-ease)}
.nfa-settings:target{border-color:color-mix(in oklab,var(--nf-text) 30%,transparent)}
.nfa-setting{display:flex;align-items:center;gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid var(--nf-hair)}
.nfa-setting-row{justify-content:space-between}
.nfa-switch-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.nfa-switch-text b{font-size:13.5px;font-weight:500;color:var(--nf-text-strong)}
.nfa-switch-text span{font-size:12px;line-height:1.45;color:var(--nf-text-muted)}
body.nfa .nfa-switch{position:relative;display:flex;flex-direction:row;align-items:flex-start;gap:16px;flex:1;margin:0;cursor:pointer;font-size:inherit;font-weight:400;color:inherit}
.nfa-switch input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.nfa-switch i{position:relative;flex:none;width:38px;height:22px;margin-top:1px;border-radius:11px;background:var(--nf-hair);border:1px solid var(--nfa-edge);transition:background-color .22s var(--nf-ease)}
.nfa-switch i:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--nfa-card-hi);box-shadow:0 1px 3px var(--nf-shadow);transition:transform .22s var(--nf-ease)}
.nfa-switch input:checked~i{background:var(--nf-text-secondary)}
.nfa-switch input:checked~i:after{transform:translateX(16px)}
.nfa-switch input:focus-visible~i{outline:1.5px solid var(--nf-text);outline-offset:2px}
.nfa-setting.is-auto .nfa-setting-save{display:none}
.nfa-setting-row .nfa-btn-soft{flex:none}
.nfa-help{margin-top:18px!important;line-height:1.5}
.nfa-help a{border-bottom:1px solid var(--nf-leader)}

@media (max-width:1100px){
  .nfa-account{grid-template-columns:1fr}
  .nfa-account-side{position:static}
}
@media (max-width:760px){
  .nfa-dl>div{grid-template-columns:1fr;gap:3px}
  .nfa-pay-list li{flex-direction:column;align-items:flex-start}
  .nfa-order{grid-template-columns:minmax(0,1fr) auto}
  .nfa-order>.nfa-i{display:none}
}
