/* /bulk-skip-tracing/ (round 7 v4, owner Oct 31: "the product and home page are 90% the same"). This page has its own
   job: one list from file to export, each step shown on Locate's own screen (ports in trace-ports.css) with a made-up
   list. The hero is New trace in List mode, where an upload plays once (bulk.js). Then four steps, words beside the
   screen, alternating sides; the export file runs full width. No label/value strips, no drawn art. */

/* Hero */
.bulk-hero{padding-bottom:0}
.bulk-hero-figure{max-width:1140px;margin:56px auto 0}
.bulk-hero-port{margin:0}
.bulk-hero-port .port-stage{padding:40px}
.bulk-hero-port .ap-window{min-height:560px}
.up-page{display:flex;flex-direction:column;width:100%;max-width:820px;margin:0 auto;padding:30px 40px 34px}
.ap-window .up-page{max-width:none}
.up-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.up-title{color:var(--a-ink);font:500 20px/28px var(--font);letter-spacing:-.01em}
.up-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:200px;padding:30px 24px;border:1px solid var(--a-line);border-radius:20px;background:var(--a-surface);box-shadow:var(--a-grp);text-align:center;transition:border-color .25s var(--ease),background-color .25s var(--ease)}
html[data-theme=dark] .up-drop{border-color:#1f1f1f;box-shadow:none}
.up-icon{width:44px;height:44px;border-radius:12px}
.up-icon svg{width:18px;height:18px}
.up-drop-title{margin-top:4px;color:var(--a-ink);font-weight:500}
.up-choose{margin-top:6px}
.up-note{min-height:18px;color:var(--a-muted);font:400 12px/18px var(--font);font-variant-numeric:tabular-nums}
.up-recent{margin-top:30px}
.up-recent-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.up-recent-head b{font-weight:500}
.up-recent-head .ap-link{font-size:13px;font-weight:400}
.up-rows{overflow:hidden;border-radius:16px;background:var(--a-surface);box-shadow:var(--a-grp)}
.up-row{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto 104px 16px;align-items:center;gap:12px 16px;max-height:72px;padding:10px 16px;overflow:hidden}
.up-row::after{content:'';position:absolute;left:60px;right:0;bottom:0;height:1px;background:var(--a-line)}
.up-row:last-child::after{display:none}
.up-name{min-width:0}
.up-name b{display:block;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.up-name span{display:block;color:var(--a-muted);font-size:13px}
.up-n,.up-d{color:var(--a-muted);font-size:13px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.up-go{width:14px;height:14px;color:var(--a-muted)}
/* The upload, in the app's states */
[data-upload] .up-new{transition:max-height .55s var(--ease),padding .55s var(--ease),opacity .45s var(--ease) .12s}
[data-upload][data-state=idle] .up-new,[data-upload][data-state=over] .up-new,[data-upload][data-state=busy] .up-new{max-height:0;padding-block:0;opacity:0}
[data-upload][data-state=over] .up-drop,[data-upload][data-state=busy] .up-drop{border-color:var(--a-ink);background:var(--a-s2)}
[data-upload][data-state=busy] .up-choose{display:none}
[data-upload][data-state=busy] .up-note{color:var(--a-ink2);font-size:13px}
@container (max-width:720px){
  .bulk-hero-port .ap-window{min-height:0}
  .up-page{padding:18px 16px 18px}
  .up-drop{min-height:176px;padding:24px 16px}
  .up-row{grid-template-columns:28px minmax(0,1fr) auto 14px;gap:10px 12px}
  .up-d{display:none}
  .up-row::after{left:56px}}

/* The steps */
.flow-port .port{margin:0}

/* 1. Columns */
.cols{max-width:520px}
.cols-groups{margin-top:16px;border-bottom:1px solid var(--a-line)}
.cols-sum{display:flex;align-items:center;gap:8px;min-height:44px;border-top:1px solid var(--a-line)}
.cols-sum svg{width:14px;height:14px;color:var(--a-muted)}
.cols-sum b{font-weight:500}
.cols-sum .m{margin-left:auto;font-size:13px}
.cols-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;padding:6px 0 6px 22px;border-top:1px solid var(--a-line)}
.cols-row>span:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.cols-actions{justify-content:flex-start;margin-top:18px}
@container (max-width:460px){.cols-row{grid-template-columns:minmax(0,1fr);gap:6px;padding-left:0}.cols .ap-dialog,.cols{padding:18px}}

/* 2. Rows */
.rows-stage{padding:36px 28px}
.rows{padding:20px 22px 22px}
.rows-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px!important;color:var(--a-muted);font-weight:500}
.rows-back svg{width:14px;height:14px}
.rows-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 20px}
.rows-title{color:var(--a-ink);font:500 20px/28px var(--font);letter-spacing:-.01em}
.rows-head .ap-sub{margin-top:2px}
.rows-act{display:flex;gap:8px}
.rows-act .ap-btn svg{width:14px;height:14px}
.rows-clean{margin:12px 0 16px!important;color:var(--a-muted);font:400 13px/20px var(--font);font-variant-numeric:tabular-nums}
.rows-clean .ap-link{font-size:13px}
.rows-cols{min-height:32px;padding:0 12px;font-size:13px}
.rows-cols svg{width:14px;height:14px}
.rows-grid thead th:first-child{width:30%}
.rows-grid .rows-id{width:88px}
.rows-grid tbody th{font-weight:400}
.rows-pp{display:inline-flex;min-width:56px;min-height:28px;margin:0 8px;padding:0 8px 0 10px;overflow:visible}
.ap-pager span{white-space:nowrap}
.rows-pages{display:inline-flex;align-items:center;gap:6px}
.rows-pages svg{width:14px;height:14px}
.rows-pages i,.rows-pages em{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:999px;font-style:normal}
.rows-pages i{background:var(--a-s2);color:var(--a-ink)}
@container (max-width:600px){
  .rows-stage{padding:16px 12px}
  .rows{padding:16px 14px}
  .rows-head{flex-direction:column}
  .rows-act{flex-wrap:wrap;width:100%}.rows-act .ap-btn{flex:1 1 auto}
  .rows-cols{display:none}
  .rows-grid thead{display:none}
  .rows-grid,.rows-grid tbody,.rows-grid tr{display:block}
  .rows-grid tr{padding:10px 16px;border-top:1px solid var(--a-line)}
  .rows-grid tbody th,.rows-grid tbody td{display:block;height:auto;padding:0;border:0;white-space:normal}
  .rows-grid tbody th{font-weight:500}
  .rows-grid tbody td{color:var(--a-muted);font-size:13px}
  .rows-grid .rows-id,.rows-grid .go{display:none}
  .rows-grid tr.off td:empty::before{content:'Left out'}
  .ap-pager>span:first-child{display:none}
  .ap-pager{justify-content:center}
  .rows-pages em:nth-of-type(n+2){display:none}}

