/* NAW Analyst Workbench — Block 4 Data Transfer. Existing site tokens only. No gradients, glow, glass, or neon. */
.wb-xfer-launch{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:10px 0 0;
  max-width:100%;
}
.wb-xfer-launch button,
.wb-xfer-bar button,
.wb-xfer-drawer button,
.wb-xfer-sec-btn,
.wb-xfer-toast{
  min-height:44px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--ink2);
  padding:6px 12px;
  font-size:13px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  box-sizing:border-box;
}
.wb-xfer-launch button:hover,
.wb-xfer-bar button:hover,
.wb-xfer-drawer button:hover,
.wb-xfer-sec-btn:hover{
  border-color:var(--accent);
  color:var(--accent);
}
.wb-xfer-primary{
  background:var(--accent) !important;
  color:#041311 !important;
  border-color:var(--accent) !important;
  font-weight:700 !important;
}
.wb-xfer-primary:hover{
  background:var(--accent-dark) !important;
  color:#041311 !important;
}
.wb-xfer-launch button:focus-visible,
.wb-xfer-bar button:focus-visible,
.wb-xfer-drawer button:focus-visible,
.wb-xfer-drawer a:focus-visible,
.wb-xfer-drawer input:focus-visible,
.wb-xfer-drawer select:focus-visible,
.wb-xfer-drawer textarea:focus-visible,
.wb-xfer-sec-btn:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.wb-xfer-bar{
  border:1px solid var(--line);
  background:var(--panel2);
  padding:12px 14px;
  margin:10px 0;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
  box-sizing:border-box;
  box-shadow:var(--shadow);
}
.wb-xfer-bar h3,
.wb-xfer-drawer h2,
.wb-xfer-drawer h3{
  margin:0 0 6px;
  font-size:15px;
  font-weight:700;
  color:var(--ink);
}
.wb-xfer-bar p,
.wb-xfer-note,
.wb-xfer-status{
  margin:0 0 10px;
  color:var(--ink2);
  font-size:13px;
  line-height:1.5;
}
.wb-xfer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.wb-xfer-actions button{flex:1 1 auto}
.wb-xfer-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
  max-width:100%;
  min-width:0;
}
.wb-xfer-head h4,
.wb-xfer-head h3,
.wb-xfer-head h2,
.wb-xfer-head h5,
.wb-xfer-head .wb-xfer-sec-title{
  margin:0;
  flex:1 1 12rem;
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.wb-xfer-sec-btn{
  min-height:36px;
  padding:4px 10px;
  font-size:12px;
  flex:0 0 auto;
}
section.dossier-section.wb-sec-highlight,
.dossier-bluf.wb-sec-highlight,
.wb-xfer-bluf.wb-sec-highlight{
  outline:2px solid var(--accent);
  background:var(--accentbg);
}
.wb-xfer-overlay{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(0,0,0,.62);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:12px;
  box-sizing:border-box;
  overflow:auto;
  overflow-x:hidden;
}
.wb-xfer-drawer{
  width:min(760px, calc(100vw - 24px));
  max-width:100%;
  max-height:min(92vh,920px);
  overflow:auto;
  overflow-x:hidden;
  background:var(--panel);
  color:var(--ink);
  border:1px solid var(--line2);
  box-shadow:var(--shadow);
  padding:16px 16px 20px;
  box-sizing:border-box;
}
.wb-xfer-drawer-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-bottom:10px;
}
.wb-xfer-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 14px;
}
.wb-xfer-tab[aria-selected="true"]{
  background:var(--accent);
  color:#041311;
  border-color:var(--accent);
}
.wb-xfer-panel{max-width:100%}
.wb-xfer-panel[hidden]{display:none !important}
.wb-xfer-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
.wb-xfer-field label,
.wb-xfer-drawer label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:var(--ink3);
  letter-spacing:.04em;
  text-transform:uppercase;
  margin:0 0 4px;
}
.wb-xfer-drawer input[type="text"],
.wb-xfer-drawer input[type="date"],
.wb-xfer-drawer input[type="url"],
.wb-xfer-drawer input[type="file"],
.wb-xfer-drawer select,
.wb-xfer-drawer textarea{
  width:100%;
  max-width:100%;
  min-height:44px;
  box-sizing:border-box;
  border:1px solid var(--line2);
  background:var(--panel2);
  color:var(--ink);
  padding:8px 10px;
  font:inherit;
  font-size:14px;
}
.wb-xfer-drawer textarea{
  min-height:140px;
  resize:vertical;
  font-family:var(--mono);
  font-size:12px;
  line-height:1.45;
}
.wb-xfer-warn{
  border:1px solid var(--amber);
  background:var(--amberbg);
  color:var(--ink);
  padding:10px 12px;
  margin:0 0 12px;
  font-size:13.5px;
  line-height:1.45;
}
.wb-xfer-ok{
  border:1px solid var(--line2);
  background:var(--panel2);
  padding:8px 10px;
  margin:0 0 12px;
  font-size:13px;
  color:var(--ink2);
}
.wb-xfer-diff-list{
  list-style:none;
  margin:0 0 12px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.wb-xfer-diff-item{
  border:1px solid var(--line);
  background:var(--panel2);
  padding:8px 10px;
  max-width:100%;
}
.wb-xfer-diff-item label{
  text-transform:none;
  letter-spacing:0;
  font-size:14px;
  color:var(--ink);
  font-weight:600;
  display:flex;
  gap:8px;
  align-items:flex-start;
}
.wb-xfer-diff-item input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:3px;
  flex:0 0 auto;
}
.wb-xfer-changes{
  margin:8px 0 0;
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
.wb-xfer-changes th,
.wb-xfer-changes td{
  border:1px solid var(--line);
  padding:6px 8px;
  text-align:left;
  vertical-align:top;
  word-break:break-word;
}
.wb-xfer-changes th{color:var(--ink3);font-weight:700}
.wb-xfer-toast{
  position:fixed;
  z-index:90;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  background:var(--panel3);
  color:var(--ink);
  border-color:var(--line2);
  max-width:calc(100vw - 24px);
  pointer-events:none;
}
.wb-sr-xfer{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
@media (max-width:640px){
  .wb-xfer-grid{grid-template-columns:1fr}
  .wb-xfer-overlay{padding:8px}
  .wb-xfer-drawer{padding:14px 12px 18px;width:calc(100vw - 16px)}
  .wb-xfer-actions button,
  .wb-xfer-tabs button{flex:1 1 calc(50% - 8px)}
}
@media (prefers-reduced-motion:reduce){
  .wb-xfer-overlay,
  .wb-xfer-drawer,
  .wb-sec-highlight,
  .wb-xfer-toast{animation:none !important;transition:none !important}
}
@media print{
  .wb-xfer-launch,
  .wb-xfer-bar,
  .wb-xfer-overlay,
  .wb-xfer-toast,
  .wb-xfer-sec-btn{display:none !important}
}