/* 3. Trace: the app's simple Skip trace sheet (owner, Oct 31): a title with the close button on its row, one figure, one
   quiet rate line, then Cancel and Start as equal buttons on the right. One left edge, 24px padding, nothing else. */
.quote-stage{min-height:360px}
.quote{width:min(400px,100%);padding:24px}
.quote-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.quote-title{color:var(--a-ink);font:500 16px/24px var(--font)}
.quote-fig{margin-top:14px!important;color:var(--a-ink);font:500 20px/28px var(--font);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.quote-rate{margin-top:2px!important;color:var(--a-muted);font:400 13px/20px var(--font)}
.quote-act{display:grid;grid-template-columns:repeat(2,96px);justify-content:end;gap:10px;margin-top:24px}
@media (prefers-reduced-motion:no-preference){
  html.js .flow-port.reveal .quote{opacity:0;transform:translateY(10px) scale(.98)}
  html.js .flow-port.reveal.is-in .quote{opacity:1;transform:none;transition:opacity .5s var(--ease) .25s,transform .6s var(--ease) .25s}}
@container (max-width:600px){.quote-stage{min-height:0;padding:36px 14px}}

/* 4. Export: the file itself, your columns then Locate's, running off the right edge */
.file-stage{display:block;padding:32px}
.file{overflow:hidden}
.file-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--a-line)}
.file-head b{display:block;font-weight:500}
.file-scroll{overflow:hidden;-webkit-mask-image:linear-gradient(to right,#000 88%,transparent);mask-image:linear-gradient(to right,#000 88%,transparent)}
.file-grid{min-width:1180px;border-collapse:separate;border-spacing:0;table-layout:fixed;font:400 13px/18px var(--font);font-variant-numeric:tabular-nums}
.file-grid th,.file-grid td{height:38px;padding:0 12px;border-right:1px solid var(--a-line);border-bottom:1px solid var(--a-line);color:var(--a-ink);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-grid thead th{height:34px;background:var(--a-s2);color:var(--a-ink2);font-weight:500}
.file-grid .file-groups th{height:30px;background:var(--a-surface);color:var(--a-muted);font-size:12px}
.file-grid .file-groups th.loc{color:var(--a-ink)}
.file-grid .loc{border-left:1px solid var(--a-ink2)}
.file-grid tbody tr:last-child td{border-bottom:0}
.file-grid th.f-id{width:84px}
@container (max-width:700px){
  .file-stage{padding:14px 10px}
  .file-grid{min-width:0;width:340px}
  .file-grid .file-groups,.file-grid .f-id,.file-grid .f-addr,.file-grid .loc,.file-grid .f-name,.file-grid .f-mail{display:none}
  .file-grid th.f-owner{width:122px}.file-grid th.f-phone{width:136px}.file-grid th.f-type{width:82px}
  .file-grid tr>:nth-child(6){border-left:1px solid var(--a-ink2)}}

@media (max-width:640px){
  .bulk-hero-figure{margin-top:40px}
  .bulk-hero-port .port-stage{padding:14px 10px}
}
/* Trace (round 7 v7, owner: "show them actual components, simple as that"): the real sheet alone, its own hairline and
   shadow, no stage or scrim behind it. */
.quote-stage{min-height:0;padding:24px 0}

/* The four screens (round 7 v9, owner: "components should fit the screen", no zig-zag of text and pictures): one window
   with the steps beside it. Every screen shares one grid cell, so the stage is as tall as the tallest screen and switching
   never moves the page. Phones get a segmented row above the screen and the chosen step's line under it. */
.flow .section-head{margin-bottom:48px}
.flow-view{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:56px;align-items:center}
.flow-list{align-self:start;margin:64px 0 0;padding:0;list-style:none;border-top:1px solid var(--hl)}
.flow-item{display:grid;grid-template-rows:auto 0fr;border-bottom:1px solid var(--hl);transition:grid-template-rows .4s var(--ease)}
.flow-item.is-on{grid-template-rows:auto 1fr}
.flow-tab{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:baseline;width:100%;min-height:44px;padding:18px 0;border:0;background:none;color:var(--muted);font:500 17px/24px var(--font);letter-spacing:-.01em;text-align:left;cursor:pointer;transition:color .2s var(--ease)}
.flow-tab:hover,.flow-tab[aria-selected=true]{color:var(--ink)}
.flow-tab:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}
.flow-k{color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}
.flow-s{display:none}
.flow-d{min-height:0;overflow:hidden;margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.flow-d>span{display:block;padding:0 0 20px 24px}
.flow-d .text-link{white-space:nowrap}
.flow-stage{display:grid;min-width:0}
.flow-panel{grid-area:1/1;align-self:center;min-width:0}
.flow-panel:not(.is-on){visibility:hidden;pointer-events:none}
.flow-panel.is-reset,.flow-panel.is-reset *{transition:none!important}
.flow-panel .port-stage{padding:0}
.flow-panel .rows-stage{padding:0}
.flow-panel .quote-stage{padding:0}
html:not(.js) .flow-view{grid-template-columns:minmax(0,1fr)}
html:not(.js) .flow-item{grid-template-rows:auto 1fr}
html:not(.js) .flow-stage{display:grid;gap:48px}
html:not(.js) .flow-panel{grid-area:auto;visibility:visible}
@media (max-width:1023px){
  .flow .section-head{margin-bottom:32px}
  .flow-view{grid-template-columns:minmax(0,1fr);gap:20px}
  .flow-list{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,440px);margin:0 auto;border:0}
  .flow-list::before{content:'';grid-row:1;grid-column:1/-1;border:1px solid var(--hl);border-radius:999px}
  .flow-item{display:contents}
  .flow-tab{grid-row:1;display:block;min-height:36px;margin:4px 2px;padding:0 8px;border-radius:999px;font-size:14px;line-height:36px;text-align:center}
  .flow-item:first-child .flow-tab{grid-column:1;margin-left:4px}.flow-item:nth-child(2) .flow-tab{grid-column:2}
  .flow-item:nth-child(3) .flow-tab{grid-column:3}.flow-item:last-child .flow-tab{grid-column:4;margin-right:4px}
  .flow-tab[aria-selected=true]{background:var(--raised);box-shadow:0 0 0 1px var(--line-strong)}
  .flow-k,.flow-h{display:none}.flow-s{display:inline}
  .flow-d{grid-row:2;grid-column:1/-1;display:none;text-align:center}
  .flow-item.is-on .flow-d{display:block}
  .flow-d>span{padding:16px 4px 0}
  .flow-stage{display:block}
  .flow-panel:not(.is-on){display:none}
  html:not(.js) .flow-panel{display:block}}
